-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
143 lines (138 loc) · 4.31 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
deps = {
'hvm': [
"aiohttp>=2.3.1,<4.0.0",
"async_lru>=0.1.0,<1.0.0",
"cryptography>=2.0.3,<3.0.0",
"cytoolz>=0.9.0,<1.0.0",
"eth-bloom>=1.0.3,<2.0.0",
"eth-keys>=0.2.0b3,<1.0.0",
"eth-typing>=2.0.0,<3.0.0",
"eth-utils>=1.7,<2",
"lru-dict>=1.1.6",
"py-ecc>=1.4.2,<2.0.0",
"pyethash>=0.1.27,<1.0.0",
"trie>=1.3.5,<2.0.0",
"sortedcontainers>=2.0.4",
"pbkdf2>=1.3",
"rlp-cython>=2.1.7",
"dataclasses>=0.6, <1;python_version<'3.7'",
],
# The hvm-extra sections is for libraries that the hvm does not
# explicitly need to function and hence should not depend on.
# Installing these libraries may make the hvm perform better than
# using the default fallbacks though.
'hvm-extra': [
"coincurve>=8.0.0,<9.0.0",
"eth-hash[pysha3];implementation_name=='cpython'",
"eth-hash[pycryptodome];implementation_name=='pypy'",
"plyvel==1.0.5",
],
'hp2p': [
"asyncio-cancel-token==0.1.0a2",
"aiohttp>=2.3.1,<4.0.0",
"async_lru>=0.1.0,<1.0.0",
"eth-hash>=0.2.0,<1",
"netifaces>=0.10.7<1",
"pysha3>=1.0.0,<2.0.0",
"upnpclient>=0.0.8,<1",
],
'helios': [
"aiohttp>=2.3.1,<4.0.0",
"async-generator==1.10",
"bloom-filter==1.3",
"cachetools>=2.1.0,<3.0.0",
"coincurve>=8.0.0,<9.0.0",
"ipython>=6.2.1,<7.0.0",
"plyvel==1.0.5",
"helios-web3>=5.0.8",
"lahja==0.8.0",
"uvloop==0.11.2;platform_system=='Linux' or platform_system=='Darwin'",
"websockets>=3.0.0",
"eth-keys>=0.2.4",
"eth-account>=0.4.0"
],
'test': [
"hypothesis==3.69.5",
# pinned to <3.7 until async fixtures work again
# https://github.com/pytest-dev/pytest-asyncio/issues/89
"pytest>=3.6,<3.7",
"pytest-asyncio==0.9.0",
"pytest-cov==2.5.1",
"pytest-watch>=4.1.0,<5",
"pytest-xdist==1.18.1",
"py-solc==3.2.0",
"matplotlib",
# only needed for hp2p
"pytest-asyncio-network-simulator==0.1.0a2;python_version>='3.6'",
"PyUserInput>=0.1.11"
],
'lint': [
"flake8==3.5.0",
"mypy==0.620",
],
'benchmark': [
"termcolor>=1.1.0,<2.0.0",
],
'doc': [
"py-evm>=0.2.0-alpha.14",
"pytest~=3.2",
# Sphinx pined to `<1.8.0`: https://github.com/sphinx-doc/sphinx/issues/3494
"Sphinx>=1.5.5,<1.8.0",
"sphinx_rtd_theme>=0.1.9",
"sphinxcontrib-asyncio>=0.2.0",
],
'dev': [
"bumpversion>=0.5.3,<1",
"wheel",
"setuptools>=36.2.0",
"tox==2.7.0",
"twine",
],
}
deps['dev'] = (
deps['dev'] +
deps['hvm-extra'] +
deps['hp2p'] +
deps['helios'] +
deps['test'] +
deps['doc'] +
deps['lint'] +
deps['hvm']
)
# As long as hvm, hp2p and helios are managed together in the py-helios-node
# package, someone running a `pip install py-helios-node` should expect all
# dependencies for hvm, hp2p and helios to get installed.
install_requires = deps['hp2p'] + deps['helios'] + deps['hvm']
setup(
name='py-helios-node',
# *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
version='0.4.0',
description='Python implementation of the Helios Protocol Node',
long_description_markdown_filename='README.rst',
author='Tommy Mckinnon',
author_email='[email protected]',
url='https://github.com/Helios-Protocol/py-helios-node',
include_package_data=True,
py_modules=['hvm', 'helios', 'hp2p'],
install_requires=install_requires,
extras_require=deps,
setup_requires=['setuptools-markdown'],
license='MIT',
zip_safe=False,
keywords='helios protocol blockchain node vm',
packages=find_packages(exclude=["tests", "tests.*"]),
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.6',
],
# helios
entry_points={
'console_scripts': ['helios=helios:main'],
},
)