diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 027aac6..f2d90ee 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,16 +19,19 @@ jobs: # run static analysis on bleeding and trailing edges python-version: [ '3.9', '3.12' ] django-version: - - 'Django~=3.2.0' # LTS April 2024 - - 'Django~=4.2.0' # LTS April 2026 - - 'Django~=5.0.0' + - '3.2' # LTS April 2024 + - '4.2' # LTS April 2026 + - '5.0' # April 2025 + - '5.1b1' # December 2025 exclude: - python-version: '3.9' - django-version: 'Django~=4.2.0' + django-version: '4.2' - python-version: '3.9' - django-version: 'Django~=5.0.0' + django-version: '5.0' - python-version: '3.12' - django-version: 'Django~=3.2.0' + django-version: '3.2' + - python-version: '3.9' + django-version: '5.1b1' steps: - uses: actions/checkout@v4 @@ -48,7 +51,7 @@ jobs: poetry config virtualenvs.in-project true poetry run pip install --upgrade pip poetry install -E all - poetry run pip install -U "${{ matrix.django-version }}" + poetry run pip install -U "Django~=${{ matrix.django-version }}" - name: Install Emacs if: ${{ github.event.inputs.debug == 'on' }} run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a4c48e5..02d5705 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,18 +17,23 @@ jobs: matrix: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] django-version: - - '3.2.0' # LTS April 2024 - - '4.2.0' # LTS April 2026 - - '5.0.0' # April 2025 + - '3.2' # LTS April 2024 + - '4.2' # LTS April 2026 + - '5.0' # April 2025 + - '5.1b1' # December 2025 exclude: - python-version: '3.11' - django-version: '3.2.0' + django-version: '3.2' - python-version: '3.12' - django-version: '3.2.0' + django-version: '3.2' - python-version: '3.8' - django-version: '5.0.0' + django-version: '5.0' - python-version: '3.9' - django-version: '5.0.0' + django-version: '5.0' + - python-version: '3.8' + django-version: '5.1b1' + - python-version: '3.9' + django-version: '5.1b1' steps: - uses: actions/checkout@v4 diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 9f7042f..98bf203 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -2,8 +2,13 @@ Change Log ========== -v3.0.0 -====== +v3.0.0 (15-JUL-2024) +==================== + +* Implemented `Support Django 5.1 `_ + +v3.0.0 (07-JUN-2024) +==================== * Implemented `Move tests into top level directory. `_ * Implemented `Remove wrapped dependency required mishegoss and replace with jinja2 module level imports `_ @@ -12,37 +17,37 @@ v3.0.0 * Fixed `Support django-typer version 2.1 `_ -v2.2.1 -====== +v2.2.1 (11-APR-2024) +==================== * Fixed `Custom URL converts may expect reversal kwargs to be of a given type. `_ * Fixed `Switch README and CONTRIBUTING to markdown. `_ -v2.2.0 -====== +v2.2.0 (27-FEB-2024) +==================== * Implemented `Refactor renderstatic command using TyperCommand `_ * Implemented `Allow enum class writer to_string parameter to be the name of a property to return from toString() `_ -v2.1.3 -====== +v2.1.3 (12-DEC-2023) +==================== * Fixed `Support Django 5.0 `_ -v2.1.2 -====== +v2.1.2 (21-NOV-2023) +==================== * Fixed `deepEqual should only be included by ClassURLWriter when Django version is less than 4.1 `_ * Fixed `deepEqual generated code in ClassURLWriter has an error `_ -v2.1.1 -====== +v2.1.1 (20-NOV-2023) +==================== * Fixed `include_properties can result in non-deterministic ordering of constructor parameters that changes render to render `_ -v2.1.0 -====== +v2.1.0 (20-NOV-2023) +==================== * Implemented `Support templating of destination paths. `_ * Implemented `Support configurable case insensitive property mapping on enum transpilation. `_ * Implemented `Add a pass through getter for enums_to_js transpilation. `_ @@ -52,23 +57,23 @@ v2.1.0 * Implemented `Allow include_properties to be a list of properties on enums_to_js `_ * Implemented `Extension points for transpiled code. `_ -v2.0.3 -====== +v2.0.3 (09-NOV-2023) +==================== * Fixed `Invalid URL generation for urls with default arguments. `_ -v2.0.2 -====== +v2.0.2 (26-OCT-2023) +==================== * Fixed `Dependency bug, for python < 3.9 importlib_resource req should simply be >=1.3 `_ -v2.0.1 -====== +v2.0.1 (24-OCT-2023) +==================== * Fixed `enums_to_js allows 'name' property through even if it is excluded. `_ -v2.0.0 -====== +v2.0.0 (21-OCT-2023) +==================== **This is a major version upgrade - please see migration guide for instructions on how to** :doc:`migration` **from version 1.x to 2.x.** @@ -101,40 +106,40 @@ on how to** :doc:`migration` **from version 1.x to 2.x.** * Fixed `Multilevel url arguments not working `_ * Implemented `Enum support `_ -v1.1.6 +v1.1.6 (15-FEB-2023) ==================== * Fixed `LICENSE is packaged as source. `_ -v1.1.5 +v1.1.5 (16-JAN-2023) ==================== * Fixed `Support python 3.11 `_ * Fixed `Drop support for python 3.6 `_ * Fixed `Upgrade build tooling to poetry 1.2 `_ -v1.1.4 +v1.1.4 (20-AUG-2022) ==================== * Fixed `urls_to_js output is incorrect when default kwargs specified in path() `_ -v1.1.3 +v1.1.3 (18-JAN-2022) ==================== * Fixed `Django4.0 Support `_ -v1.1.2 +v1.1.2 (08-OCT-2021) ==================== * Fixed `Jinja2 include breaks Jinja2 as optional dependency `_ -v1.1.1 +v1.1.1 (12-JUL-2021) ==================== * Support for Jinja2 3.0 * Improved importlib.resources inclusion logic -v1.1.0 +v1.1.0 (12-JUN-2021) ==================== * Added `Support batch rendering & glob patterns in template selectors `_ @@ -144,14 +149,14 @@ v1.1.0 * Added `Add GET query parameters to ClassURLWriter's reverse function `_ -v1.0.1 +v1.0.1 (24-APR-2021) ==================== * Fixed `Bound complexity of URL Generation `_ * Fixed `Unnamed/named urls of the same name sometimes fail `_ * Fixed `Default placeholders not activated `_ -v1.0.0 +v1.0.0 (21-APR-2021) ==================== * New abstract visitor pattern allows customization of generated URL resolution javascript @@ -164,13 +169,13 @@ v1.0.0 * API is now considered production/stable. -v0.1.1 +v0.1.1 (02-MAR-2021) ==================== * Added common placeholders, and placeholders for allauth and DRF -v0.1.0 +v0.1.0 (24-FEB-2021) ==================== * Initial Release diff --git a/pyproject.toml b/pyproject.toml index 5f347a7..abbb6b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "django-render-static" -version = "3.0.0" +version = "3.0.1" description = "Use Django's template engine to render static files at deployment or package time. Includes transpilers for extending Django's url reversal and enums to JavaScript." authors = ["Brian Kohan "] license = "MIT" @@ -19,6 +19,7 @@ classifiers = [ "Framework :: Django :: 4.1", "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", diff --git a/render_static/__init__.py b/render_static/__init__.py index 366fd16..76a851b 100755 --- a/render_static/__init__.py +++ b/render_static/__init__.py @@ -7,7 +7,7 @@ """ -VERSION = (3, 0, 0) +VERSION = (3, 0, 1) __title__ = "Django Render Static" __version__ = ".".join(str(i) for i in VERSION)