Skip to content

Commit eec6633

Browse files
kindlycatGrigory Mishchenko
andauthored
Update dev dependencies and github actions (#8)
* Update tests.yml Add django 5.2 support; drop django 5.0 support * Update linter.yml bump ruff version * Update release.yml Bump uv version * Update dev dependencies; fix formatter --------- Co-authored-by: Grigory Mishchenko <grigory.mishchenko@gmail.com>
1 parent 8d5ce33 commit eec6633

File tree

7 files changed

+84
-80
lines changed

7 files changed

+84
-80
lines changed

.github/workflows/linter.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
uses: actions/checkout@v4
1414

1515
- name: Ruff check
16-
uses: chartboost/ruff-action@v1
16+
uses: astral-sh/ruff-action@v3
1717
with:
18-
version: 0.6.5
18+
version: 0.11.4
1919

2020
- name: Ruff format
21-
uses: chartboost/ruff-action@v1
21+
uses: astral-sh/ruff-action@v3
2222
with:
23-
version: 0.6.5
23+
version: 0.11.4
2424
args: 'format --check'

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
- name: Check out repository code
2020
uses: actions/checkout@v4
2121
- name: Install uv
22-
uses: astral-sh/setup-uv@v2
22+
uses: astral-sh/setup-uv@v5
2323
with:
24-
version: "0.4.10"
24+
version: "0.6.13"
2525
- name: Build
2626
run: uv build
2727
- name: Publish package distributions to PyPI

.github/workflows/tests.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@ jobs:
2323
python-version: "3.12"
2424
django-version: ">=4.2,<4.3"
2525

26-
- name: Python 3.10 / Django 5.0
27-
python-version: "3.10"
28-
django-version: ">=5.0,<5.1"
29-
30-
- name: Python 3.11 / Django 5.0
31-
python-version: "3.11"
32-
django-version: ">=5.0,<5.1"
33-
34-
- name: Python 3.12 / Django 5.0
35-
python-version: "3.12"
36-
django-version: ">=5.0,<5.1"
37-
3826
- name: Python 3.10 / Django 5.1
3927
python-version: "3.10"
4028
django-version: ">=5.1,<5.2"
@@ -50,19 +38,35 @@ jobs:
5038
- name: Python 3.13 / Django 5.1
5139
python-version: "3.13"
5240
django-version: ">=5.1,<5.2"
41+
42+
- name: Python 3.10 / Django 5.2
43+
python-version: "3.10"
44+
django-version: ">=5.2,<5.3"
45+
46+
- name: Python 3.11 / Django 5.2
47+
python-version: "3.11"
48+
django-version: ">=5.2,<5.3"
49+
50+
- name: Python 3.12 / Django 5.2
51+
python-version: "3.12"
52+
django-version: ">=5.2,<5.3"
53+
54+
- name: Python 3.13 / Django 5.2
55+
python-version: "3.13"
56+
django-version: ">=5.2,<5.3"
5357
steps:
5458
- name: Check out repository code
5559
uses: actions/checkout@v4
5660

5761
- name: Set up Python ${{ matrix.python-version }}
58-
uses: actions/setup-python@v5.1.0
62+
uses: actions/setup-python@v5
5963
with:
6064
python-version: ${{ matrix.python-version }}
6165

6266
- name: Install uv
63-
uses: astral-sh/setup-uv@v2
67+
uses: astral-sh/setup-uv@v5
6468
with:
65-
version: "0.4.10"
69+
version: "0.6.13"
6670

6771
- name: Install the project dependencies
6872
run: uv sync --frozen
@@ -71,6 +75,6 @@ jobs:
7175
run: uv run pytest --cov --cov-report=xml
7276

7377
- name: Upload coverage reports to Codecov
74-
uses: codecov/codecov-action@v4.0.1
78+
uses: codecov/codecov-action@v5
7579
with:
7680
token: ${{ secrets.CODECOV_TOKEN }}

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM python:3.12.6-slim
1+
FROM python:3.13.3-slim
22

3-
COPY --from=ghcr.io/astral-sh/uv:0.4.10 /uv /bin/uv
3+
COPY --from=ghcr.io/astral-sh/uv:0.6.13 /uv /bin/uv
44

55
ENV DEBIAN_FRONTEND=noninteractive \
66
PYTHONDONTWRITEBYTECODE=1 \

permission_manager_drf/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66

77
__all__ = [
8+
'DRFPermissionManager',
9+
'ManagerPermission',
810
'PermissionField',
911
'PermissionFieldChild',
10-
'ManagerPermission',
11-
'DRFPermissionManager',
1212
'PermissionManagerPaginationMixin',
1313
]

pyproject.toml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[project]
22
name = "permission-manager-drf"
3-
version = "0.3.1"
3+
version = "1.0.0"
44
description = "A simple way to manage object permissions in drf."
55
authors = [
6-
{author = "Grigory Mishchenko", email = "grishkokot@gmail.com"},
6+
{name = "Grigory Mishchenko", email = "grishkokot@gmail.com"},
77
]
88
license = "MIT"
99
readme = "README.md"
@@ -25,16 +25,15 @@ dependencies = [
2525

2626
[tool.uv]
2727
dev-dependencies = [
28-
"pytest>=8.3.3",
29-
"ipython>=8.27",
28+
"pytest>=8.3.5",
29+
"ipython>=8.35.0",
3030
"ipdb>=0.13.13",
31-
"pytest>=8.3.3",
32-
"pytest-django>=4.9.0",
33-
"pytest-mock>=3.14.0",
34-
"pytest-cov>=5.0.0",
35-
"ruff>=0.6.5",
36-
"sphinx>=8.0.2",
31+
"ruff>=0.11.4",
32+
"sphinx>=8.1.3",
3733
"furo>=2024.8.6",
34+
"pytest-django>=4.11.1",
35+
"pytest-mock>=3.14.0",
36+
"pytest-cov>=6.1.1",
3837
]
3938

4039
[build-system]
@@ -80,9 +79,9 @@ target-version = "py310"
8079
[tool.ruff.lint]
8180
select = ["ALL"]
8281
ignore = [
83-
"D100", "D101", "ANN101", "D102", "EXE001", "D107", "ANN003", "ANN001",
82+
"D100", "D101", "D102", "EXE001", "D107", "ANN003", "ANN001",
8483
"ARG002", "ANN002", "D103", "D106", "D104", "ANN201", "COM812", "ISC001",
85-
"ANN401", "ANN102", "TRY003", "EM102", "EM101", "RET503"
84+
"ANN401", "TRY003", "EM102", "EM101", "RET503"
8685
]
8786

8887
fixable = ["ALL"]

0 commit comments

Comments
 (0)