-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (36 loc) · 1.22 KB
/
setup.py
File metadata and controls
43 lines (36 loc) · 1.22 KB
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
# coding: utf-8
import os
from setuptools import setup, find_packages # noqa: H301
with open(
os.path.join(os.path.dirname(__file__), "requirements.txt"), "r"
) as fh:
requirements = fh.readlines()
# get version from pyproject.toml
with open("pyproject.toml", "r") as fh:
for line in fh:
if line.startswith("version ="):
VERSION = line.split("=")[1].strip().replace('"', '')
break
if VERSION is None:
raise ValueError("Version not found in pyproject.toml")
about = {}
with open("README.md", "r") as fh:
about["long_description"] = fh.read()
NAME = "openxapi-binance"
PYTHON_REQUIRES = ">= 3.8"
setup(
name=NAME,
version=VERSION,
description="Python client for Binance API",
author="OpenXAPI",
author_email="contact@openxapi.com",
url="https://github.com/openxapi/binance-py",
keywords=["OpenXAPI","OpenAPI", "binance", "binance-python"],
install_requires=[req for req in requirements if req.strip()],
packages=find_packages(exclude=["*.test"]),
include_package_data=True,
license="MIT",
long_description_content_type='text/markdown',
long_description=about["long_description"],
package_data={"openxapi-binance": ["py.typed"]},
)