forked from binance/binance-connector-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (46 loc) · 1.51 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
import os
from setuptools import setup, find_packages
with open(
os.path.join(os.path.dirname(__file__), "requirements/common.txt"), "r"
) as fh:
requirements = fh.readlines()
NAME = "binance-connector"
DESCRIPTION = (
"This is a lightweight library that works as a connector to Binance public API."
)
AUTHOR = "Binance"
URL = "https://github.com/binance/binance-connector-python"
VERSION = None
about = {}
with open("README.md", "r") as fh:
about["long_description"] = fh.read()
root = os.path.abspath(os.path.dirname(__file__))
if not VERSION:
with open(os.path.join(root, "binance", "__version__.py")) as f:
exec(f.read(), about)
else:
about["__version__"] = VERSION
setup(
name=NAME,
version=about["__version__"],
license="MIT",
description=DESCRIPTION,
long_description=about["long_description"],
long_description_content_type="text/markdown",
AUTHOR=AUTHOR,
url=URL,
keywords=["Binance", "Public API"],
install_requires=[req for req in requirements],
packages=find_packages(exclude=("tests",)),
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Financial and Insurance Industry",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
python_requires=">=3.6",
)