Skip to content

Commit 84533b6

Browse files
committed
Merge pull request #42 from ps-jay/test-for-python27
Add check for Python 2.7 - bail if not found
2 parents 6665611 + f8fcb25 commit 84533b6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lambda_uploader/shell.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ def _execute(args):
9191

9292
def main(arv=None):
9393
"""lambda-uploader command line interface."""
94+
# Check for Python 2.7 (required for Lambda)
95+
if not (sys.version_info[0] == 2 and sys.version_info[1] == 7):
96+
raise RuntimeError('lambda-uploader requires Python 2.7')
97+
9498
import argparse
9599

96100
parser = argparse.ArgumentParser(

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def package_meta():
4545
install_requires=DEPENDENCIES,
4646
packages=find_packages(exclude=['tests']),
4747
classifiers=[
48-
"Programming Language :: Python",
4948
"Programming Language :: Python :: 2.7",
5049
],
5150
license=_lu_meta['license'],

0 commit comments

Comments
 (0)