forked from apurvasingh/cloudpassage-halo-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathsetup.py
More file actions
47 lines (39 loc) · 1.39 KB
/
setup.py
File metadata and controls
47 lines (39 loc) · 1.39 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
import os
import re
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_version():
raw_init_file = read("cloudpassage/__init__.py")
rx_compiled = re.compile(r"\s*__version__\s*=\s*\"(\S+)\"")
ver = rx_compiled.search(raw_init_file).group(1)
return ver
def get_long_description(fnames):
retval = ""
for fname in fnames:
retval = retval + (read(fname)) + "\n\n"
return retval
setup(
name="cloudpassage",
version=get_version(),
author="CloudPassage",
author_email="toolbox@cloudpassage.com",
description="Python SDK for CloudPassage Halo API",
license="BSD",
keywords="cloudpassage halo api sdk",
url="http://github.com/cloudpassage/cloudpassage-halo-python-sdk",
packages=["cloudpassage"],
install_requires=["requests>=2.18", "pyaml"],
long_description=get_long_description(["README.rst", "CHANGELOG.rst"]),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Security",
"License :: OSI Approved :: BSD License"
],
)