Skip to content

Commit 5ad22a3

Browse files
authored
Merge branch 'encode:master' into master
2 parents 70c0045 + 513ddb4 commit 5ad22a3

File tree

110 files changed

+1941
-780
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+1941
-780
lines changed

.github/ISSUE_TEMPLATE/1-issue.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ contact_links:
44
url: https://github.com/encode/django-rest-framework/discussions
55
about: >
66
The "Discussions" forum is where you want to start. 💖
7+
Please note that at this point in its lifespan, we consider Django REST framework to be feature-complete.

.github/workflows/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,19 @@ on:
99
jobs:
1010
tests:
1111
name: Python ${{ matrix.python-version }}
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-24.04
1313

1414
strategy:
1515
matrix:
1616
python-version:
17-
- '3.8'
1817
- '3.9'
1918
- '3.10'
2019
- '3.11'
2120
- '3.12'
2221
- '3.13'
2322

2423
steps:
25-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v5
2625

2726
- uses: actions/setup-python@v5
2827
with:
@@ -34,7 +33,7 @@ jobs:
3433
run: python -m pip install --upgrade pip setuptools virtualenv wheel
3534

3635
- name: Install dependencies
37-
run: python -m pip install --upgrade codecov tox
36+
run: python -m pip install --upgrade tox
3837

3938
- name: Run tox targets for ${{ matrix.python-version }}
4039
run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d . | cut -f 1 -d '-')
@@ -45,14 +44,15 @@ jobs:
4544
tox -e base,dist,docs
4645
4746
- name: Upload coverage
48-
run: |
49-
codecov -e TOXENV,DJANGO
47+
uses: codecov/codecov-action@v5
48+
with:
49+
env_vars: TOXENV,DJANGO
5050

5151
test-docs:
5252
name: Test documentation links
53-
runs-on: ubuntu-22.04
53+
runs-on: ubuntu-24.04
5454
steps:
55-
- uses: actions/checkout@v4
55+
- uses: actions/checkout@v5
5656

5757
- uses: actions/setup-python@v5
5858
with:
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: mkdocs
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- docs/**
9+
- docs_theme/**
10+
- requirements/requirements-documentation.txt
11+
- mkdocs.yml
12+
- .github/workflows/mkdocs-deploy.yml
13+
14+
jobs:
15+
deploy:
16+
runs-on: ubuntu-latest
17+
environment: github-pages
18+
permissions:
19+
contents: write
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
steps:
23+
- uses: actions/checkout@v5
24+
- run: git fetch --no-tags --prune --depth=1 origin gh-pages
25+
- uses: actions/setup-python@v5
26+
with:
27+
python-version: 3.x
28+
- run: pip install -r requirements/requirements-documentation.txt
29+
- run: mkdocs gh-deploy

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515
with:
1616
fetch-depth: 0
1717

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@ repos:
3131
hooks:
3232
- id: codespell
3333
exclude: locale|kickstarter-announcement.md|coreapi-0.1.1.js
34+
35+
- repo: https://github.com/asottile/pyupgrade
36+
rev: v3.19.1
37+
hooks:
38+
- id: pyupgrade
39+
args: ["--py39-plus", "--keep-percent-format"]

CONTRIBUTING.md

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

33
At this point in its lifespan we consider Django REST framework to be essentially feature-complete. We may accept pull requests that track the continued development of Django versions, but would prefer not to accept new features or code formatting changes.
44

5-
Apart from minor documentation changes, the [GitHub discussions page](https://github.com/encode/django-rest-framework/discussions) should generally be your starting point. Please only raise an issue or pull request if you've been recommended to do so after discussion.
5+
Apart from minor documentation changes, the [GitHub discussions page](https://github.com/encode/django-rest-framework/discussions) should generally be your starting point. Please only open a pull request if you've been recommended to do so **after discussion**.
66

77
The [Contributing guide in the documentation](https://www.django-rest-framework.org/community/contributing/) gives some more information on our process and code of conduct.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ Some reasons you might want to use REST framework:
5454

5555
# Requirements
5656

57-
* Python 3.8+
58-
* Django 4.2, 5.0, 5.1
57+
* Python 3.9+
58+
* Django 4.2, 5.0, 5.1, 5.2
5959

6060
We **highly recommend** and only officially support the latest patch release of
6161
each Python and Django series.

SECURITY.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
## Reporting a Vulnerability
44

5-
Security issues are handled under the supervision of the [Django security team](https://www.djangoproject.com/foundation/teams/#security-team).
5+
**Please report security issues by emailing security@encode.io**.
66

7-
**Please report security issues by emailing [email protected]**.
8-
9-
The project maintainers will then work with you to resolve any issues where required, prior to any public disclosure.
7+
The project maintainers will then work with you to resolve any issues where required, prior to any public disclosure.

docs/api-guide/authentication.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,12 @@ There are currently two forks of this project.
454454

455455
More information can be found in the [Documentation](https://django-rest-durin.readthedocs.io/en/latest/index.html).
456456

457+
## django-pyoidc
458+
459+
[dango-pyoidc][django_pyoidc] adds support for OpenID Connect (OIDC) authentication. This allows you to delegate user management to an Identity Provider, which can be used to implement Single-Sign-On (SSO). It provides support for most uses-cases, such as customizing how token info are mapped to user models, using OIDC audiences for access control, etc.
460+
461+
More information can be found in the [Documentation](https://django-pyoidc.readthedocs.io/latest/index.html).
462+
457463
[cite]: https://jacobian.org/writing/rest-worst-practices/
458464
[http401]: https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2
459465
[http403]: https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4
@@ -490,4 +496,5 @@ More information can be found in the [Documentation](https://django-rest-durin.r
490496
[drfpasswordless]: https://github.com/aaronn/django-rest-framework-passwordless
491497
[django-rest-authemail]: https://github.com/celiao/django-rest-authemail
492498
[django-rest-durin]: https://github.com/eshaan7/django-rest-durin
493-
[login-required-middleware]: https://docs.djangoproject.com/en/stable/ref/middleware/#django.contrib.auth.middleware.LoginRequiredMiddleware
499+
[login-required-middleware]: https://docs.djangoproject.com/en/stable/ref/middleware/#django.contrib.auth.middleware.LoginRequiredMiddleware
500+
[django-pyoidc] : https://github.com/makinacorpus/django_pyoidc

0 commit comments

Comments
 (0)