forked from sandorkan/dynamite
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·52 lines (45 loc) · 1.44 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 python3
from setuptools import setup, Command, find_packages
from pip.req import parse_requirements
import pip
from os import path
cwd = path.abspath(path.dirname(__file__))
install_reqs = parse_requirements(path.join(cwd, 'requirements.txt'), session=pip.download.PipSession())
reqs = [str(ir.req) for ir in install_reqs]
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
setup(
name='dynamite',
description='Autoscaling Tool for CoreOS',
version='0.0.2.dev1',
packages=find_packages(),
url='https://github.com/sandorkan/dynamite',
license='Apache License 2.0',
author='brnr',
author_email='brnr@zhaw.ch',
install_requires=reqs,
tests_require=['pytest'],
cmdclass={'test': PyTest},
entry_points={
'console_scripts': [
'dynamite = dynamite.Dynamite:main'
]
},
classifiers=[
# Availale Classifiers --> https://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Information Technology',
'Topic :: Utilities',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.4'
]
)