forked from sCrypt-Inc/py-scryptlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (34 loc) · 1.26 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
#!/usr/bin/env python
import codecs
from setuptools import setup
from os import path
def read(rel_path):
here = path.abspath(path.dirname(__file__))
with codecs.open(path.join(here, rel_path), 'r') as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else '\''
return line.split(delim)[1]
else:
raise RuntimeError('Unable to find version string.')
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(long_description=long_description,
long_description_content_type="text/markdown",
name='scryptlib',
version=get_version('scryptlib/__init__.py'),
description='Python SDK for integration of sCrypt Bitcoin SV smart contracts.',
keywords='scrypt scryptlib bitcoin bsv blockchain',
author='Kala',
url='https://www.github.com/sCrypt-Inc/py-scryptlib',
packages=['scryptlib'],
install_requires=['bitcoinX==0.6.0'],
python_requires='>=3.7',
# Dependencies to run all tests.
extras_require = {
'testing': ['pytest', 'rabin', 'ecdsa']
}
)