forked from pedrohdz/py-lambda-packer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·53 lines (46 loc) · 1.59 KB
/
setup.py
File metadata and controls
executable file
·53 lines (46 loc) · 1.59 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
#!/usr/bin/env python
import re
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')
setup(
name='py-lambda-packer',
version=version(),
author='Pedro H.',
author_email='pedro@digitalrounin.com',
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,
install_requires=[
'PyYAML>=3.12',
'colorlog>=2.10.0',
'future>=0.16.0'
],
entry_points={'console_scripts': [
'py-lambda-packer = {}'.format(_ENTRY_POINT),
'plp = {}'.format(_ENTRY_POINT),
]},
)