forked from EnterpriseDB/postgres-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (66 loc) · 2.22 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
67
68
69
70
71
import os.path
import sys
from setuptools import setup
from textwrap import dedent
def get_version():
cur_dir = os.path.dirname(__file__)
init_path = os.path.join(cur_dir, "edbdeploy", "__init__.py")
with open(init_path) as f:
for line in f:
if line.startswith("__version__"):
return line.split('"')[1]
raise Exception("Version information not found in %s" % init_path)
def get_long_description():
cur_dir = os.path.dirname(__file__)
with open(os.path.join(cur_dir, "README.md")) as f:
return f.read()
setup(
name="edb-deployment",
version=get_version(),
author="EDB",
author_email="[email protected]",
scripts=["edb-deployment"],
packages=["edbdeploy", "edbdeploy.spec", "edbdeploy.commands"],
url="https://github.com/EnterpriseDB/postgres-deployment/",
license="BSD",
description=dedent("""
Postgres Deployment Scripts are an easy way to deploy PostgreSQL, EDB Postgres
Advanced Server, and EDB Tools in the Cloud.
"""),
long_description=get_long_description(),
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Topic :: Database",
],
keywords="postgresql edb epas cli deploy cloud aws rds aurora azure gcloud",
python_requires=">=2.7",
install_requires=["argcomplete", "PyYAML"],
extras_require={},
data_files=[
(
'share/edb-deployment/scripts',
[
'scripts/install_requirements_linux_x64.sh',
'scripts/install_requirements_darwin_x64.sh',
]
)
],
package_data={
'edbdeploy': [
'data/ansible/*.yml',
'data/terraform/*/*.tf.template',
'data/terraform/*/*.tf',
'data/terraform/*/*/*.tf',
'data/terraform/*/*/*.sh',
'data/terraform/*/*/*/*.tf',
'data/terraform/*/*/*/*.sh',
'data/terraform/*/*/*/*/*.tf',
'data/terraform/*/*/*/*/*.sh',
]
}
)