This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
71 lines (63 loc) · 2.11 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
import os
from setuptools import setup
def load_readme():
PROJECT_DIR = os.path.dirname(__file__)
readme_file = "README.rst"
try:
return open(os.path.join(PROJECT_DIR, readme_file), 'r').read()
except Exception:
raise RuntimeError("Cannot find readme file {fname}.".format(
fname=readme_file))
def load_version():
"""Open and parse out the version number from the _version.py module.
Inspired by http://stackoverflow.com/a/7071358
"""
import re
version_file = "multimerchant/_version.py"
version_line = open(version_file).read().rstrip()
vre = re.compile(r'__version__ = "([^"]+)"')
matches = vre.findall(version_line)
if matches and len(matches) > 0:
return matches[0]
else:
raise RuntimeError(
"Cannot find version string in {version_file}.".format(
version_file=version_file))
version = load_version()
long_description = load_readme()
setup(
name='multimerchant',
version=version,
description="Bitcoin/Dogecoin/Litecoin merchant tools that work with Block.io",
long_description=long_description,
author='Steven Buss',
author_email='[email protected]',
url='https://github.com/blockio/multimerchant-python',
download_url=(
'https://github.com/blockio/multimerchant-python/tarball/v%s' % version),
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
],
packages=[
'multimerchant',
'multimerchant.wallet',
],
package_data={'': ['AUTHORS', 'LICENSE']},
include_package_data=True,
license='MIT License',
test_suite="tests",
install_requires=[
'base58==0.2.1',
'ecdsa==0.11',
'six>=1.8.0',
'block-io>=1.1.2'
],
)