-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
32 lines (26 loc) · 927 Bytes
/
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
import os.path
import re
import setuptools
def find_version(filename):
with open(filename) as f:
text = f.read()
match = re.search(r"^_version_str = '(.*)'$", text, re.MULTILINE)
if not match:
raise RuntimeError('cannot find version')
return match.group(1)
tld = os.path.abspath(os.path.dirname(__file__))
version = find_version(os.path.join(tld, 'bitcoinx', '__init__.py'))
setuptools.setup(
version=version,
python_requires='>=3.8',
install_requires=['pycryptodomex', 'coincurve'],
packages=['bitcoinx'],
# Tell setuptools to include data files specified by MANIFEST.in.
include_package_data=True,
download_url=('https://github.com/kyuupichan/bitcoinX/archive/'
f'{version}.tar.gz'),
long_description=(
'Library of Bitcoin functions covering network protocol, consensus, '
'transactions, scripting and signing.'
),
)