-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
52 lines (43 loc) · 1.76 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
from setuptools import setup, find_packages
from os import path
VERSION = '3.1.3'
DESCRIPTION = 'Defichain Python Library'
# Project URLs
project_urls = {
"Tracker": "https://github.com/eric-volz/DefichainPython",
"Documentation": "https://docs.defichain-python.de"
}
this_directory = path.abspath(path.dirname(__file__))
def long_description():
with open(path.join(this_directory, 'README.rst'), encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
return LONG_DESCRIPTION
def requirements():
with open("requirements.txt", "r") as _requirements:
requirement: list = list(map(str.strip, _requirements.read().split("\n")))
return requirement
# Setting up
if __name__ == "__main__":
setup(
name="defichain",
version=VERSION,
author="Intr0c",
author_email="[email protected]",
url="https://github.com/eric-volz/DefichainPython",
description=DESCRIPTION,
long_description=long_description(),
packages=["defichain"] + ["defichain." + package for package in find_packages(where="defichain")],
package_data={'': ['*.txt', '*.json']},
install_requires=requirements(),
keywords=['python', 'defichain', 'node', 'ocean', 'mnemonic', 'wallet', 'privateKey', 'transactions',
'raw transactions', 'P2PKH', 'P2SH', 'P2WPKH', 'DefiTx', 'custom transaction'],
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
]
)