Skip to content

Commit

Permalink
Drop Python 3.7 support (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Jul 10, 2023
1 parent 1db43e5 commit cafb014
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 74 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
- ubuntu-22.04
- windows-2022
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ repos:
rev: v3.8.0
hooks:
- id: pyupgrade
args: [--py37-plus]
args: [--py38-plus]
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.14.0
hooks:
Expand All @@ -61,7 +61,7 @@ repos:
hooks:
- id: reorder-python-imports
args:
- --py37-plus
- --py38-plus
- --application-directories
- .:example:src
- --add-import
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Changelog
=========

* Drop Python 3.7 support.

6.5.0 (2023-06-16)
------------------

Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ Compatibility
-------------

WhiteNoise works with any WSGI-compatible application and is tested on Python
**3.7** – **3.12**, on both Linux and Windows.
**3.8** – **3.12**, on both Linux and Windows.

Django WhiteNoiseMiddleware is tested with Django versions **3.2** --- **4.1**
Django WhiteNoiseMiddleware is tested with Django versions **3.2** --- **4.2**


Endorsements
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ requires = [
]

[tool.black]
target-version = ['py37']
target-version = ['py38']

[tool.pytest.ini_options]
addopts = """\
Expand Down
12 changes: 0 additions & 12 deletions requirements/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@
# "--generate-hashes",
"--allow-unsafe",
] + sys.argv[1:]
subprocess.run(
[
"python3.7",
*common_args,
"-P",
"Django>=3.2a1,<3.3",
"-o",
"py37-django32.txt",
],
check=True,
capture_output=True,
)
subprocess.run(
[
"python3.8",
Expand Down
55 changes: 0 additions & 55 deletions requirements/py37-django32.txt

This file was deleted.

1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ env_list =
py310-django{42, 41, 40, 32}
py39-django{42, 41, 40, 32}
py38-django{42, 41, 40, 32}
py37-django{32}

[testenv]
package = wheel
Expand Down

0 comments on commit cafb014

Please sign in to comment.