forked from Miserlou/Zappa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·60 lines (56 loc) · 2.07 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
import os
import sys
from setuptools import setup
from io import open
from zappa 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'), 'r', encoding="utf-8").read()
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as f:
if sys.version_info[0] == 2:
required = f.read().splitlines()
else:
# This logic is intended to prevent the futures package from being installed in python 3 environments
# as it can cause unexpected syntax errors in other packages. Futures is in the standard library in python 3
# and is should never be installed in these environments.
# Related: https://github.com/Miserlou/Zappa/issues/1179
required = []
for package in f.read().splitlines():
if 'futures' not in package:
required.append(package)
with open(os.path.join(os.path.dirname(__file__), 'test_requirements.txt')) as f:
test_required = f.read().splitlines()
setup(
name='zappa',
version=__version__,
packages=['zappa'],
install_requires=required,
tests_require=test_required,
test_suite='nose.collector',
include_package_data=True,
license='MIT License',
description='Server-less Python Web Services for AWS Lambda and API Gateway',
long_description=README,
url='https://github.com/Miserlou/Zappa',
author='Rich Jones',
author_email='[email protected]',
entry_points={
'console_scripts': [
'zappa=zappa.cli:handle',
'z=zappa.cli:handle',
]
},
classifiers=[
'Environment :: Console',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)