Skip to content

Commit b34152b

Browse files
committed
Support new pythons, remove old python support
1 parent 872811d commit b34152b

File tree

6 files changed

+18
-16
lines changed

6 files changed

+18
-16
lines changed

.github/workflows/check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
py:
18+
- "3.14"
19+
- "3.13"
1820
- "3.12"
1921
- "3.11"
2022
- "3.10"
21-
- "3.9"
22-
- "3.8"
2323
postgres-version:
24-
# - 12 - 5.1 doesn't support 12 anymore, let's just stop running tests for it
25-
- 13
2624
- 14
2725
- 15
2826
- 16
27+
- 17
28+
- 18
2929
steps:
3030
- name: Setup python for test ${{ matrix.py }}
3131
uses: actions/setup-python@v6

.github/workflows/pre_commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
- uses: actions/checkout@v5
1818
- uses: actions/setup-python@v6
1919
with:
20-
python-version: '3.9'
20+
python-version: '3.10'
2121
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
default_language_version:
2-
python: python3.9
2+
python: python3.10
33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
5-
rev: 'v0.13.1'
5+
rev: 'v0.14.4'
66
hooks:
77
- id: ruff
88
args: [ "--fix" ]

django_pgviews/view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _make_where(**kwargs):
128128
# skip key if value is not specified
129129
continue
130130

131-
if isinstance(value, (list, tuple)):
131+
if isinstance(value, list | tuple):
132132
in_fragment = ", ".join("%s" for _ in range(len(value)))
133133
where_fragments.append(f"{key} IN ({in_fragment})")
134134
params.extend(list(value))

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "django-pgviews-redux"
3-
version = "0.11.0"
3+
version = "0.12.0"
44
description = "Create and manage Postgres SQL Views in Django"
55
authors = ["Mikuláš Poul <[email protected]>"]
66
readme = "README.md"
@@ -9,15 +9,16 @@ classifiers = [
99
"Development Status :: 5 - Production/Stable",
1010
"Programming Language :: Python",
1111
"Programming Language :: Python :: 3",
12-
"Programming Language :: Python :: 3.8",
13-
"Programming Language :: Python :: 3.9",
1412
"Programming Language :: Python :: 3.10",
1513
"Programming Language :: Python :: 3.11",
1614
"Programming Language :: Python :: 3.12",
15+
"Programming Language :: Python :: 3.13",
16+
"Programming Language :: Python :: 3.14",
1717
"Framework :: Django",
1818
"Framework :: Django :: 4.2",
1919
"Framework :: Django :: 5.0",
2020
"Framework :: Django :: 5.1",
21+
"Framework :: Django :: 5.2",
2122
"License :: Public Domain",
2223
"License :: OSI Approved :: The Unlicense (Unlicense)",
2324
]
@@ -34,7 +35,7 @@ python = ">=3.6"
3435

3536
[tool.ruff]
3637
line-length = 120
37-
target-version = "py38"
38+
target-version = "py310"
3839

3940
[tool.ruff.lint]
4041
select = [

tox.ini

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[tox]
22
envlist =
3-
py{38,39,310,311}-dj{42}-pg{2,3}
4-
py{310,311,312}-dj{50,51}-pg{2,3}
3+
py{310,311}-dj{42}-pg{2,3}
4+
py{310,311,312,313,314}-dj{50,51,52}-pg{2,3}
55

66
[gh]
77
python =
8-
"3.8" = py38
9-
"3.9" = py39
108
"3.10" = py310
119
"3.11" = py311
1210
"3.12" = py312
11+
"3.13" = py313
12+
"3.14" = py314
1313

1414
[testenv]
1515
usedevelop = true
@@ -22,6 +22,7 @@ deps=
2222
dj42: https://github.com/django/django/archive/stable/4.2.x.tar.gz#egg=django
2323
dj50: https://github.com/django/django/archive/stable/5.0.x.tar.gz#egg=django
2424
dj51: https://github.com/django/django/archive/stable/5.1.x.tar.gz#egg=django
25+
dj52: https://github.com/django/django/archive/stable/5.2.x.tar.gz#egg=django
2526
commands=
2627
python manage.py test {posargs:test_project.viewtest test_project.multidbtest test_project.schemadbtest} -v2
2728
passenv =

0 commit comments

Comments
 (0)