py-libp2p/setup.py

90 lines
2.6 KiB
Python
Raw Normal View History

2018-01-25 08:00:28 +08:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
extras_require = {
"test": [
"pytest>=4.6.3,<5.0.0",
"pytest-xdist>=1.30.0,<2",
"pytest-asyncio>=0.10.0,<1.0.0",
"factory-boy>=2.12.0,<3.0.0",
],
"lint": [
"flake8==3.7.9", # flake8 is not semver: it has added new warnings at minor releases
"isort==4.3.21",
"mypy==0.740", # mypy is not semver: it has added new warnings at minor releases
"mypy-protobuf==1.15",
"black==19.3b0",
"flake8-bugbear>=19.8.0,<20",
"docformatter>=1.3.1,<2",
2018-01-25 08:00:28 +08:00
],
"doc": [
2018-01-25 08:00:28 +08:00
"Sphinx>=1.6.5,<2",
"sphinx_rtd_theme>=0.4.3,<=1",
"towncrier>=19.2.0, <20",
],
"dev": [
"bumpversion>=0.5.3,<1",
"pytest-watch>=4.1.0,<5",
2018-01-25 08:00:28 +08:00
"wheel",
"twine",
"ipython",
"setuptools>=36.2.0",
"tox>=3.13.2,<4.0.0",
],
}
extras_require["dev"] = (
extras_require["dev"]
+ extras_require["test"]
+ extras_require["lint"]
+ extras_require["doc"]
)
with open("./README.md") as readme:
long_description = readme.read()
2018-01-25 08:00:28 +08:00
setup(
name="libp2p",
2018-01-25 08:00:28 +08:00
# *IMPORTANT*: Don't manually change the version here. Use `make bump`, as described in readme
2019-11-14 15:29:50 +08:00
version="0.1.2",
description="libp2p implementation written in python",
long_description=long_description,
long_description_content_type="text/markdown",
maintainer="The Ethereum Foundation",
maintainer_email="snakecharmers@ethereum.org",
2019-11-27 04:44:17 +08:00
url="https://github.com/libp2p/py-libp2p",
2018-01-25 08:00:28 +08:00
include_package_data=True,
install_requires=[
2019-11-14 14:45:30 +08:00
"pycryptodome>=3.9.2,<4.0.0",
"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",
"lru-dict>=1.1.6",
2019-11-23 01:39:16 +08:00
"protobuf>=3.10.0,<4.0.0",
2019-08-22 18:01:41 +08:00
"coincurve>=10.0.0,<11.0.0",
"fastecdsa==1.7.4",
"pynacl==1.3.0",
],
python_requires=">=3.7,<4",
extras_require=extras_require,
2019-11-27 04:44:17 +08:00
py_modules=["libp2p"],
license="MIT/APACHE2.0",
zip_safe=False,
keywords="libp2p p2p",
2018-01-25 08:00:28 +08:00
packages=find_packages(exclude=["tests", "tests.*"]),
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
2018-01-25 08:00:28 +08:00
],
platforms=["unix", "linux", "osx"],
)