-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
54 lines (50 loc) · 1.94 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
"""
To build distribution: python setup.py sdist --formats=gztar bdist_wheel --universal
"""
import os
import setuptools
pkg_name = "openapiart"
version = "0.3.21"
base_dir = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(base_dir, "readme.md")) as fid:
long_description = fid.read()
requirements_path = os.path.join(base_dir, "openapiart", "requirements.txt")
test_req_path = os.path.join(base_dir, "openapiart", "test_requirements.txt")
installation_requires = []
test_requires = []
if os.path.exists(requirements_path) is False:
raise Exception("Could not find requirements path")
with open(requirements_path) as f:
installation_requires = f.read().splitlines()
if "--prefer-binary" in installation_requires:
installation_requires.remove("--prefer-binary")
if os.path.exists(test_req_path):
with open(test_req_path) as f:
test_requires = f.read().splitlines()
setuptools.setup(
name=pkg_name,
version=version,
description="The OpenAPI Artifact Generator Python Package",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/open-traffic-generator/openapiart",
author="https://github.com/open-traffic-generator/openapiart",
author_email="[email protected]",
license="MIT",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Testing :: Traffic Generation",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
keywords="testing openapi artifact generator",
package_data={"openapiart": ["*.go", "goserver/*.go", "*.txt"]},
include_package_data=True,
packages=[pkg_name],
python_requires=">=2.7, <4",
install_requires=installation_requires,
extras_require={"testing": test_requires},
test_suite="tests",
)