Skip to content

Commit

Permalink
Begin testing against Django 5.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
ubernostrum committed Aug 12, 2024
1 parent 8f7633a commit 21d277a
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.4.2
rev: 24.8.0
hooks:
- id: black
language_version: python3.12
name: black (Python formatter)
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
rev: 7.1.1
hooks:
- id: flake8
name: flake8 (Python linter)
Expand Down
8 changes: 8 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ The API stability/deprecation policy for ``django-contact-form`` is as follows:
Releases under DjangoVer
------------------------

Version 5.1.0
~~~~~~~~~~~~~

*Under development*

* Supported Django versions are now 4.2, 5.0, and 5.1.


Version 5.0.1
~~~~~~~~~~~~~

Expand Down
11 changes: 5 additions & 6 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ installing, configuring or using django-contact-form.
What versions of Django and Python are supported?
-------------------------------------------------

``django-contact-form`` |release| supports Django 4.2 and 5.0 on Python 3.8
(Django 4.2 only), 3.9 (Django 4.2 only), 3.10, 3.11, and 3.12.

Django 4.2 only added Python 3.12 support in the 4.2.8 release, so it is
suggested that you use at least Django 4.2.8 (and always recommended to use the
latest bugfix release of whichever Django version you choose to use).
``django-contact-form`` |release| supports Django 4.2, 5.0, and 5.1, and Python
3.8 through 3.12. See `Django's Python support matrix
<https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django>`_
for details of which Python versions are compatible with each version of
Django.


What license is ``django-contact-form`` under?
Expand Down
12 changes: 5 additions & 7 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
Installation guide
==================

``django-contact-form`` |release| supports Django 4.2 and 5.0 on Python 3.8
(Django 4.2 only), 3.9 (Django 4.2 only), 3.10, 3.11, and 3.12.

Django 4.2 only added Python 3.12 support in the 4.2.8 release, so for use with
Python 3.12 it is suggested that you use at least Django 4.2.8 (and always
recommended to use the latest bugfix release of whichever Django version you
choose to use).
``django-contact-form`` |release| supports Django 4.2, 5.0, and 5.1, and Python
3.8 through 3.12. See `Django's Python support matrix
<https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django>`_
for details of which Python versions are compatible with each version of
Django.


Installing ``django-contact-form``
Expand Down
7 changes: 4 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ def clean(paths: typing.Iterable[os.PathLike] = ARTIFACT_PATHS) -> None:
@nox.parametrize(
"python,django",
[
# Python/Django testing matrix. Tests Django 4.2, and 5.0, on Python 3.8
# Python/Django testing matrix. Tests Django 4.2, 5.0, and 5.1, on Python 3.8
# through 3.11, skipping unsupported combinations.
(python, django)
for python in ["3.8", "3.9", "3.10", "3.11", "3.12"]
for django in ["4.2", "5.0"]
if (python, django) not in [("3.8", "5.0"), ("3.9", "5.0")]
for django in ["4.2", "5.0", "5.1"]
if (python, django)
not in [("3.8", "5.0"), ("3.9", "5.0"), ("3.8", "5.1"), ("3.9", "5.1")]
],
)
def tests_with_coverage(session: nox.Session, django: str) -> None:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ classifiers = [
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
Expand Down
2 changes: 1 addition & 1 deletion src/django_contact_form/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

# SPDX-License-Identifier: BSD-3-Clause

__version__ = "5.0.1"
__version__ = "5.1.0a1"

0 comments on commit 21d277a

Please sign in to comment.