Skip to content

Commit

Permalink
Drop support for python 3.9, use 3.12 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Nov 13, 2024
1 parent 9930216 commit 99d4d08
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 13 deletions.
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=path/to/generated/file.py, other-generated-file.dat
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 @@ -60,7 +57,6 @@ commands =
cp requirements-django42.txt requirements.txt

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

0 comments on commit 99d4d08

Please sign in to comment.