Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Python 3.9 #940

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
os: ubuntu-24.04
tools:
python: "3.9"
python: "3.12"

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand Down
2 changes: 1 addition & 1 deletion .sonarcloud.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sonar.sources=src
# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8

sonar.python.version=3.7, 3.8, 3.9, 3.10
sonar.python.version=3.10, 3.11, 3.12
sonar.tests=tests

sonar.exclusions=src/argus/htmx/static/styles.css
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This Dockerfile is designed to run a development environment for Argus,
# with the Argus source code tree mounted at /argus
#
FROM python:3.10
FROM python:3.12
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y --no-install-recommends tini \
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+drop-py39.removed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Dropped support for testing and running on Python 3.9
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Defines a production image for the Argus API server
# Needs the repository root directory as its context
FROM python:3.10
FROM python:3.12
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y --no-install-recommends tini build-essential
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "argus-server"
description = "Argus is an alert aggregator for monitoring systems"
authors = [{name="Uninett Opensource", email="[email protected]"}]
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.10"
license = {text = "GPL-3.0-or-later"}
classifiers = [
"Framework :: Django",
Expand All @@ -16,7 +16,6 @@ classifiers = [
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down
6 changes: 1 addition & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
[tox]
envlist =
clean
py39-django{42}
py{310,311,312}-django{42,50,51}
coverage-html
skipsdist = True
skip_missing_interpreters = True
basepython = python3.10
basepython = python3.12

[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
Expand All @@ -23,7 +21,6 @@ commands =
-coverage erase

[testenv:coverage-html]
basepython = python3.10
deps =
coverage
setenv =
Expand Down Expand Up @@ -77,7 +74,6 @@ commands =
python manage.py graph_models argus_auth argus_incident argus_notificationprofile --group-models -X AbstractUser,AbstractBaseUser,Permission,PermissionsMixin -o docs/reference/img/ER_model.png

[testenv:coverage-xml]
basepython = python3.10
deps =
coverage
setenv =
Expand Down
Loading