-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (55 loc) · 1.61 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
# pylint: disable-msg=no-name-in-module,import-error
from distutils.cmd import Command
from os import getcwd
from subprocess import check_call
from setuptools import find_packages, setup
class PylintCommand(Command):
description = 'run pylint on Python source files'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
command = ['pylint', getcwd()]
return check_call(command)
def get_short_description():
return 'Ansible infrastructure-as-code playbooks for publishing ' + \
'packages to NPM, PyPy, setting up servers and deployment to ' + \
'AWS, GCP and Heroku'
def get_long_description():
readme_file = 'README.md'
with open(readme_file, 'r', encoding='utf-8') as f:
readme = f.read()
return readme
setup(
name='playbooks',
packages=find_packages(),
version='1.0.0',
description=get_short_description(),
long_description=get_long_description(),
long_description_content_type='text/markdown',
license='Apache-2.0',
author='Sudharshan Ravindran',
author_email='[email protected]',
url='https://github.com/suddi/playbooks',
download_url='https://github.com/suddi/playbooks',
keywords=[
'playbooks',
'ansible',
'iac',
'infrastructure-as-code',
'cloudformation',
'deployment-manager',
'aws',
'gcp',
'heroku'
],
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8'
],
cmdclass={
'lint': PylintCommand
}
)