-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathsetup.py
76 lines (67 loc) · 2.33 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
64
65
66
67
68
69
70
71
72
73
74
75
76
from setuptools import setup
version = "1.1.5"
with open("requirements.txt") as fd:
requirements = [line.strip() for line in fd if line.strip()]
testing_requirements = [
"nose",
"mock",
"faker",
"pytest",
"pytest-cov",
"codecov",
"coverage",
]
linting_requirements = ["flake8", "flake8-isort", "flake8-quotes"]
with open("README.md") as fd:
long_description = fd.read()
if "a" in version:
dev_status = "3 - Alpha"
elif "b" in version:
dev_status = "4 - Beta"
else:
dev_status = "5 - Production/Stable"
setup_args = {
"name": "huawei-modem-api-client",
"version": version,
"author": "Pablo Santa Cruz, Mkhanyisi Madlavana",
"author_email": "pablo@roshka.com.py, mkhanyisi@gmail.com",
"url": "https://github.com/pablo/huawei-modem-python-api-client",
"download_url": "https://github.com/dopstar/huawei-modem-python-api-client/tarball/{0}".format(
version
),
"package_dir": {"huaweisms": "huaweisms"},
"description": "huaweisms is a python api client for Huawei Modems.",
"long_description": long_description,
"long_description_content_type": "text/markdown",
"packages": [
"huaweisms",
"huaweisms.api",
"huaweisms.xml",
],
"data_files": [("", ["requirements.txt"])],
"install_requires": requirements,
"tests_require": testing_requirements,
"extras_require": {
"testing": testing_requirements,
"linting": linting_requirements,
},
"keywords": ["Huawei", "Modem", "HTTP API Client", "API Client", "Router"],
"classifiers": [
"Development Status :: {0}".format(dev_status),
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 2.7",
"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",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Topic :: Software Development :: Version Control :: Git",
"Programming Language :: Python :: Implementation :: CPython",
],
}
setup(**setup_args)