Skip to content

Commit

Permalink
CI: Drop Python 3.7 testing (#20)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
intgr authored Jan 21, 2025
1 parent 1e77e08 commit 3fac214
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 5 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Overview
--------

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

It started as an `internal project inside Bitbucket`_ to help trace
operational problems.
Expand Down Expand Up @@ -87,6 +87,10 @@ therefore safe to use in production.
Changelog
---------

Unreleased

* Dropped Python 3.7 support, now requires Python 3.8+.

2.0.1 (2023-12-08)

* Use ISO 8601-like YYYY-MM-DD date format for email/file logging.
Expand Down
1 change: 0 additions & 1 deletion dogslow_sentry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ def frames_to_traceback(
tb = None
while frame is not None:
# No point to trace further than the middleware itself
# Note: TracebackType() constructor requires Python >= 3.7
tb = TracebackType(tb, frame, frame.f_lasti, frame.f_lineno)
if (
frame.f_code.co_filename == until_file
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def long_description():
setup(
author="Marti Raudsepp",
author_email="[email protected]",
python_requires=">=3.7",
python_requires=">=3.8",
classifiers=[
"Development Status :: 6 - Mature",
"Framework :: Django",
Expand All @@ -33,7 +33,6 @@ def long_description():
),
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[tox]
# NB! Don't forget to update `.github/workflows/tests.yml`
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
envlist =
py{38,39,310,311}-dj{22,30,32}
py{38,39,310,311,312}-dj{40,41,42}
py{310,311,312}-dj50

[gh-actions]
python =
3.7: py37-dj{22,30,32}
3.8: py38-dj{22,30,32,40,41,42}
3.9: py39-dj{22,30,32,40,41,42}
3.10: py310-dj{22,30,32,40,41,42,50}
Expand Down

0 comments on commit 3fac214

Please sign in to comment.