From 4ade1fbab95278f5d9f375ef4d969ba3a7b73d6d Mon Sep 17 00:00:00 2001 From: Brian Kohan Date: Sat, 27 Sep 2025 09:23:13 -0700 Subject: [PATCH] test against django 6.0 alpha 1 - add classifier and bump version --- .github/workflows/test.yml | 20 +++++++++++++++++++- doc/source/changelog.rst | 5 +++++ pyproject.toml | 5 +++-- src/django_typer/__init__.py | 2 +- uv.lock | 4 ++-- 5 files changed, 30 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 20b747e..2b5b393 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,6 +40,7 @@ jobs: - '5.0' # April 2025 - '5.1' # December 2025 - '5.2' # April 2028 + - '6.0a1' # prerelease exclude: - python-version: '3.9' django-version: '5.0' @@ -65,6 +66,17 @@ jobs: django-version: '5.0' - python-version: '3.14' django-version: '5.1' + + - python-version: '3.9' + django-version: '6.0a1' + - python-version: '3.10' + django-version: '6.0a1' + - python-version: '3.11' + django-version: '6.0a1' + - python-version: '3.12' + django-version: '6.0a1' + - python-version: '3.13' + django-version: '6.0a1' env: COVERAGE_FILE: py${{ matrix.python-version }}-linux-dj${{ matrix.django-version }}.coverage TEST_PYTHON_VERSION: ${{ matrix.python-version }} @@ -96,8 +108,14 @@ jobs: - name: Setup Just uses: extractions/setup-just@v3 - name: Install Dependencies + shell: bash run: | - just test-lock "Django~=${{ matrix.django-version }}.0" + just setup ${{ steps.sp.outputs.python-path }} + if [[ "${{ matrix.django-version }}" =~ (a|b|rc) ]]; then + just test-lock Django==${{ matrix.django-version }} + else + just test-lock Django~=${{ matrix.django-version }}.0 + fi - name: Run Unit Tests run: | just test ./tests/verify_environment.py diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index c5784dc..e297f44 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -4,6 +4,11 @@ Change Log ========== +v3.3.2 (2025-09-27) +=================== + +* Early support release for Django 6.0 (tested against 6.0a1) + v3.3.1 (2025-09-22) =================== diff --git a/pyproject.toml b/pyproject.toml index b8e2ec5..6971968 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "django-typer" -version = "3.3.1" +version = "3.3.2" requires-python = ">=3.9,<4.0" description = "Use Typer to define the CLI for your Django management commands." authors = [ @@ -17,7 +17,7 @@ repository = "https://github.com/django-commons/django-typer" homepage = "https://django-typer.readthedocs.io" keywords = ["django", "CLI", "management", "Typer", "commands"] dependencies = [ - "Django>=3.2,<6.0", + "Django>=3.2,<6.1", "click>=8.1.8,<8.4", # typer's release history is full of breaking changes for minor versions # given the reliance on some of its private internals we peg the typer @@ -40,6 +40,7 @@ classifiers = [ "Framework :: Django :: 5.0", "Framework :: Django :: 5.1", "Framework :: Django :: 5.2", + "Framework :: Django :: 6.0", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", diff --git a/src/django_typer/__init__.py b/src/django_typer/__init__.py index 3d52828..fa47490 100644 --- a/src/django_typer/__init__.py +++ b/src/django_typer/__init__.py @@ -40,7 +40,7 @@ and keep a tight version lock on Typer. """ -VERSION = (3, 3, 1) +VERSION = (3, 3, 2) __title__ = "Django Typer" __version__ = ".".join(str(i) for i in VERSION) diff --git a/uv.lock b/uv.lock index b2bb5e3..0163ad3 100644 --- a/uv.lock +++ b/uv.lock @@ -633,7 +633,7 @@ wheels = [ [[package]] name = "django-typer" -version = "3.3.1" +version = "3.3.2" source = { editable = "." } dependencies = [ { name = "click", version = "8.1.8", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, @@ -700,7 +700,7 @@ psycopg3 = [ [package.metadata] requires-dist = [ { name = "click", specifier = ">=8.1.8,<8.4" }, - { name = "django", specifier = ">=3.2,<6.0" }, + { name = "django", specifier = ">=3.2,<6.1" }, { name = "rich", marker = "extra == 'rich'", specifier = ">=10.11.0,<15.0.0" }, { name = "shellingham", specifier = ">=1.5.4,<2.0" }, { name = "typer-slim", specifier = ">=0.18.0,<0.20.0" },