forked from 21dotco/two1-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
133 lines (120 loc) · 4.72 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# -*- Mode: Python -*-
"""two1
This tool uses the official PyPa packaging and click recommendations:
https://github.com/pypa/sampleproject
https://packaging.python.org/en/latest/distributing.html
http://click.pocoo.org/4/setuptools/
"""
from setuptools import setup
install_requires = ['arrow',
'base58',
'docker-py==1.8.0',
'pytest',
'requests',
'responses',
'simplejson',
'sha256',
'path.py',
'click==4.1',
'mnemonic==0.13',
'protobuf==3.0.0a3',
'pyaes',
'tabulate',
'jsonrpcclient',
'jsonrpcserver==3.1.1',
'pyyaml'
]
version = __import__('two1').TWO1_VERSION
setup(
name='two1',
version=version,
description='Buy and sell anything on the internet with bitcoin.',
url='https://21.co',
author='21',
author_email='[email protected]',
license='MIT',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Internet',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.4',
],
keywords='bitcoin blockchain client server',
# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
packages=['two1',
'two1.mkt',
'two1.sell',
'two1.sell.util',
'two1.sell.exceptions',
'two1.lib',
'two1.commands',
'two1.bitcoin',
'two1.server',
'two1.bitserv',
'two1.wallet',
'two1.crypto',
'two1.channels',
'two1.bitserv.django',
'two1.bitserv.flask',
'two1.blockchain',
'two1.bitrequests',
'two1.commands.util',
],
# List run-time dependencies here. These will be installed by pip when
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=install_requires,
ext_modules=[],
# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:
# $ pip install -e .[dev,test]
extras_require={
'dev': ['check-manifest'],
'test': ['coverage'],
},
# If there are data files included in your packages that need to be
# installed, specify them here. If using Python 2.6 or less, then these
# have to be included in MANIFEST.in as well.
package_data={
'two1': ['two1-config.json',
'sell/blueprints/base/Dockerfile',
'sell/blueprints/router/Dockerfile',
'sell/blueprints/router/files/nginx.conf',
'sell/blueprints/payments/Dockerfile',
'sell/blueprints/payments/requirements.txt',
'sell/blueprints/payments/login.py',
'sell/blueprints/payments/server.py',
'sell/blueprints/services/ping/Dockerfile',
'sell/blueprints/services/ping/ping21.py',
'sell/blueprints/services/ping/requirements.txt',
'sell/blueprints/services/ping/server.py',
'sell/blueprints/services/ping/manifest.yaml',
'sell/blueprints/services/ping/login.py',
'sell/util/schema.sql']
},
# Although 'package_data' is the preferred approach, in some case you may
# need to place data files outside of your packages. See:
# http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa
# In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
# data_files=[('peers', ['data/default-peers.json'])],
# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow
# pip to create the appropriate form of executable for the target platform.
# See: http://stackoverflow.com/a/782984/72994
# http://click.pocoo.org/4/setuptools/
entry_points={
'console_scripts': [
'two1=two1.cli:main',
'wallet=two1.wallet.cli:main',
'21=two1.cli:main',
'twentyone=two1.cli:main',
'walletd=two1.wallet.daemon:main',
'channels=two1.channels.cli:main',
],
},
)