py-libp2p/setup.py
mhchia 9497c3180f
Add tox
- Put extras_require to setup.py
- Add mypy
2019-07-24 15:54:30 +08:00

53 lines
1.1 KiB
Python

import setuptools
classifiers = [
f"Programming Language :: Python :: {version}"
for version in ["3.7"]
]
# pylint: disable=invalid-name
extras_require = {
"test": [
"codecov",
"pytest",
"pytest-cov",
"pytest-asyncio",
],
"lint": [
"pylint",
"mypy",
],
"dev": [
"tox",
],
}
extras_require["dev"] = extras_require["test"] + extras_require["lint"] + extras_require["dev"]
setuptools.setup(
name="libp2p",
description="libp2p implementation written in python",
version="0.0.1",
license="MIT/APACHE2.0",
platforms=["unix", "linux", "osx"],
classifiers=classifiers,
install_requires=[
"pycryptodome>=3.8.2,<4.0.0",
"click>=7.0,<8.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",
"grpcio>=1.21.1,<2.0.0",
"grpcio-tools>=1.21.1,<2.0.0",
"lru-dict>=1.1.6",
"aio_timers>=0.0.1,<0.1.0",
],
extras_require=extras_require,
packages=setuptools.find_packages(exclude=["tests", "tests.*"]),
zip_safe=False,
)