diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b54ab2..3d93c75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,6 @@ jobs: - name: Run pre-commit hooks run: pre-commit run --all-files --hook-stage push - tests: @@ -29,7 +28,7 @@ jobs: strategy: matrix: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', ] - django-version: ['32', '41', '42', ] + django-version: ['32', '41', '42', '50', ] exclude: - python-version: '3.12' @@ -79,4 +78,4 @@ jobs: - name: Combine coverage and fail if it's <100% run: | python -m coverage html --skip-covered --skip-empty - python -m coverage report --fail-under=100 + python -m coverage report --fail-under=100.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3ec18a7..2f451e0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.3 + rev: v0.1.4 hooks: # Run the Ruff linter. - id: ruff diff --git a/CHANGES.md b/CHANGES.md index 2eddea8..7a9b390 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,8 @@ # Changelog +* *1.3.0** (2023-12-04) + * Added Django 5.0 support + * *1.2.5** (2023-11-13) * Fixed wrong import path in docs diff --git a/README.md b/README.md index ea67497..c73b70a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![PyPI release](https://img.shields.io/pypi/v/django-pony-express.svg)](https://pypi.org/project/django-pony-express/) [![Downloads](https://static.pepy.tech/badge/django-pony-express)](https://pepy.tech/project/django-pony-express) -[![Coverage](https://img.shields.io/badge/Coverage-100%25-success)](https://github.com/ambient-innovation/django-pony-express/actions?workflow=CI) +[![Coverage](https://img.shields.io/badge/Coverage-100.0%25-success)](https://github.com/ambient-innovation/django-pony-express/actions?workflow=CI) [![Linting](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![Coding Style](https://img.shields.io/badge/code%20style-Ruff-000000.svg)](https://github.com/astral-sh/ruff) [![Documentation Status](https://readthedocs.org/projects/django-pony-express/badge/?version=latest)](https://django-pony-express.readthedocs.io/en/latest/?badge=latest) @@ -66,7 +66,7 @@ Ingenious, right? ### Setup package for development - Create a Python virtualenv and activate it -- Install "pip-tools" with `pip install pip-tools` +- Install "pip-tools" with `pip install -U pip-tools` - Compile the requirements with `pip-compile --extra dev, -o requirements.txt pyproject.toml --resolver=backtracking` - Sync the dependencies with your virtualenv with `pip-sync` diff --git a/django_pony_express/__init__.py b/django_pony_express/__init__.py index 57435ef..65d31f5 100644 --- a/django_pony_express/__init__.py +++ b/django_pony_express/__init__.py @@ -1,3 +1,3 @@ """Class-based emails including a test suite for Django""" -__version__ = "1.2.5" +__version__ = "1.3.0" diff --git a/pyproject.toml b/pyproject.toml index 0e0a086..08ae3c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,7 @@ classifiers = [ "Framework :: Django :: 3.2", "Framework :: Django :: 4.1", "Framework :: Django :: 4.2", + "Framework :: Django :: 5.0", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Natural Language :: English", @@ -38,7 +39,7 @@ dependencies = [ [project.optional-dependencies] dev = [ - 'freezegun~=1.2', + 'typer~=0.9freezegun~=1.2', 'pytest-django~=4.5', 'pytest-mock~=3.10', 'coverage~=7.3', @@ -48,7 +49,7 @@ dev = [ 'sphinx-rtd-theme==1.0.0', 'm2r2==0.3.1', 'mistune<2.0.0', - 'ambient-package-update~=23.10.7', + 'ambient-package-update~=23.11.2', ] [tool.flit.module] @@ -72,6 +73,7 @@ select = [ "A", # flake8-builtins "DTZ", # flake8-datetimez "DJ", # flake8-django + "TD", # flake8-to-do "RUF100", # Removes unnecessary "#noqa" comments "YTT", # Avoid non-future-prove usages of "sys" # "FBT", # Protects you from the "boolean trap bug" @@ -101,6 +103,7 @@ fixable = [ "A", # flake8-builtins "DTZ", # flake8-datetimez "DJ", # flake8-django + "TD", # flake8-to-do "RUF100", # Removes unnecessary "#noqa" comments "YTT", # Avoid non-future-prove usages of "sys" # "FBT", # Protects you from the "boolean trap bug" @@ -172,6 +175,7 @@ deps = django32: Django==3.2.* django41: Django==4.1.* django42: Django==4.2.* + django50: Django==5.0.* extras = dev, commands = coverage run -m pytest --ds settings tests