-
Notifications
You must be signed in to change notification settings - Fork 46
/
setup.py
52 lines (45 loc) · 1.41 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
#!/usr/bin/env python
from os import path
import ast
import re
try:
from setuptools import setup
extra = dict(include_package_data=True)
except ImportError:
from distutils.core import setup
extra = {}
BASE_DIR = path.abspath(path.dirname(__file__))
with open(path.join(BASE_DIR, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
install_requires = [
"requests",
"requests-aws4auth",
]
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('rgwadmin/__init__.py', encoding='utf-8') as f:
version = str(ast.literal_eval(_version_re.search(f.read()).group(1)))
setup(
name="rgwadmin",
packages=["rgwadmin"],
package_data={"rgwadmin": ["py.typed"]},
zip_safe=False,
version=version,
install_requires=install_requires,
author="Derek Yarnell",
author_email="derek@umiacs.umd.edu",
maintainer="UMIACS Staff",
maintainer_email="github@umiacs.umd.edu",
url="https://github.com/UMIACS/rgwadmin",
license="LGPL v2.1",
description="Python Rados Gateway Admin API",
long_description=long_description,
long_description_content_type="text/markdown",
keywords=["ceph", "radosgw", "admin api"],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
**extra
)