From: Daniele Varrazzo Date: Tue, 31 Mar 2020 02:16:02 +0000 (+1300) Subject: setup.py fixed X-Git-Tag: 3.0.dev0~641 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f185525ee8b50389477a38da7142786cdd13cb4;p=thirdparty%2Fpsycopg.git setup.py fixed Sub-packages weren't installed. Now it should be possible to install it using: pip install "git+https://github.com/psycopg/psycopg3.git#egg=psycopg3" Note that it was already possible to do so using pip install -e "git+https://github.com/psycopg/psycopg3.git#egg=psycopg3" --- diff --git a/setup.py b/setup.py index 1c65bfef6..0a001d93c 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ psycopg3 -- PostgreSQL database adapter for Python import re import os -from setuptools import setup # type: ignore +from setuptools import setup, find_packages # type: ignore # Grab the version without importing the module # or we will get import errors on install if prerequisites are still missing @@ -26,9 +26,13 @@ with open("README.rst") as f: # TODO: classifiers classifiers = """ +Intended Audience :: Developers Programming Language :: Python :: 3 +License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3) Topic :: Database +Topic :: Database :: Front-Ends Topic :: Software Development +Topic :: Software Development :: Libraries :: Python Modules """ setup( @@ -37,11 +41,16 @@ setup( long_description="\n".join(readme.splitlines()[2:]).lstrip(), author="Daniele Varrazzo", author_email="daniele.varrazzo@gmail.com", - url="https://psycopg.org/psycopg3", - license="TBD", # TODO + url="https://psycopg.org/psycopg3/", python_requires=">=3.6", - packages=["psycopg3"], + packages=find_packages(exclude=["tests"]), classifiers=[x for x in classifiers.split("\n") if x], zip_safe=False, version=version, + project_urls={ + "Homepage": "https://psycopg.org/", + "Code": "https://github.com/psycopg/psycopg3", + "Issue Tracker": "https://github.com/psycopg/psycopg3/issues", + "Download": "https://pypi.org/project/psycopg3/", + }, )