-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
56 lines (49 loc) · 1.48 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
"""Setup script"""
import setuptools
import os
import re
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION_RE = re.compile(r"""__version__ = ['"]([0-9.]+)['"]""")
TESTS_REQUIRE = ["coverage", "nose", "pytest"]
DESCRIPTION = ""
REQUIRED_PACKAGES = [
"click",
"click_option_group",
"pyyaml",
"jinja2",
"tabulate",
"colorama",
"ruamel.yaml",
"beautifulsoup4",
"requests",
]
def get_version():
init = open(os.path.join(HERE, "cloud_guardrails", "bin", "version.py")).read()
return VERSION_RE.search(init).group(1)
def get_description():
return open(
os.path.join(os.path.abspath(HERE), "README.md"), encoding="utf-8"
).read()
setuptools.setup(
name="cloud-guardrails",
include_package_data=True,
version=get_version(),
author="Kinnaird McQuade",
author_email="[email protected]",
description=DESCRIPTION,
long_description=get_description(),
long_description_content_type="text/markdown",
url="https://github.com/salesforce/cloud-guardrails",
packages=setuptools.find_packages(exclude=["test*"]),
tests_require=TESTS_REQUIRE,
install_requires=REQUIRED_PACKAGES,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
entry_points={"console_scripts": "cloud-guardrails=cloud_guardrails.bin.cli:main"},
zip_safe=True,
keywords="azure security",
python_requires=">=3.7",
)