forked from deviantony/xtrabackup-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (40 loc) · 1.46 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
from setuptools import setup, find_packages
import os
package_root = os.path.dirname(__file__)
about = {}
with open("xtrabackup/__about__.py") as fp:
exec(fp.read(), about)
# Error-handling here is to allow package to be built w/o README.rst included
try:
long_description = open(os.path.join(package_root, 'README.rst')).read()
except IOError:
long_description = ''
setup(
name=about["__title__"],
version=about["__version__"],
description=about["__summary__"],
long_description=long_description,
url=about["__uri__"],
author=about["__author__"],
author_email=about["__email__"],
license=about["__license__"],
classifiers=[
'Intended Audience :: System Administrators',
'Topic :: System :: Archiving :: Backup',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
],
keywords='mysql mariadb database backup percona xtrabackup',
packages=find_packages(exclude=['contrib', 'docs', 'tests*', 'sql']),
install_requires=['docopt', 'requests'],
entry_points={
'console_scripts': [
'pyxtrabackup=xtrabackup.full_backup:main',
'pyxtrabackup-inc=xtrabackup.incremental_backup:main',
'pyxtrabackup-restore=xtrabackup.restoration:main'
],
},
)