From f2024a1f9e10ac74f1a35d103fd78c2eee939e35 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 13 Feb 2024 14:44:33 -0800 Subject: [PATCH] python: README and project links for PyPI listing (#1964) Signed-off-by: Simon Willison Signed-off-by: Jared Van Bortel Co-authored-by: Jared Van Bortel --- gpt4all-bindings/python/setup.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/gpt4all-bindings/python/setup.py b/gpt4all-bindings/python/setup.py index 04094b23..c76f1b49 100644 --- a/gpt4all-bindings/python/setup.py +++ b/gpt4all-bindings/python/setup.py @@ -1,5 +1,6 @@ from setuptools import setup, find_packages import os +import pathlib import platform import shutil @@ -59,13 +60,25 @@ copy_prebuilt_C_lib(SRC_CLIB_DIRECTORY, DEST_CLIB_DIRECTORY, DEST_CLIB_BUILD_DIRECTORY) + +def get_long_description(): + with open(pathlib.Path(__file__).parent / "README.md", encoding="utf-8") as fp: + return fp.read() + + setup( name=package_name, - version="2.2.1", + version="2.2.1.post1", description="Python bindings for GPT4All", + long_description=get_long_description(), + long_description_content_type="text/markdown", author="Nomic and the Open Source Community", author_email="support@nomic.ai", - url="https://pypi.org/project/gpt4all/", + url="https://gpt4all.io/", + project_urls={ + "Documentation": "https://docs.gpt4all.io/gpt4all_python.html", + "Source code": "https://github.com/nomic-ai/gpt4all/tree/main/gpt4all-bindings/python", + }, classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License",