
The PyPI installer for pyrsync was broken, so in order to assure a proper install a workaround to fetch it from GitHub has been added. Updated tox.ini file Change-Id: Ib08dd822e04177a852d5f8846d10865e2e9417f8
93 lines
3.1 KiB
Python
93 lines
3.1 KiB
Python
"""Freezer Setup Python file.
|
|
"""
|
|
from setuptools import setup, find_packages
|
|
from setuptools.command.test import test as TestCommand
|
|
import os
|
|
|
|
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.1',
|
|
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',
|
|
'pyrsync'],
|
|
dependency_links=[
|
|
"git+https://github.com/isislovecruft/pyrsync.git#egg=pyrsync"],
|
|
extras_require={
|
|
'testing': ['pytest', 'flake8'],
|
|
}
|
|
)
|