Skip to content

Commit 0374ab4

Browse files
authored
Test on Django 5.0 (#418)
1 parent bea7696 commit 0374ab4

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
18+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
1919
os: [ubuntu-22.04]
2020
runs-on: ${{ matrix.os }}
2121
name: "${{ matrix.os }} Python: ${{ matrix.python-version }}"

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## v2.4.0 - UNPUBLISHED
44

5+
* Add support for Django 5.0 and Python 3.12.
6+
57
## v2.3.1 - May 2nd, 2023
68

79
* Fix postgresql provider import, Thanks [@wilsonehusin](https://github.com/korfuri/django-prometheus/pull/402)
@@ -40,4 +42,4 @@
4042

4143
## v1.1.0 - Sep 28, 2019
4244

43-
* maintenance release that updates this library to support recent and supported version of python & Django
45+
* maintenance release that updates this library to support recent and supported version of python & Django

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ line-length = 120
2222
legacy_tox_ini = """
2323
[tox]
2424
min_version = 4.4
25-
envlist = {py37,py38,py39,py310,py311}-django{320}-{end2end,unittests},{py38,py39,py310,py311}-django{400,410,420}-{end2end,unittests},py39-lint
25+
envlist =
26+
{py37,py38,py39,py310,py311}-django{320}-{end2end,unittests}
27+
{py38,py39,py310,py311,312}-django{400,410,420}-{end2end,unittests}
28+
{py310,py311,312}-django{500}-{end2end,unittests}
29+
py39-lint
2630
2731
[gh-actions]
2832
python =
@@ -31,13 +35,15 @@ python =
3135
3.9: py39, py39-lint
3236
3.10: py310
3337
3.11: py311
38+
3.12: py312
3439
3540
[testenv]
3641
deps =
3742
django320: Django>=3.2,<3.3
3843
django400: Django>=4.0,<4.1
3944
django410: Django>=4.1,<4.2
4045
django420: Django>=4.2,<4.3
46+
django500: Django>=5.0a1,<5.1
4147
coverage
4248
-rrequirements.txt
4349
skip_missing_interpreters=true

requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ prometheus-client>=0.12.0
55
pip-prometheus>=1.2.1
66
mysqlclient
77
psycopg2
8-
pytest==7.3.1
8+
pytest==7.4.3
99
pytest-django
1010
pylibmc
1111
pymemcache
12-
python-memcached
12+
python-memcached
13+
setuptools
14+
wheel

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ def get_version():
5656
"Programming Language :: Python :: 3.9",
5757
"Programming Language :: Python :: 3.10",
5858
"Programming Language :: Python :: 3.11",
59+
"Programming Language :: Python :: 3.12",
5960
"Framework :: Django :: 3.2",
6061
"Framework :: Django :: 4.0",
6162
"Framework :: Django :: 4.1",
6263
"Framework :: Django :: 4.2",
64+
"Framework :: Django :: 5.0",
6365
"Topic :: System :: Monitoring",
6466
"License :: OSI Approved :: Apache Software License",
6567
],

0 commit comments

Comments
 (0)