forked from ceph/radosgw-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (35 loc) · 1.03 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
from setuptools import setup, find_packages
import sys
import re
module_file = open("radosgw_agent/__init__.py").read()
metadata = dict(
re.findall(r"__([a-z]+)__\s*=\s*['\"]([^'\"]*)['\"]", module_file))
install_requires = []
pyversion = sys.version_info[:2]
if pyversion < (2, 7) or (3, 0) <= pyversion <= (3, 1):
install_requires.append('argparse')
setup(
name='radosgw-agent',
version=metadata['version'],
packages=find_packages(),
author='Josh Durgin',
author_email='[email protected]',
description='Synchronize users and data between radosgw clusters',
license='MIT',
keywords='radosgw ceph radosgw-agent',
url="https://github.com/ceph/radosgw-agent",
install_requires=[
'setuptools',
'boto >=2.2.2,<3.0.0',
] + install_requires,
test_requires=[
'pytest >=2.1.3',
'mock >=1.0',
'httpretty',
],
entry_points={
'console_scripts': [
'radosgw-agent = radosgw_agent.cli:main',
],
},
)