Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Python 2.7 support #603

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: [2.7, 3.6]
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2

Expand Down
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@
A Serverless v1.x plugin to automatically bundle dependencies from
`requirements.txt` and make them available in your `PYTHONPATH`.

## Requires Serverless >= v1.34
## Requirements

* Serverless >= v1.34
* Python >= 3.6

### Python 2.7 note

As of 6.0.0, Python 2.7 is no longer supported. This plugin delegates most work out to `pip`
directly or indirectly, so it may continue to work, but:

* The test suite no longer includes 2.7 specific tests.
* Fixes for 2.7 specific bugs that require code branching by Python version will not be accepted.

## Install

Expand Down Expand Up @@ -383,8 +394,7 @@ Quick notes on the config file:

### Customize Python executable

Sometimes your Python executable isn't available on your `$PATH` as `python2.7`
or `python3.6` (for example, windows or using pyenv).
Sometimes your Python executable isn't available on your `$PATH` as `python3.6`, possibly for example, on Windows or using pyenv.
To support this, this plugin has the following option:

```yaml
Expand Down
Loading