freezer/setup.py
Memo Garcia 75b5a6aa5a Windows backup and restore incrementals
Add windows incremental support for backup and restore

Change-Id: I49a6b611f52a5d3a1950bd3f6f49cdb4a59354af
Implements: blueprint windows-backup-and-restore-incrementals
2015-04-14 16:22:33 +01:00

114 lines
4.3 KiB
Python

"""Freezer Setup Python file.
"""
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import os
import io
here = os.path.abspath(os.path.dirname(__file__))
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
import sys
errno = pytest.main(self.pytest_args)
sys.exit(errno)
def read(*filenames, **kwargs):
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
setup(
name='freezer',
version='1.1.3',
url='https://github.com/stackforge/freezer',
license='Apache Software License',
author='Fausto Marzi, Ryszard Chojnacki, Emil Dimitrov',
author_email='fausto.marzi@hp.com, ryszard@hp.com, edimitrov@hp.com',
maintainer='Fausto Marzi, Ryszard Chojnacki, Emil Dimitrov',
maintainer_email='fausto.marzi@hp.com, ryszard@hp.com, edimitrov@hp.com',
tests_require=['pytest'],
description=('OpenStack incremental backup and restore automation tool '
'for file system, MongoDB, MySQL. LVM snapshot and '
'encryption support'),
long_description=open('README.rst').read(),
keywords="OpenStack Swift backup restore mongodb mysql lvm snapshot",
packages=find_packages(),
platforms='Linux, *BSD, OSX',
cmdclass={'test': PyTest},
scripts=['bin/freezerc'],
classifiers=[
'Programming Language :: Python',
'Development Status :: 5 - Production/Stable',
'Natural Language :: English',
'Environment :: OpenStack',
'Intended Audience :: Developers',
'Intended Audience :: Financial and Insurance Industry',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: Apache Software License',
'Operating System :: MacOS',
'Operating System :: POSIX :: BSD :: FreeBSD',
'Operating System :: POSIX :: BSD :: NetBSD',
'Operating System :: POSIX :: BSD :: OpenBSD',
'Operating System :: POSIX :: Linux',
'Operating System :: Unix',
'Topic :: System :: Archiving :: Backup',
'Topic :: System :: Archiving :: Compression',
'Topic :: System :: Archiving',
],
install_requires=[
'python-swiftclient>=1.6.0',
'python-keystoneclient>=0.7.0',
'pymysql',
'pymongo',
'docutils>=0.8.1'],
extras_require={
'testing': ['pytest', 'flake8'],
},
entry_points={
'console_scripts': [
'freezerc=freezer.main:freezer_main'
]
},
data_files=[('freezer/scripts', ['freezer/scripts/vss.ps1']),
('freezer/bin', ['freezer/bin/bunzip2.exe']),
('freezer/bin', ['freezer/bin/bzcat.exe']),
('freezer/bin', ['freezer/bin/bzip2.exe']),
('freezer/bin', ['freezer/bin/bzip2_LICENSE']),
('freezer/bin', ['freezer/bin/bzip2recover.exe']),
('freezer/bin', ['freezer/bin/find.exe']),
('freezer/bin', ['freezer/bin/LICENSE']),
('freezer/bin', ['freezer/bin/gzip.exe']),
('freezer/bin', ['freezer/bin/tar.exe']),
('freezer/bin', ['freezer/bin/cygwin1.dll']),
('freezer/bin', ['freezer/bin/cygintl-8.dll']),
('freezer/bin', ['freezer/bin/cygiconv-2.dll']),
('freezer/bin', ['freezer/bin/cygbz2-1.dll']),
('freezer/bin', ['freezer/bin/bzip2-1.0.6.tar.gz']),
('freezer/bin', ['freezer/bin/gzip-1.6-1.src.tar']),
('freezer/bin', ['freezer/bin/tar-1.27.1.tar.xz']),
('freezer/bin', ['freezer/bin/findutils-4.5.12.tar.gz'])]
)