forked from scrapli/scrapli_community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (55 loc) · 2.17 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
#!/usr/bin/env python
"""scrapli_community"""
from pathlib import Path
import setuptools
__version__ = "2021.07.30"
__author__ = "Carl Montanari"
with open("README.md", "r", encoding="utf-8") as f:
README = f.read()
with open("requirements.txt", "r") as f:
INSTALL_REQUIRES = f.read().splitlines()
EXTRAS_REQUIRE = {}
for extra in EXTRAS_REQUIRE:
with open(f"requirements-{extra}.txt", "r") as f:
EXTRAS_REQUIRE[extra] = f.read().splitlines()
full_requirements = [requirement for extra in EXTRAS_REQUIRE.values() for requirement in extra]
EXTRAS_REQUIRE["full"] = full_requirements
def get_packages(package):
"""Return root package and all sub-packages"""
return [str(path.parent) for path in Path(package).glob("**/__init__.py")]
setuptools.setup(
name="scrapli_community",
version=__version__,
author=__author__,
author_email="[email protected]",
description="Easily add support for 'non-core' platforms to scrapli",
long_description=README,
long_description_content_type="text/markdown",
keywords="ssh telnet netconf automation network cisco iosxr iosxe nxos arista eos juniper "
"junos",
url="https://github.com/scrapli/scrapli_community",
project_urls={
"Changelog": "https://scrapli.github.io/scrapli_community/changelog/",
"Docs": "https://scrapli.github.io/scrapli_community/",
},
license="MIT",
package_data={"scrapli_community": ["py.typed"]},
packages=get_packages("scrapli_community"),
install_requires=INSTALL_REQUIRES,
dependency_links=[],
extras_require=EXTRAS_REQUIRE,
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Programming Language :: Python",
"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",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
],
python_requires=">=3.6",
)