From cb4b4b82098f8ca0ec7f5f16014316548c876f0a Mon Sep 17 00:00:00 2001 From: Jason Carver Date: Thu, 14 Nov 2019 13:43:42 -0800 Subject: [PATCH] setup.py: fix warnings and add description There were warnings about needing a URL and maintainer. Also, use the readme as the pypi description. --- setup.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 3229a49e..633a10a9 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ import setuptools -classifiers = [f"Programming Language :: Python :: {version}" for version in ["3.7"]] +py_classifiers = [f"Programming Language :: Python :: {version}" for version in ["3.7"]] extras_require = { @@ -33,16 +33,30 @@ extras_require["dev"] = ( ) +with open("./README.md") as readme: + long_description = readme.read() + + setuptools.setup( name="libp2p", description="libp2p implementation written in python", version="0.1.2", + long_description=long_description, + long_description_content_type="text/markdown", maintainer="The Ethereum Foundation", maintainer_email="snakecharmers@ethereum.org", url="https://github.com/ethereum/py-libp2p", license="MIT/APACHE2.0", platforms=["unix", "linux", "osx"], - classifiers=classifiers, + classifiers=[ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "License :: OSI Approved :: Apache Software License", + "Natural Language :: English", + ] + + py_classifiers, + python_requires=">=3.7,<4", install_requires=[ "pycryptodome>=3.8.2,<4.0.0", "base58>=1.0.3,<2.0.0", @@ -58,4 +72,5 @@ setuptools.setup( extras_require=extras_require, packages=setuptools.find_packages(exclude=["tests", "tests.*"]), zip_safe=False, + keywords="libp2p p2p", )