Skip to content

Commit

Permalink
Require Python >= 3.5
Browse files Browse the repository at this point in the history
This is a big change.  It will make it possible to simplify the code,
add more features, improve the robustness and lower the barrier to new
contributions.

As per [Python's packaging documentation][doc], the `python_requires`
keyword argument needs `setuptools >= 24.2.0` (released in 2016) and
will only have en effect for `pip >= 9.0.0` (released in 2016 as well).

[doc]: https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
  • Loading branch information
bbc2 committed Jun 26, 2021
1 parent 5c7f43f commit fb2726d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
matrix:
os:
- ubuntu-latest
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2, pypy3]
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, pypy3]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

- Require Python 3.5 or a later version. Python 2 and 3.4 are no longer supported. (#? by
[@bbc2]).

## [0.18.0] - 2021-06-20

### Changed
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def read_files(files):
package_data={
'dotenv': ['py.typed'],
},
python_requires=">=3.5",
install_requires=[
"typing; python_version<'3.5'",
],
Expand Down

0 comments on commit fb2726d

Please sign in to comment.