-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
89 lines (75 loc) · 2.09 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
"""Packaging settings."""
from codecs import open
from os.path import abspath, dirname, join
from subprocess import call
from setuptools import Command, find_packages, setup
from boss import __version__
path = abspath(dirname(__file__))
with open(join(path, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
class RunTests(Command):
"""Run all tests."""
description = 'run tests'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
"""Run all tests!"""
errno = call(['py.test', '--cov=boss', '--cov-report=term-missing'])
raise SystemExit(errno)
# Package requirements
requirements = [
'fabric==1.14.1',
'paramiko==2.5',
'cryptography==2.7',
'pyyaml==5.1.1',
'requests==2.20.0',
'inquirer==2.2.0',
'python-dotenv==0.6.5',
'terminaltables==3.1.0',
'click==6.7',
'hvac==0.6.4',
]
# Development requirements
requirements_dev = [
'pytest==3.2.3',
'pytest-cov==2.5.1',
'pytest-watch==4.2.0',
'coverage==4.4.1',
'mock==2.0.0',
'pylint==1.7.4',
'autopep8==1.3.3',
'mock-ssh-server==0.3.0',
'twine==1.13.0'
]
setup(
name='boss-cli',
version=__version__,
description='Yet another pythonic deployment tool built on top of fabric.',
long_description_content_type='text/markdown',
long_description=long_description,
url='https://github.com/kabirbaidhya/boss-cli',
author='Kabir Baidhya',
author_email='[email protected]',
license='MIT',
classifiers=[
'Intended Audience :: Developers',
'Topic :: Utilities',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7'
],
keywords='cli',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=requirements,
extras_require={'dev': requirements_dev},
entry_points={
'console_scripts': [
'boss=boss.cli:main',
],
},
cmdclass={'test': RunTests},
include_package_data=True
)