Skip to content

Commit

Permalink
Dropped support for Python 3.8 (#1701)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmispelon authored Oct 30, 2024
1 parent 87c48e7 commit 70895c1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
# tox-gh-actions will only run the tox environments which match the currently
# running python-version. See [gh-actions] in tox.ini for the mapping.
python-version: ["3.8", "3.12"]
python-version: ["3.12"]

services:
postgres:
Expand Down
4 changes: 1 addition & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ repos:
rev: "v3.19.0"
hooks:
- id: pyupgrade
# TODO: Update to --py312 when dropping support for
# Python 3.8
args: [--py38-plus]
args: [--py312]
- repo: https://github.com/adamchainz/django-upgrade
rev: "1.22.1"
hooks:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To run locally, you can either:
Install and run locally from a virtual environment
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

#. Install dependencies::

Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[tox]
envlist =py{38,312}-{tests,flake8,black,isort}
envlist =py{312}-{tests,flake8,black,isort}
skipsdist = true

[gh-actions]
python =
3.8: py38
3.12: py312

[testenv]
Expand Down
6 changes: 1 addition & 5 deletions tracdb/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@

from django.db import models

try:
_epoc = datetime.datetime(1970, 1, 1, tzinfo=datetime.UTC)
except AttributeError:
# TODO: Remove when dropping support for Python 3.8
_epoc = datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc)
_epoc = datetime.datetime(1970, 1, 1, tzinfo=datetime.UTC)


class time_property:
Expand Down

0 comments on commit 70895c1

Please sign in to comment.