-
Notifications
You must be signed in to change notification settings - Fork 359
/
setup.py
64 lines (57 loc) · 2.05 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
import os
import re
import setuptools
def find_version():
tld = os.path.abspath(os.path.dirname(__file__))
filename = os.path.join(tld, 'electrumx', '__init__.py')
with open(filename) as f:
text = f.read()
match = re.search(r"^__version__ = \"(.*)\"$", text, re.MULTILINE)
if not match:
raise RuntimeError('cannot find version')
return match.group(1)
version = find_version()
with open('requirements.txt') as f:
requirements = f.read().splitlines()
setuptools.setup(
name='e-x',
version=version,
scripts=['electrumx_server', 'electrumx_rpc', 'electrumx_compact_history'],
python_requires='>=3.8',
install_requires=requirements,
extras_require={
'dev': ['objgraph'],
'rapidjson': ['python-rapidjson>=0.4.1,<2.0'],
'rocksdb': ['python-rocksdb>=0.6.9', 'Cython<3.0'],
'ujson': ['ujson>=2.0.0,<4.0.0'],
'uvloop': ['uvloop>=0.14'],
# For various coins
'blake256': ['blake256>=0.1.1'],
'crypto': ['pycryptodomex>=3.8.1'],
'groestl': ['groestlcoin-hash>=1.0.1'],
'tribushashm': ['tribushashm>=1.0.5'],
'xevan-hash': ['xevan-hash'],
'dash_hash': ['dash_hash>=1.4'],
'zny-yespower-0-5': ['zny-yespower-0-5'],
'bell-yespower': ['bell-yespower'],
'cpupower': ['cpupower'],
},
packages=setuptools.find_packages(include=('electrumx*',)),
description='ElectrumX Server',
author='Electrum developers',
author_email='[email protected]',
license='MIT Licence',
url='https://github.com/spesmilo/electrumx',
long_description='Server implementation for the Electrum protocol',
download_url=('https://github.com/spesmilo/electrumX/archive/'
f'{version}.tar.gz'),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: AsyncIO',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
"Programming Language :: Python :: 3.8",
"Topic :: Database",
'Topic :: Internet',
],
)