-
Notifications
You must be signed in to change notification settings - Fork 55
/
setup.py
65 lines (58 loc) · 2.11 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
import os
import re
import setuptools
def find_version():
tld = os.path.abspath(os.path.dirname(__file__))
filename = os.path.join(tld, "electrumx", "version.py")
with open(filename) as file:
text = file.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 _file:
requirements = _file.read().splitlines()
setuptools.setup(
name="e-x",
version=version,
scripts=["electrumx_server", "electrumx_rpc", "electrumx_compact_history"],
python_requires=">=3.10",
install_requires=requirements,
extras_require={
"dev": ["objgraph"],
"rapidjson": ["python-rapidjson>=0.4.1,<2.0"],
"rocksdb": [
"Cython>=3.0,<3.1",
"rocksdb @ git+https://github.com/jansegre/python-rocksdb@6177a68",
],
"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",
license="MIT Licence",
url="https://github.com/atomicals/atomicals-electrumx",
long_description="Server implementation for the Electrum protocol",
download_url=("https://github.com/atomicals/atomicals-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.10",
"Topic :: Database",
"Topic :: Internet",
],
)