Skip to content

Commit 3e1705b

Browse files
committed
support python 3.14 fix #135
1 parent 3565b8c commit 3e1705b

File tree

5 files changed

+2036
-1022
lines changed

5 files changed

+2036
-1022
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
strategy:
3434
fail-fast: false
3535
matrix:
36-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
36+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14.0-rc.3']
3737
postgres-version: ['9.6', '12', 'latest']
3838
psycopg-version: ['psycopg2', 'psycopg3']
3939
django-version:
@@ -79,6 +79,19 @@ jobs:
7979
# https://github.com/psycopg/psycopg2/pull/1695
8080
- python-version: '3.13'
8181
psycopg-version: 'psycopg2'
82+
83+
84+
- python-version: '3.14.0-rc.3'
85+
django-version: '3.2'
86+
- python-version: '3.14.0-rc.3'
87+
django-version: '4.2'
88+
89+
- python-version: '3.14.0-rc.3'
90+
django-version: '5.1'
91+
# https://github.com/psycopg/psycopg2/pull/1695
92+
- python-version: '3.14.0-rc.3'
93+
psycopg-version: 'psycopg2'
94+
8295
env:
8396
RDBMS: postgres
8497
POSTGRES_PASSWORD: postgres

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ You can run a live documentation server that will automatically update during ed
5151

5252
`django-enum` uses [pytest](https://docs.pytest.org/) to define and run tests. All the tests are housed under ``tests/``. Before a PR is accepted, all tests must be passing and the code coverage must be at 100%. A small number of exempted error handling branches are acceptable.
5353

54+
**Note if not using** ``just test-all`` **you will need to make sure the migrations exist first by running** ``just manage makemigrations``
55+
5456
To run the full suite:
5557

5658
```bash

doc/source/changelog.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
Change Log
55
==========
66

7-
v2.2.4 (2025-09-18)
7+
v2.2.4 (2025-09-21)
88
===================
99

10+
* Implemented `Support Python 3.14 <https://github.com/django-commons/django-enum/issues/135>`_
1011
* Fixed `Avoid depending on typing_extensions. <https://github.com/django-commons/django-enum/pull/134>`_
1112

1213
v2.2.3 (2025-04-28)

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ classifiers = [
3838
"Programming Language :: Python :: 3.11",
3939
"Programming Language :: Python :: 3.12",
4040
"Programming Language :: Python :: 3.13",
41+
"Programming Language :: Python :: 3.14",
4142
"Topic :: Internet :: WWW/HTTP",
4243
"Topic :: Internet :: WWW/HTTP :: Site Management",
4344
"Topic :: Software Development :: Libraries",
@@ -84,8 +85,8 @@ dev = [
8485
"deepdiff>=8.2.0",
8586
"django-extensions>=3.2.3",
8687
"django-stubs[compatible-mypy]>=5.1.3",
87-
# todo - update when version > 1.4.0 released
88-
"django-test-migrations @ git+https://github.com/wemake-services/django-test-migrations.git@master#egg=django-test-migrations",
88+
"django-test-migrations>=1.5.0; python_version >= '3.10'",
89+
"django-test-migrations<1.5.0; python_version < '3.10'",
8990
"djlint>=1.36.4",
9091
"ipdb>=0.13.13",
9192
"matplotlib>=3.9.4",

0 commit comments

Comments
 (0)