-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
53 lines (48 loc) · 1.67 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
"""
To build distribution: python setup.py sdist bdist_wheel --universal
"""
import os
import setuptools
from version import Version
pkg_name = Version.package_name
version = Version.version
models_version = Version.models_version
# read long description from readme.md
base_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(base_dir, "readme.md")) as fd:
long_description = fd.read()
with open("models-release", "w") as out:
out.write("v" + models_version)
install_requires = []
with open(os.path.join(base_dir, "requirements.txt"), "r+") as fd:
install_requires = fd.readlines()
install_requires = install_requires[1:]
setuptools.setup(
name=pkg_name,
version=version,
description="The Snappi Open Traffic Generator Python Package",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/open-traffic-generator/snappi",
author="ajbalogh",
author_email="andy.balogh@keysight.com",
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="snappi testing open traffic generator automation",
include_package_data=True,
packages=[pkg_name],
python_requires=">=2.7, <4",
install_requires=install_requires,
extras_require={
"ixnetwork": ["snappi_ixnetwork==1.19.0"],
"trex": ["snappi_trex"],
"testing": ["pytest", "flask"],
},
)