Skip to content

Commit 9bf8c7f

Browse files
Merge pull request #113 from ingvaldlorentzen/django-5
Django 5 Support
2 parents db40748 + 9047e43 commit 9bf8c7f

7 files changed

Lines changed: 704 additions & 726 deletions

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,19 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: [ "3.7.15", "3.8.13", "3.9.15", "3.10.8", "3.11.0" ]
33-
django-version: [ "3.2", "4.0", "4.1" ]
32+
python-version: [ "3.8.18", "3.9.18", "3.10.13", "3.11.7", "3.12.1"]
33+
django-version: [ "3.2", "4.2", "5.0"]
3434
exclude:
35-
# Django v4 drops Python 3.7 support
36-
- django-version: 4.0
37-
python-version: 3.7.15
38-
- django-version: 4.1
39-
python-version: 3.7.15
35+
# Django v3 does not support Python >3.10
36+
- django-version: 3.2
37+
python-version: 3.11.7
38+
- django-version: 3.2
39+
python-version: 3.12.1
40+
# Django v5 drops Python <3.10 support
41+
- django-version: 5.0
42+
python-version: 3.8.18
43+
- django-version: 5.0
44+
python-version: 3.9.18
4045
steps:
4146
- uses: actions/checkout@v3
4247
- uses: actions/setup-python@v4

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/ambv/black
3-
rev: 22.10.0
3+
rev: 23.12.1
44
hooks:
55
- id: black
66
args: ['--quiet']
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.4.0
8+
rev: v4.5.0
99
hooks:
1010
- id: check-case-conflict
1111
- id: end-of-file-fixer
@@ -16,7 +16,7 @@ repos:
1616
- id: detect-private-key
1717
- id: double-quote-string-fixer
1818
- repo: https://github.com/pycqa/flake8
19-
rev: 6.0.0
19+
rev: 6.1.0
2020
hooks:
2121
- id: flake8
2222
additional_dependencies: [
@@ -31,19 +31,19 @@ repos:
3131
]
3232
args: ['--enable-extensions=G']
3333
- repo: https://github.com/asottile/pyupgrade
34-
rev: v3.2.2
34+
rev: v3.15.0
3535
hooks:
3636
- id: pyupgrade
3737
args: ["--py36-plus"]
3838
- repo: https://github.com/pycqa/isort
39-
rev: 5.10.1
39+
rev: 5.13.2
4040
hooks:
4141
- id: isort
4242
files: 'django_guid/.*'
4343
- id: isort
4444
files: 'tests/.*'
4545
- repo: https://github.com/pre-commit/mirrors-mypy
46-
rev: v0.991
46+
rev: v1.8.0
4747
hooks:
4848
- id: mypy
4949
additional_dependencies:

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

django_guid/__init__.py

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

33
from django_guid.api import clear_guid, get_guid, set_guid # noqa F401
44

5-
__version__ = '3.3.1'
5+
__version__ = '3.4.0'
66

77
if django.VERSION < (3, 2):
88
default_app_config = 'django_guid.apps.DjangoGuidConfig'

django_guid/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ def _validate_and_setup_integrations(self) -> None:
9898
"""
9999
self.integration_settings.validate()
100100
for integration in self.integrations:
101-
102101
# Make sure all integration methods are callable
103102
for method, name in [
104103
(integration.setup, 'setup'),

poetry.lock

Lines changed: 680 additions & 706 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "django-guid"
3-
version = "3.3.1" # Remember to also change __init__.py version
3+
version = "3.4.0" # Remember to also change __init__.py version
44
description = "Middleware that enables single request-response cycle tracing by injecting a unique ID into project logs"
55
authors = ["Jonas Krüger Svensson <jonas-ks@hotmail.com>"]
66
maintainers = ["Sondre Lillebø Gundersen <sondrelg@live.no>"]
@@ -46,10 +46,10 @@ packages = [{ include = 'django_guid' }]
4646
"Release notes" = "https://github.com/snok/django-guid/releases"
4747

4848
[tool.poetry.dependencies]
49-
python = "^3.7"
49+
python = "^3.8"
5050
django = [
51-
{ version = "^3.1.1", python = "<3.8" },
52-
{ version = "^3.1.1 | ^4.0", python = ">=3.8" }
51+
{ version = "^3.2 | ^4.0", python = ">=3.8,<3.10" },
52+
{ version = "^4.0 | ^5.0", python = ">=3.10" }
5353
]
5454

5555

0 commit comments

Comments
 (0)