2019-01-10 01:57:41 +08:00
|
|
|
import setuptools
|
|
|
|
|
2019-11-15 05:43:42 +08:00
|
|
|
py_classifiers = [f"Programming Language :: Python :: {version}" for version in ["3.7"]]
|
2019-01-10 01:57:41 +08:00
|
|
|
|
|
|
|
|
2019-07-24 15:54:30 +08:00
|
|
|
extras_require = {
|
|
|
|
"test": [
|
2019-08-01 13:31:02 +08:00
|
|
|
"factory-boy>=2.12.0,<3.0.0",
|
2019-07-24 16:34:55 +08:00
|
|
|
"pytest>=4.6.3,<5.0.0",
|
|
|
|
"pytest-asyncio>=0.10.0,<1.0.0",
|
2019-11-06 09:08:35 +08:00
|
|
|
"pytest-xdist>=1.30.0",
|
2019-07-24 15:54:30 +08:00
|
|
|
],
|
2019-08-14 05:36:42 +08:00
|
|
|
"lint": [
|
|
|
|
"mypy>=0.701,<1.0",
|
2019-08-16 07:01:44 +08:00
|
|
|
"mypy-protobuf==1.15",
|
2019-08-14 05:36:42 +08:00
|
|
|
"black==19.3b0",
|
|
|
|
"isort==4.3.21",
|
|
|
|
"flake8>=3.7.7,<4.0.0",
|
2019-11-05 04:16:09 +08:00
|
|
|
"flake8-bugbear",
|
2019-08-14 05:36:42 +08:00
|
|
|
],
|
2019-11-15 04:47:21 +08:00
|
|
|
"dev": [
|
|
|
|
"bumpversion>=0.5.3,<1",
|
|
|
|
"docformatter",
|
|
|
|
"setuptools>=36.2.0",
|
|
|
|
"tox>=3.13.2,<4.0.0",
|
|
|
|
"twine",
|
|
|
|
"wheel",
|
|
|
|
],
|
2019-07-24 15:54:30 +08:00
|
|
|
}
|
|
|
|
|
2019-08-14 05:36:42 +08:00
|
|
|
extras_require["dev"] = (
|
|
|
|
extras_require["test"] + extras_require["lint"] + extras_require["dev"]
|
|
|
|
)
|
2019-07-24 15:54:30 +08:00
|
|
|
|
|
|
|
|
2019-11-15 05:43:42 +08:00
|
|
|
with open("./README.md") as readme:
|
|
|
|
long_description = readme.read()
|
|
|
|
|
|
|
|
|
2019-01-10 01:57:41 +08:00
|
|
|
setuptools.setup(
|
|
|
|
name="libp2p",
|
|
|
|
description="libp2p implementation written in python",
|
2019-11-14 15:29:50 +08:00
|
|
|
version="0.1.2",
|
2019-11-15 05:43:42 +08:00
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
2019-11-15 04:47:21 +08:00
|
|
|
maintainer="The Ethereum Foundation",
|
|
|
|
maintainer_email="snakecharmers@ethereum.org",
|
|
|
|
url="https://github.com/ethereum/py-libp2p",
|
2019-01-10 02:38:56 +08:00
|
|
|
license="MIT/APACHE2.0",
|
2019-01-10 01:57:41 +08:00
|
|
|
platforms=["unix", "linux", "osx"],
|
2019-11-15 05:43:42 +08:00
|
|
|
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",
|
2019-01-10 01:57:41 +08:00
|
|
|
install_requires=[
|
2019-11-14 14:45:30 +08:00
|
|
|
"pycryptodome>=3.9.2,<4.0.0",
|
2019-07-08 16:14:49 +08:00
|
|
|
"base58>=1.0.3,<2.0.0",
|
|
|
|
"pymultihash>=0.8.2",
|
|
|
|
"multiaddr>=0.0.8,<0.1.0",
|
|
|
|
"rpcudp>=3.0.0,<4.0.0",
|
2019-05-07 11:44:13 +08:00
|
|
|
"lru-dict>=1.1.6",
|
2019-08-04 02:35:24 +08:00
|
|
|
"protobuf==3.9.0",
|
2019-08-22 18:01:41 +08:00
|
|
|
"coincurve>=10.0.0,<11.0.0",
|
2019-09-04 04:21:07 +08:00
|
|
|
"fastecdsa==1.7.4",
|
2019-09-10 08:04:35 +08:00
|
|
|
"pynacl==1.3.0",
|
2019-01-10 01:57:41 +08:00
|
|
|
],
|
2019-07-24 15:54:30 +08:00
|
|
|
extras_require=extras_require,
|
2019-07-09 23:29:03 +08:00
|
|
|
packages=setuptools.find_packages(exclude=["tests", "tests.*"]),
|
2019-01-10 01:57:41 +08:00
|
|
|
zip_safe=False,
|
2019-11-15 05:43:42 +08:00
|
|
|
keywords="libp2p p2p",
|
2019-01-10 01:57:41 +08:00
|
|
|
)
|