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_futures_connector”
DESCRIPTION = “This is a lightweight library that works as a connector to Binance Futures public API.”
AUTHOR = “Futures”
URL = “https://github.com/binance/binance_futures_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 futures”, “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.7”,
“Programming Language :: Python :: 3.8”,
“Programming Language :: Python :: 3.9”,
“Programming Language :: Python :: 3.10”,
],
python_requires=">=3.7",
)
Warning (from warnings module):
File “D:\Program Files (x86)\Lib\site-packages\setuptools_distutils\dist.py”, line 264
warnings.warn(msg)
UserWarning: Unknown distribution option: ‘AUTHOR’
SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] …]
or: setup.py --help [cmd1 cmd2 …]
or: setup.py --help-commands
or: setup.py cmd --help
error: no commands supplied