-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup_common.py
89 lines (78 loc) · 2.59 KB
/
setup_common.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Modifications made by Cloudera are:
# Copyright (c) 2016 Cloudera, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
from codecs import open
from os import path
def read_long_description():
"""
Reads the long description of the package from the project README.md file.
"""
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
return f.read()
def get_requirements():
"""
Gets the prerequisite requirements for the package.
"""
return ["python-dateutil>=2.1,<3.0.0",
"docutils==0.14",
"pyyaml>=3.11",
"colorama>=0.2.5,!=0.3.8,!=0.3.9,!=0.4.2",
"asn1crypto>=0.21.1",
"rsa>=3.4.2",
"pure25519>=0.0.1",
"ecdsa>=0.17.0",
"requests>=2.21.0",
"urllib3>=1.21.1"]
def get_classifiers(release):
"""
Gets the classifiers for the package.
"""
if release == 'public':
classifiers = [
'Development Status :: 5 - Production/Stable',
]
elif release == 'beta':
classifiers = [
'Development Status :: 4 - Beta'
]
else:
classifiers = [
'Development Status :: 3 - Alpha'
]
classifiers.extend([
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
])
return classifiers
def get_entry_points():
"""
Gets the entry points for the package.
"""
return {
'console_scripts': [
'cdp=cdpcli.clidriver:main',
'cdp_completer=cdpcli.completer:main'
],
}