Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
78 lines (65 loc) · 1.96 KB
/
Copy pathsetup.py
File metadata and controls
78 lines (65 loc) · 1.96 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
"""Packaging settings."""
import os
from codecs import open
from subprocess import call
from setuptools import Command, find_packages, setup
from lmdo import __version__
# Set external files
try:
from pypandoc import convert
README = convert('README.md', 'rst')
except ImportError:
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
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=lmdo', '--cov-report=term-missing'])
raise SystemExit(errno)
setup(
name='lmdo',
version=__version__,
description='CLI tools for microservices automation using AWS Lambda function',
url='https://github.com/liangrog/lmdo',
author='Roger Liang',
author_email='pinguroger@gmail.com',
license='MIT',
classifiers=[
'Intended Audience :: Developers',
'Topic :: Utilities',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
keywords='cli',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=[
'docopt==0.6.2',
'boto3>=1.4.2',
'PyYAML==3.12',
'jinja2==2.8',
'gitpython',
'lambda-packages==0.13.0',
],
extras_require={
'test': ['coverage', 'pytest', 'pytest-cov'],
},
include_package_data=True,
entry_points={
'console_scripts': [
'lmdo=lmdo.cli:main',
],
},
cmdclass={'test': RunTests},
)