-
Notifications
You must be signed in to change notification settings - Fork 27
/
setup.py
51 lines (44 loc) · 1.5 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
import setuptools
import os
import sys
if sys.version_info < (3,7):
sys.exit('Sorry, Python < 3.7 is not supported')
def __path(filename):
return os.path.join(os.path.dirname(__file__),
filename)
if os.path.exists(__path('build.info')):
build = open(__path('build.info')).read().strip()
with open(__path("hermit/VERSION")) as version_file:
version = version_file.read().strip()
with open("README.md", "r") as fh:
long_description = fh.read()
requirementPath = __path('requirements.frozen.txt')
install_requires = []
if os.path.isfile(requirementPath):
with open(requirementPath) as f:
install_requires = f.read().splitlines()
setuptools.setup(
name="hermit",
version=version,
author="Unchained Capital Engineering",
author_email="engineering@unchained-capital.com",
description="Unchained Capital Hermit",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/unchained-captial/hermit",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
scripts=[
'bin/hermit'
],
install_requires=install_requires,
data_files=[
('pybitcointools', ['pybitcointools/english.txt']),
('hermit', ['hermit/wordlists/shard.txt', 'hermit/wordlists/wallet.txt']),
],
include_package_data=True,
)