-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
70 lines (59 loc) · 1.88 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/python
from setuptools import setup, find_packages
import os
import re
import sys
module_file = open("downburst/__init__.py").read()
metadata = dict(re.findall(r"__([a-z]+)__\s*=\s*['\"]([^'\"]*)['\"]", module_file))
long_description = open('README.rst').read()
install_requires=[
'setuptools',
'libvirt-python',
'distro',
]
install_requires.extend(
[ln.strip() for ln in open('requirements-dev.txt').readlines() if ln]
)
pyversion = sys.version_info[:2]
if pyversion < (2, 7) or (3, 0) <= pyversion <= (3, 1):
install_requires.append('argparse')
tests_require = [
'pytest >= 2.1.3',
'tox >= 1.2'
]
setup(
name='downburst',
version=metadata['version'],
packages=find_packages(),
author='Inktank Storage, Inc.',
author_email='[email protected]',
description='Run Cloud images on libvirt virtual machines',
long_description=long_description,
license='MIT',
keywords='libvirt virtualization',
url="https://github.com/ceph/downburst",
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
install_requires=install_requires,
tests_require=tests_require,
entry_points={
'console_scripts': [
'downburst = downburst.cli:main',
],
'downburst.cli': [
'create = downburst.create:make',
'destroy = downburst.destroy:make',
'list = downburst.discover:make',
'gen-ssh-key = downburst.gen_ssh_key:make',
'list-json = downburst.discover:make_json',
],
},
)