This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
63 lines (54 loc) · 1.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
import setuptools
import hashlib
import re
with open("README.md", "r") as fh:
content = fh.read()
arr = content.split("\n")
long_description = "\n".join(arr[3:])
with open("libra_client/version.py", "r") as fp:
try:
version = re.findall(
r"^version = \"([0-9\.]+)\"", fp.read(), re.M
)[0]
except IndexError:
raise RuntimeError("Unable to determine version.")
install_requires=[
'canoser==0.8.2',
'libra-core==0.9.5',
'PyNaCl',
'requests',
'mnemonic'
]
tests_require = [
'pytest',
]
if not 'sha3_256' in hashlib.algorithms_available:
#only exec under sdist, not bdist_wheel
#if add pysha3 always, it will be failed under windows without c++ compiler installed.
install_requires.append("pysha3")
setuptools.setup(
name="libra-client",
version=version,
author="yuan xinyu",
author_email="[email protected]",
description="A CLI inteface Libra client and Python API for Libra blockchain.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/yuan-xy/libra-client.git",
packages=setuptools.find_packages(),
include_package_data=True,
entry_points={
'console_scripts':[
'libra = libra_client.cli.main:main',
'libra_shell = libra_client.shell.libra_shell:main'
]
},
install_requires=install_requires,
tests_require=tests_require,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.7',
)