Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 48d6888

Browse filesBrowse files
Merge pull request #71 from suzil/cleanup/drop-py2
Drop support of Python 2.7
2 parents 25c4362 + c8daf4b commit 48d6888
Copy full SHA for 48d6888

File tree

7 files changed

+8
-34
lines changed
Filter options

7 files changed

+8
-34
lines changed

‎.gitignore

Copy file name to clipboardExpand all lines: .gitignore
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,7 @@ target/
6161

6262
# Vitual Environments
6363
venv/
64+
.env/
65+
66+
# direnv
67+
.envrc

‎README.md

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Run lambda function on local machine
88

99
## Prepare development environment
1010

11-
Please use a newly created virtualenv of Python 2.7 or Python 3.7.
11+
Please use a newly created virtualenv of Python 3.7+.
1212

1313
## Installation
1414

‎README.rst

Copy file name to clipboardExpand all lines: README.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Run lambda function on local machine
99
Prepare development environment
1010
-------------------------------
1111

12-
Please use a newly created virtualenv of Python 2.7 or Python 3.7.
12+
Please use a newly created virtualenv of Python 3.7+.
1313

1414
Installation
1515
------------

‎deploy.sh

Copy file name to clipboardExpand all lines: deploy.sh
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ EOF
1414
pip install twine
1515

1616
mkdir dist
17-
cp build-py2/dist/* dist/
1817
cp build-py37/dist/* dist/
1918
cp build-py38/dist/* dist/
2019

‎lambda_local/timeout.py

Copy file name to clipboardExpand all lines: lambda_local/timeout.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import signal
77
import threading
88
from contextlib import contextmanager
9-
from six.moves import _thread
9+
import _thread
1010

1111

1212
class TimeoutException(Exception):

‎setup.py

Copy file name to clipboardExpand all lines: setup.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def run_tests(self):
3737
'Development Status :: 3 - Alpha',
3838
'Operating System :: POSIX',
3939
'Programming Language :: Python',
40-
'Programming Language :: Python :: 2.7',
4140
'Programming Language :: Python :: 3.7',
4241
'Programming Language :: Python :: 3.8',
4342
'License :: OSI Approved :: MIT License'

‎wercker.yml

Copy file name to clipboardExpand all lines: wercker.yml
+1-29Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,6 @@ box: python:3-slim
33
build:
44
steps:
55

6-
build-py2:
7-
box: python:2.7-slim
8-
steps:
9-
- script:
10-
name: virtualenv install
11-
code: |
12-
pip install virtualenv
13-
14-
- virtualenv:
15-
name: setup virtual environment
16-
install_wheel: true
17-
18-
- script:
19-
name: echo python information
20-
code: |
21-
echo "python version $(python --version) running"
22-
echo "pip version $(pip --version) running"
23-
24-
- script:
25-
name: build
26-
code: |
27-
python setup.py sdist bdist_wheel
28-
29-
- script:
30-
name: test
31-
code: |
32-
python setup.py test
33-
346
build-py37:
357
box: python:3.7-slim
368
steps:
@@ -92,5 +64,5 @@ deploy:
9264
- script:
9365
name: deploy to pypi
9466
code: |
95-
cp build-py2/deploy.sh .
67+
cp build-py37/deploy.sh .
9668
sh deploy.sh

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.