Skip to content

Commit fbc7a63

Browse files
committed
Require Python >= 3.5
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
1 parent 5c7f43f commit fbc7a63

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
matrix:
1111
os:
1212
- ubuntu-latest
13-
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2, pypy3]
13+
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, pypy3]
1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Set up Python ${{ matrix.python-version }}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this
66
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Changed
11+
12+
- Require Python 3.5 or a later version. Python 2 and 3.4 are no longer supported. (#341
13+
by [@bbc2]).
14+
815
## [0.18.0] - 2021-06-20
916

1017
### Changed

setup.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ def read_files(files):
3333
package_data={
3434
'dotenv': ['py.typed'],
3535
},
36-
install_requires=[
37-
"typing; python_version<'3.5'",
38-
],
36+
python_requires=">=3.5",
3937
extras_require={
4038
'cli': ['click>=5.0', ],
4139
},
@@ -47,8 +45,6 @@ def read_files(files):
4745
classifiers=[
4846
'Development Status :: 5 - Production/Stable',
4947
'Programming Language :: Python',
50-
'Programming Language :: Python :: 2',
51-
'Programming Language :: Python :: 2.7',
5248
'Programming Language :: Python :: 3',
5349
'Programming Language :: Python :: 3.5',
5450
'Programming Language :: Python :: 3.6',

tox.ini

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
[tox]
2-
envlist = lint,py{27,35,36,37,38,39},pypy,pypy3,manifest,coverage-report
2+
envlist = lint,py{35,36,37,38,39},pypy3,manifest,coverage-report
33

44
[gh-actions]
55
python =
6-
2.7: py27, coverage-report
76
3.5: py35, coverage-report
87
3.6: py36, coverage-report
98
3.7: py37, coverage-report
109
3.8: py38, coverage-report
1110
3.9: py39, lint, manifest, coverage-report
12-
pypy2: pypy, coverage-report
1311
pypy3: pypy3, coverage-report
1412

1513
[testenv]
@@ -19,7 +17,6 @@ deps =
1917
coverage
2018
sh
2119
click
22-
py{27,py}: ipython<6.0.0
2320
py{35,36,37,38,39,py3}: ipython
2421
commands = coverage run --parallel -m pytest {posargs}
2522

@@ -35,8 +32,6 @@ commands =
3532
mypy --python-version=3.7 src tests
3633
mypy --python-version=3.6 src tests
3734
mypy --python-version=3.5 src tests
38-
mypy --python-version=3.4 src tests
39-
mypy --python-version=2.7 src tests
4035

4136
[testenv:manifest]
4237
deps = check-manifest

0 commit comments

Comments
 (0)