-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
executable file
·80 lines (70 loc) · 2.08 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
#!/usr/bin/env python
import re
import sys
import ast
from setuptools import setup, find_packages
_ENTRY_POINT = 'plpacker.cli:entry_point'
def version():
version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('plpacker/__init__.py', 'rb') as handle:
return str(ast.literal_eval(version_re.search(
handle.read().decode('utf-8')).group(1)))
def long_description():
with open('README.rst', 'rb') as handle:
return handle.read().decode('utf-8')
_TEST_REQUIRE = [
# coverage 5 is still in alpha.
'coverage>=4.4.1,<5',
'pyfakefs>=3.5',
'pytest-cov>=2.5.1',
'pytest>=3.0.7',
]
if sys.version_info[0] < 3:
_TEST_REQUIRE.extend(['mock'])
_CI_REQUIRE = [
'flake8>=3.3.0',
'pep257>=0.7.0',
'pylint>=1.7.1',
'tox>=2.7.0',
]
setup(
name='py-lambda-packer',
version=version(),
author='Pedro H.',
author_email='[email protected]',
description='Helps build AWS Lambda zip files for Python projects.',
long_description=long_description(),
url='https://github.com/digitalrounin/py-lambda-packer.git',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
],
keywords='aws lambda',
packages=find_packages(exclude=['tests']),
include_package_data=True,
setup_requires=[
'pytest-runner',
],
install_requires=[
'PyYAML>=3.12',
'colorlog>=2.10.0',
'future>=0.16.0',
],
tests_require=_TEST_REQUIRE,
extras_require={
'ci': _CI_REQUIRE,
'test': _TEST_REQUIRE,
},
entry_points={'console_scripts': [
'py-lambda-packer = {}'.format(_ENTRY_POINT),
'plp = {}'.format(_ENTRY_POINT),
]},
)