Skip to content

Commit 70895c1

Browse files
authored
Dropped support for Python 3.8 (#1701)
1 parent 87c48e7 commit 70895c1

File tree

5 files changed

+5
-12
lines changed

5 files changed

+5
-12
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
matrix:
1616
# tox-gh-actions will only run the tox environments which match the currently
1717
# running python-version. See [gh-actions] in tox.ini for the mapping.
18-
python-version: ["3.8", "3.12"]
18+
python-version: ["3.12"]
1919

2020
services:
2121
postgres:

.pre-commit-config.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ repos:
3030
rev: "v3.19.0"
3131
hooks:
3232
- id: pyupgrade
33-
# TODO: Update to --py312 when dropping support for
34-
# Python 3.8
35-
args: [--py38-plus]
33+
args: [--py312]
3634
- repo: https://github.com/adamchainz/django-upgrade
3735
rev: "1.22.1"
3836
hooks:

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ To run locally, you can either:
1515
Install and run locally from a virtual environment
1616
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717

18-
#. Create a `Python Python 3.8 or 3.12 virtualenv and activate it <https://docs.python.org/3/library/venv.html>`_
18+
#. Create a `Python Python 3.12 virtualenv and activate it <https://docs.python.org/3/library/venv.html>`_
1919

2020
#. Install dependencies::
2121

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
[tox]
2-
envlist =py{38,312}-{tests,flake8,black,isort}
2+
envlist =py{312}-{tests,flake8,black,isort}
33
skipsdist = true
44

55
[gh-actions]
66
python =
7-
3.8: py38
87
3.12: py312
98

109
[testenv]

tracdb/models.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@
5050

5151
from django.db import models
5252

53-
try:
54-
_epoc = datetime.datetime(1970, 1, 1, tzinfo=datetime.UTC)
55-
except AttributeError:
56-
# TODO: Remove when dropping support for Python 3.8
57-
_epoc = datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc)
53+
_epoc = datetime.datetime(1970, 1, 1, tzinfo=datetime.UTC)
5854

5955

6056
class time_property:

0 commit comments

Comments
 (0)