-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsetup.py
101 lines (85 loc) · 2.43 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
"""
transactions: Bitcoin for Humans
transactions is a small python library to easily create and push transactions
to the bitcoin network.
More information at https://github.com/ascribe/transactions
"""
import io
import os
import re
from setuptools import setup
def read(*names, **kwargs):
with io.open(
os.path.join(os.path.dirname(__file__), *names),
encoding=kwargs.get('encoding', 'utf8')
) as fp:
return fp.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(
r'^__version__ = [\'"]([^\'"]*)[\'"]', version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError('Unable to find version string.')
with open('README.rst') as readme:
long_description = readme.read()
install_requires = [
'bitcoin>=1.1.42',
'future>=0.15.2',
'pycoin>=0.62',
'requests>=2.9.1',
]
tests_require = [
'pytest',
'coverage',
'pep8',
'pyflakes',
'pylint',
'pytest',
'pytest-cov',
'python-bitcoinrpc>=0.3.1',
]
dev_require = [
'ipdb',
'ipython',
]
docs_require = [
'Sphinx>=1.3.5',
'sphinx-autobuild',
'sphinxcontrib-napoleon>=0.4.4',
'sphinx_rtd_theme',
]
setup(
name='transactions',
version=find_version('transactions', '__init__.py'),
url='https://github.com/ascribe/transactions',
license='Apache2',
author='Rodolphe Marques',
author_email='rodolphe@ascribe.io',
packages=['transactions',
'transactions.services'],
description='transactions: Bitcoin for Humans',
long_description=long_description,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development',
],
install_requires=install_requires,
setup_requires=['pytest-runner'],
tests_require=tests_require,
extras_require={
'test': tests_require,
'dev': dev_require + tests_require + docs_require,
'docs': docs_require,
},
dependency_links=[
'git+https://github.com/sbellem/python-bitcoinrpc.git@setup#egg=python_bitcoinrpc-0.3.1',
],
)