diff --git a/.gitignore b/.gitignore index 4f5a7f6..6a5671f 100644 --- a/.gitignore +++ b/.gitignore @@ -61,3 +61,7 @@ target/ # Vitual Environments venv/ +.env/ + +# direnv +.envrc diff --git a/README.md b/README.md index 39d8b79..fb59490 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Run lambda function on local machine ## Prepare development environment -Please use a newly created virtualenv of Python 2.7 or Python 3.7. +Please use a newly created virtualenv of Python 3.7+. ## Installation diff --git a/README.rst b/README.rst index 2710d84..9c5bd6a 100644 --- a/README.rst +++ b/README.rst @@ -9,7 +9,7 @@ Run lambda function on local machine Prepare development environment ------------------------------- -Please use a newly created virtualenv of Python 2.7 or Python 3.7. +Please use a newly created virtualenv of Python 3.7+. Installation ------------ diff --git a/deploy.sh b/deploy.sh index 7bc15d2..b5ba2bd 100644 --- a/deploy.sh +++ b/deploy.sh @@ -14,7 +14,6 @@ EOF pip install twine mkdir dist -cp build-py2/dist/* dist/ cp build-py37/dist/* dist/ cp build-py38/dist/* dist/ diff --git a/lambda_local/timeout.py b/lambda_local/timeout.py index 5dcbd58..d13c619 100644 --- a/lambda_local/timeout.py +++ b/lambda_local/timeout.py @@ -6,7 +6,7 @@ import signal import threading from contextlib import contextmanager -from six.moves import _thread +import _thread class TimeoutException(Exception): diff --git a/setup.py b/setup.py index fc9290c..9c2aa1a 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,6 @@ def run_tests(self): 'Development Status :: 3 - Alpha', 'Operating System :: POSIX', 'Programming Language :: Python', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'License :: OSI Approved :: MIT License' diff --git a/wercker.yml b/wercker.yml index 0e4c8f4..8e4f3f4 100644 --- a/wercker.yml +++ b/wercker.yml @@ -3,34 +3,6 @@ box: python:3-slim build: steps: -build-py2: - box: python:2.7-slim - steps: - - script: - name: virtualenv install - code: | - pip install virtualenv - - - virtualenv: - name: setup virtual environment - install_wheel: true - - - script: - name: echo python information - code: | - echo "python version $(python --version) running" - echo "pip version $(pip --version) running" - - - script: - name: build - code: | - python setup.py sdist bdist_wheel - - - script: - name: test - code: | - python setup.py test - build-py37: box: python:3.7-slim steps: @@ -92,5 +64,5 @@ deploy: - script: name: deploy to pypi code: | - cp build-py2/deploy.sh . + cp build-py37/deploy.sh . sh deploy.sh