Skip to content

Commit

Permalink
python: README and project links for PyPI listing (nomic-ai#1964)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Willison <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
Co-authored-by: Jared Van Bortel <[email protected]>
  • Loading branch information
simonw and cebtenzzre authored Feb 13, 2024
1 parent 6fdec80 commit f2024a1
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions gpt4all-bindings/python/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from setuptools import setup, find_packages
import os
import pathlib
import platform
import shutil

Expand Down Expand Up @@ -59,13 +60,25 @@ def copy_prebuilt_C_lib(src_dir, dest_dir, dest_build_dir):
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="[email protected]",
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",
Expand Down

0 comments on commit f2024a1

Please sign in to comment.