-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·78 lines (70 loc) · 2.15 KB
/
setup.py
File metadata and controls
executable file
·78 lines (70 loc) · 2.15 KB
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
71
72
73
74
75
76
77
78
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from os.path import join as pjoin
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [
'apache-libcloud',
'colorlog',
'netifaces',
'paramiko',
'pywinexe',
'pywinrm',
'PyYAML',
'requests',
'requests_mock']
test_requirements = []
# get version from package itself
def get_version():
version = None
sys.path.insert(0, pjoin(os.getcwd()))
from plumbery import __version__
version = __version__
sys.path.pop(0)
return version
# get description from README.rst
def get_long_description():
description = ''
with open('README.rst') as stream:
description = stream.read()
return description
setup(
name='plumbery',
version=get_version(),
description="Cloud automation at Dimension Data with Apache Libcloud",
long_description=get_long_description(),
author="Bernard Paques",
author_email='bernard.paques@gmail.com',
url='https://github.com/DimensionDataCBUSydney/plumbery',
packages=['plumbery'],
package_dir={'plumbery': 'plumbery'},
include_package_data=True,
install_requires=requirements,
entry_points = {
'console_scripts': ['plumbery=plumbery.__main__:main'],
},
license='Apache License (2.0)',
zip_safe=False,
keywords='plumbery',
classifiers=[
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
],
test_suite='tests',
tests_require=test_requirements
)