forked from ranaroussi/pywallet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
58 lines (49 loc) · 1.87 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open
from os import path
import re
# Get the long description from the README file
with open(path.join('README.rst'), encoding='utf-8') as f:
long_description = f.read()
def load_version():
version_file = "zpywallet/_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()
with open('requirements.txt') as f:
install_requires = f.read().splitlines()
setup(
name='zpywallet',
version=version,
description="Multi-coin BIP32 (HD) wallet creation, transaction listener, creation and broadcasting",
long_description=long_description,
url='https://github.com/ZenulAbidin/pywallet',
author='Ali Sherief',
author_email='ali@notatether.com',
license='MIT License',
classifiers=[
"License :: OSI Approved :: MIT License",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
platforms = ['any'],
keywords='bitcoin, wallet, litecoin, hd-wallet, dogecoin, dashcoin, ethereum, address, crypto, python',
packages = find_packages(exclude=['contrib', 'docs', 'tests', 'demo', 'demos', 'examples']),
include_package_data=True,
install_requires=install_requires
)