Skip to content

Commit 2047c86

Browse files
authored
Merge pull request #138 from django-commons/dj6
Early support for Django 6
2 parents 02b0b76 + d2f2193 commit 2047c86

File tree

6 files changed

+132
-84
lines changed

6 files changed

+132
-84
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ on:
77
push:
88
tags-ignore:
99
- '*'
10-
branches:
11-
- '*'
10+
branches: ['main']
1211
pull_request:
12+
branches: ['main']
1313
workflow_call:
1414
workflow_dispatch:
1515
inputs:

.github/workflows/test.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ on:
77
push:
88
tags-ignore:
99
- '*'
10-
branches:
11-
- '*'
10+
branches: ['main']
1211
pull_request:
12+
branches: ['main']
1313
workflow_call:
1414
workflow_dispatch:
1515
inputs:
@@ -41,6 +41,7 @@ jobs:
4141
- '4.2' # LTS April 2026
4242
- '5.1' # December 2025
4343
- '5.2' # LTS April 2028
44+
- '6.0a1' # alpha prerelease
4445
exclude:
4546
- django-version: '4.2'
4647
postgres-version: '9.6'
@@ -91,6 +92,21 @@ jobs:
9192
# https://github.com/psycopg/psycopg2/pull/1695
9293
- python-version: '3.14'
9394
psycopg-version: 'psycopg2'
95+
96+
- postgres-version: '9.6'
97+
django-version: '6.0a1'
98+
- postgres-version: '12'
99+
django-version: '6.0a1'
100+
- python-version: '3.9'
101+
django-version: '6.0a1'
102+
- python-version: '3.10'
103+
django-version: '6.0a1'
104+
- python-version: '3.11'
105+
django-version: '6.0a1'
106+
- python-version: '3.12'
107+
django-version: '6.0a1'
108+
- python-version: '3.13'
109+
django-version: '6.0a1'
94110

95111
env:
96112
RDBMS: postgres
@@ -138,9 +154,14 @@ jobs:
138154
- name: Setup Just
139155
uses: extractions/setup-just@v3
140156
- name: Install Release Dependencies
157+
shell: bash
141158
run: |
142159
just setup ${{ steps.sp.outputs.python-path }}
143-
just test-lock "Django~=${{ matrix.django-version }}.0"
160+
if [[ "${{ matrix.django-version }}" =~ (a|b|rc) ]]; then
161+
just test-lock Django==${{ matrix.django-version }}
162+
else
163+
just test-lock Django~=${{ matrix.django-version }}.0
164+
fi
144165
- name: Install Emacs
145166
if: ${{ github.event.inputs.debug == 'true' }}
146167
run: |
@@ -315,6 +336,7 @@ jobs:
315336
- name: Setup Just
316337
uses: extractions/setup-just@v3
317338
- name: Install Release Dependencies
339+
shell: bash
318340
run: |
319341
just setup ${{ steps.sp.outputs.python-path }}
320342
just test-lock Django~=${{ matrix.django-version }}.0

doc/source/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
Change Log
55
==========
66

7+
v2.2.5 (2025-09-27)
8+
===================
9+
10+
* Support Django 6.0
11+
712
v2.2.4 (2025-09-21)
813
===================
914

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "django-enum"
3-
version = "2.2.4"
3+
version = "2.2.5"
44
description = "Full and natural support for enumerations as Django model fields."
55
requires-python = ">=3.9,<4.0"
66
authors = [
@@ -15,7 +15,7 @@ keywords = [
1515
"enum", "properties", "defines", "field", "django", "database",
1616
"bitmask", "mask", "bitfield", "flags"
1717
]
18-
dependencies = ["django (>=3.2,<6.0)"]
18+
dependencies = ["django (>=3.2,<6.1)"]
1919
classifiers = [
2020
"Environment :: Console",
2121
"Framework :: Django",
@@ -29,6 +29,7 @@ classifiers = [
2929
"Framework :: Django :: 5.0",
3030
"Framework :: Django :: 5.1",
3131
"Framework :: Django :: 5.2",
32+
"Framework :: Django :: 6.0",
3233
"Intended Audience :: Developers",
3334
"License :: OSI Approved :: MIT License",
3435
"Natural Language :: English",

src/django_enum/__init__.py

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

2424
__all__ = ["EnumField"]
2525

26-
VERSION = (2, 2, 4)
26+
VERSION = (2, 2, 5)
2727

2828
__title__ = "Django Enum"
2929
__version__ = ".".join(str(i) for i in VERSION)

0 commit comments

Comments
 (0)