-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
executable file
·46 lines (40 loc) · 1.35 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
#!/usr/bin/env python
from setuptools import setup, find_packages
from swiftnbd.const import version, project_url, description
import sys
if sys.version_info.major < 3 or \
sys.version_info.major == 3 and sys.version_info.minor < 3:
sys.exit("This software requires Python 3.3 or later.")
install_requires = ["python-swiftclient>=1.2.0",]
if sys.version_info.minor == 3:
install_requires.append("asyncio")
def readme():
try:
return open("README.rst").read()
except:
return ""
setup(name="swiftnbd",
version=version,
description=description,
long_description=readme(),
author="Juan J. Martinez",
author_email="jjm@usebox.net",
url=project_url,
license="MIT",
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
scripts=["bin/swiftnbd-server", "bin/swiftnbd-ctl"],
packages=find_packages(exclude=["tests"]),
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Programming Language :: Python :: 3 :: Only",
"Operating System :: OS Independent",
"Environment :: No Input/Output (Daemon)",
"License :: OSI Approved :: MIT License",
],
keywords="openstack object storage swift nbd",
tests_require=["nose",],
test_suite="nose.collector",
)