Skip to content

Commit a07cddc

Browse files
committed
Upgrade package versions, remove unsupported
1 parent 816060c commit a07cddc

File tree

7 files changed

+37
-12
lines changed

7 files changed

+37
-12
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
py:
18+
# - "3.12" - not supported on GitHub yet
1819
- "3.11"
1920
- "3.10"
2021
- "3.9"
2122
- "3.8"
22-
- "3.7"
2323
postgres-version:
2424
# - 11-bullseye - Postgres 11 is still supported, but Django 4.2 doesn't support it anymore, to keep simpler stop testing here
2525
- 12

.github/workflows/pre_commit.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
name: Pre-commit
11+
12+
jobs:
13+
pre_commit:
14+
name: Pre-commit
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-python@v3
19+
with:
20+
python-version: '3.8'
21+
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/ambv/black
3-
rev: "23.1.0"
3+
rev: "23.9.1"
44
hooks:
55
- id: black
6-
language_version: python3.7
6+
language_version: python3.8

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,10 @@ to pin views to specific databases.
461461
<td>4.2</td>
462462
<td>0.9.2</td>
463463
</tr>
464+
<tr>
465+
<td>5.0</td>
466+
<td>0.9.4</td>
467+
</tr>
464468
</tbody>
465469
</table>
466470

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.black]
22
line-length = 120
3-
target_version = ['py37']
3+
target_version = ['py38']
44
include = '\.pyi?$'
55
exclude = '''
66

setup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,27 @@
1313

1414
setup(
1515
name="django-pgviews-redux",
16-
version="0.9.3",
16+
version="0.9.4",
1717
description="Create and manage Postgres SQL Views in Django",
1818
long_description=LONG_DESCRIPTION,
1919
long_description_content_type="text/markdown",
2020
author="Mikuláš Poul",
21-
author_email="[email protected]",
21+
author_email="[email protected]",
2222
license="Public Domain",
2323
packages=find_packages(),
2424
url="https://github.com/xelixdev/django-pgviews-redux",
2525
classifiers=[
2626
"Development Status :: 5 - Production/Stable",
2727
"Programming Language :: Python",
2828
"Programming Language :: Python :: 3",
29-
"Programming Language :: Python :: 3.7",
3029
"Programming Language :: Python :: 3.8",
3130
"Programming Language :: Python :: 3.9",
3231
"Programming Language :: Python :: 3.10",
3332
"Programming Language :: Python :: 3.11",
3433
"Framework :: Django",
3534
"Framework :: Django :: 3.2",
36-
"Framework :: Django :: 4.0",
3735
"Framework :: Django :: 4.1",
3836
"Framework :: Django :: 4.2",
37+
"Framework :: Django :: 5.0",
3938
],
4039
)

tox.ini

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
[tox]
22
envlist =
3-
py{37,38,39,310}-dj{32}-pg2
4-
py{38,39,310,311}-dj{40,41}-pg2
3+
py{38,39,310}-dj{32}-pg2
4+
py{38,39,310,311}-dj{41}-pg2
55
py{38,39,310,311}-dj{42}-pg{2,3}
6+
py{310,311,312}-dj{50}-pg{2,3}
67

78
[gh]
89
python =
9-
"3.7" = py37
1010
"3.8" = py38
1111
"3.9" = py39
1212
"3.10" = py310
1313
"3.11" = py311
14+
"3.12" = py312
1415

1516
[testenv]
1617
usedevelop = true
@@ -21,9 +22,9 @@ deps=
2122
pg2: psycopg2>2.9
2223
pg3: psycopg>3.1
2324
dj32: https://github.com/django/django/archive/stable/3.2.x.tar.gz#egg=django
24-
dj40: https://github.com/django/django/archive/stable/4.0.x.tar.gz#egg=django
2525
dj41: https://github.com/django/django/archive/stable/4.1.x.tar.gz#egg=django
2626
dj42: https://github.com/django/django/archive/stable/4.2.x.tar.gz#egg=django
27+
dj50: https://github.com/django/django/archive/stable/5.0.x.tar.gz#egg=django
2728
commands=
2829
python manage.py test {posargs:test_project.viewtest test_project.multidbtest}
2930
passenv =

0 commit comments

Comments
 (0)