-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
69 lines (60 loc) · 1.92 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
"""
Setup file
See https://packaging.python.org/tutorials/distributing-packages/
But basically:
python3 setup.py sdist
(that makes a new tgz in ./dist)
gpg -u 5A2A5B10 --detach-sign -a dist/connectrum-XXX.tar.gz
twine upload dist/connectrum-XXX.*
git tag vXXXX -a "New release"
git push --tags
"""
import os
from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(HERE, 'README.md')).read()
def get_version():
with open("connectrum/__init__.py") as f:
for line in f:
if line.startswith("__version__"):
return eval(line.split("=")[-1])
REQUIREMENTS = [
# none at this time
]
TEST_REQUIREMENTS = [
'aiohttp',
'pytest',
'tox',
'aiosocks',
'aiohttp',
'bottom>=1.0.2'
]
if __name__ == "__main__":
setup(
name='connectrum',
python_requires='>=3.6.0',
version=get_version(),
description="asyncio-based Electrum client library",
long_description=README,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries',
],
author='Peter Gray',
author_email='[email protected]',
url='https://github.com/coinkite/connectrum',
license='MIT',
keywords='electrum bitcoin asnycio client',
platforms='any',
include_package_data=True,
packages=find_packages(exclude=('testing', 'examples')),
#data_files=['connectrum/servers.json'],
install_requires=REQUIREMENTS,
tests_require=REQUIREMENTS + TEST_REQUIREMENTS,
)