Skip to content

Commit 3fac214

Browse files
authored
CI: Drop Python 3.7 testing (#20)
Python 3.7 has had no security support since 2023 June. Fixes CI: 3.7 is no longer supported in latest GitHub Actions Ubuntu images: https://github.com/intgr/dogslow-sentry/actions/runs/12768757352/job/35589792433
1 parent 1e77e08 commit 3fac214

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
20+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
2121

2222
steps:
2323
- uses: actions/checkout@v4

README.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Overview
1414
--------
1515

1616
Dogslow is a Django watchdog middleware that logs tracebacks of slow
17-
requests. Dogslow-sentry requires Python 3.7+, Django 2.2+.
17+
requests. Dogslow-sentry requires Python 3.8+, Django 2.2+.
1818

1919
It started as an `internal project inside Bitbucket`_ to help trace
2020
operational problems.
@@ -87,6 +87,10 @@ therefore safe to use in production.
8787
Changelog
8888
---------
8989

90+
Unreleased
91+
92+
* Dropped Python 3.7 support, now requires Python 3.8+.
93+
9094
2.0.1 (2023-12-08)
9195

9296
* Use ISO 8601-like YYYY-MM-DD date format for email/file logging.

dogslow_sentry/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ def frames_to_traceback(
108108
tb = None
109109
while frame is not None:
110110
# No point to trace further than the middleware itself
111-
# Note: TracebackType() constructor requires Python >= 3.7
112111
tb = TracebackType(tb, frame, frame.f_lasti, frame.f_lineno)
113112
if (
114113
frame.f_code.co_filename == until_file

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def long_description():
1414
setup(
1515
author="Marti Raudsepp",
1616
author_email="[email protected]",
17-
python_requires=">=3.7",
17+
python_requires=">=3.8",
1818
classifiers=[
1919
"Development Status :: 6 - Mature",
2020
"Framework :: Django",
@@ -33,7 +33,6 @@ def long_description():
3333
),
3434
"Natural Language :: English",
3535
"Operating System :: OS Independent",
36-
"Programming Language :: Python :: 3.7",
3736
"Programming Language :: Python :: 3.8",
3837
"Programming Language :: Python :: 3.9",
3938
"Programming Language :: Python :: 3.10",

tox.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
[tox]
22
# NB! Don't forget to update `.github/workflows/tests.yml`
3-
envlist = py{37,38,39,310,311}-dj{22,30,32},py{38,39,310,311,312}-dj{40,41,42},py{310,311,312}-dj50
3+
envlist =
4+
py{38,39,310,311}-dj{22,30,32}
5+
py{38,39,310,311,312}-dj{40,41,42}
6+
py{310,311,312}-dj50
47

58
[gh-actions]
69
python =
7-
3.7: py37-dj{22,30,32}
810
3.8: py38-dj{22,30,32,40,41,42}
911
3.9: py39-dj{22,30,32,40,41,42}
1012
3.10: py310-dj{22,30,32,40,41,42,50}

0 commit comments

Comments
 (0)