-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·80 lines (62 loc) · 2.05 KB
/
setup.py
File metadata and controls
executable file
·80 lines (62 loc) · 2.05 KB
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
77
78
79
80
# -*- coding: utf-8 -*-
"""dnacentersdk setup module."""
import os
from codecs import open
from setuptools import find_packages, setup
__copyright__ = "Copyright (c) 2019-2021 Cisco Systems."
__license__ = "MIT"
PACKAGE_NAME = "dnacentersdk"
PACKAGE_KEYWORDS = [
"cisco",
"dna",
"dnacenter",
"python",
"api",
"sdk",
]
PACKAGE_CLASSIFIERS = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Intended Audience :: Telecommunications Industry",
"Intended Audience :: Education",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: System",
"Topic :: System :: Networking",
"Topic :: Utilities",
]
INSTALLATION_REQUIREMENTS = [
"requests>=2.31.0",
"fastjsonschema>=2.16.2",
"requests-toolbelt>=1.0.0",
]
project_root = os.path.abspath(os.path.dirname(__file__))
# Get package metadata
metadata = {}
with open(os.path.join(project_root, PACKAGE_NAME, "_metadata.py")) as f:
exec(f.read(), metadata)
# Get the long description from the project's README.rst file
with open(os.path.join(project_root, "README.rst"), encoding="utf-8") as f:
long_description = f.read()
setup(
name=PACKAGE_NAME,
use_scm_version=True,
setup_requires=["setuptools_scm"],
description=metadata["__description__"],
long_description=long_description,
url=metadata["__url__"],
download_url=metadata["__download_url__"],
author=metadata["__author__"],
author_email=metadata["__author_email__"],
license=metadata["__license__"] + "; " + metadata["__copyright__"],
classifiers=PACKAGE_CLASSIFIERS,
keywords=" ".join(PACKAGE_KEYWORDS),
packages=find_packages(include=[PACKAGE_NAME, PACKAGE_NAME + ".*"]),
install_requires=INSTALLATION_REQUIREMENTS,
)