-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
68 lines (59 loc) · 1.93 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
from setuptools import setup
from pathlib import Path
CURRENT_DIR = Path(__file__).parent
# Specific Python Test Runner (ptr) params for Unit Testing Enforcement
ptr_params = {
"entry_point_module": "src/json2netns/main",
"test_suite": "json2netns.tests.base",
"test_suite_timeout": 120,
"required_coverage": {
"json2netns/config.py": 90,
"json2netns/main.py": 70,
"json2netns/netns.py": 70,
},
"run_black": True,
"run_mypy": True,
"run_flake8": True,
}
def get_long_description() -> str:
return (
(CURRENT_DIR / "README.md").read_text(encoding="utf8")
# TODO: Add changes
# + "\n\n"
# + (CURRENT_DIR / "CHANGES.md").read_text(encoding="utf8")
)
setup(
name="json2netns",
version="2021.5.7",
description="JSON parsing Linux Network Namespace (netns) topology builder.",
long_description=get_long_description(),
long_description_content_type="text/markdown",
keywords="json linux netns network namespace",
author="Cooper Ry Lees",
author_email="[email protected]",
url="https://github.com/cooperlees/json2netns",
# project_urls={"Changelog": "https://github.com/cooperlees/json2netns/blob/master/CHANGES.md"},
license="BSD",
packages=["json2netns", "json2netns.tests"],
package_dir={"": "src"},
package_data={
"json2netns": ["sample.json"],
},
python_requires=">=3.8.0",
install_requires=[],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
],
entry_points={
"console_scripts": [
"json2netns=json2netns.main:main",
]
},
)