Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit eaafbb4

Browse files
committed
Test against Django 6.0 alpha.
1 parent 02b0b76 commit eaafbb4

File tree

6 files changed

+135
-84
lines changed

6 files changed

+135
-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: 28 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,17 @@ 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+
DJANGO_VERSION="${{ matrix.django-version }}"
161+
if [[ "$DJANGO_VERSION" =~ (a|b|rc) ]]; then
162+
# prerelease, use exact version pin
163+
just test-lock Django==${{ matrix.django-version }}
164+
else
165+
# stable release, use compatible release specifier
166+
just test-lock Django~=${{ matrix.django-version }}.0
167+
fi
144168
- name: Install Emacs
145169
if: ${{ github.event.inputs.debug == 'true' }}
146170
run: |
@@ -315,6 +339,7 @@ jobs:
315339
- name: Setup Just
316340
uses: extractions/setup-just@v3
317341
- name: Install Release Dependencies
342+
shell: bash
318343
run: |
319344
just setup ${{ steps.sp.outputs.python-path }}
320345
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)

AltStyle によって変換されたページ (->オリジナル) /