forked from wal-e/wal-e
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·54 lines (43 loc) · 1.31 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
#!/usr/bin/env python
import os.path
import sys
# Version file managment scheme and graceful degredation for
# setuptools borrowed and adapted from GitPython.
try:
from setuptools import setup, find_packages
# Silence pyflakes
assert setup
assert find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
if sys.version_info < (2, 6):
raise RuntimeError('Python versions < 2.6 are not supported.')
v = open(os.path.join(os.path.dirname(__file__), 'VERSION'))
VERSION = v.readline().strip()
v.close()
install_requires = ['gevent>=0.13.0', 'boto>=2.0']
tests_require = [
"pytest>=2.2.1",
"pytest-capturelog>=0.7",
]
if sys.version_info < (2, 7):
install_requires.append('argparse>=0.8')
setup(
name="WAL-E",
version=VERSION,
packages=find_packages(),
install_requires=install_requires,
tests_require=tests_require,
# metadata for upload to PyPI
author="Daniel Farina",
author_email="[email protected]",
description="PostgreSQL WAL-shipping for S3",
license="BSD",
keywords="postgresql database backup",
url="https://github.com/wal-e/wal-e",
# run tests
test_suite='runtests.runtests',
# install
entry_points={'console_scripts': ['wal-e=wal_e.cmd:main']})