forked from rtshome/pgrepup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
86 lines (77 loc) · 2.79 KB
/
setup.py
File metadata and controls
86 lines (77 loc) · 2.79 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
81
82
83
84
85
86
#!/usr/bin/env python
#
# pgrepup - Upgrade PostgreSQL using logical replication
#
# Copyright (C) 2016 Denis Gasparin <denis@gasparin.net>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Upgrade PostgreSQL clusters using logical replication
pgrepup is an open-source tool for performing a major version upgrade between
two PostgreSQL clusters using pglogical extension by 2nd Quadrant. PostgreSQL versions supported are 9.4, 9.5, 9.6 and 10.
pgrepup is distributed under GNU GPL 3 and maintained by Denis Gasparin <denis@gasparin.net>.
"""
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.version_info < (2, 6):
raise SystemExit('ERROR: Pgrepup needs at least python 2.6 to work')
install_requires = [
'psycopg2-binary >= 2.4.2',
'docopt >= 0.6.0',
'python-dateutil',
'clint >= 0.5.1',
'cryptography',
'semver',
]
if sys.version_info < (2, 7):
install_requires += [
'argparse',
]
pgrepup = {}
with open('pgrepup/version.py', 'r') as fversion:
exec(fversion.read(), pgrepup)
setup(
name='pgrepup',
version=pgrepup['__version__'],
author='Denis Gasparin',
author_email='denis@gasparin.net',
url='https://www.github.com/rtshome/pgrepup',
packages=['pgrepup', 'pgrepup/commands', 'pgrepup/helpers'],
scripts=['bin/pgrepup', ],
data_files=[],
license='GPL-3.0',
description=__doc__.split("\n")[0],
long_description="\n".join(__doc__.split("\n")[2:]),
install_requires=install_requires,
platforms=['Linux', 'Mac OS X'],
classifiers=[
'Environment :: Console',
'Development Status :: 5 - Production/Stable',
'Topic :: Database',
'Topic :: System :: Recovery Tools',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v3 or later '
'(GPLv3+)',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
setup_requires=[],
tests_require=[],
)