Skip to content

Commit

Permalink
v2.4.1 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
GitRon authored Oct 14, 2024
1 parent ffe026f commit 6908aff
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 21 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Unit tests

on:
push:
branches: [ '**' ]
branches:
- master
pull_request:

jobs:
Expand All @@ -28,7 +29,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', ]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', ]
django-version: ['42', '50', '51', ]

exclude:
Expand Down
23 changes: 17 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.4
rev: v0.6.9
hooks:
# Run the Ruff linter.
- id: ruff
Expand All @@ -12,23 +12,34 @@ repos:
- id: ruff-format

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.18.0
rev: 1.19.0
hooks:
- id: blacken-docs
additional_dependencies:
- black==24.4.2
files: '(?:README\.md|docs\/.*\.(?:md|rst))'

- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
rev: v3.18.0
hooks:
- id: pyupgrade
args: [ --py39-plus ]
stages: [ push ]
stages: [ pre-push ]

- repo: https://github.com/adamchainz/django-upgrade
rev: 1.21.0
rev: 1.22.1
hooks:
- id: django-upgrade
args: [--target-version, "4.2"]
stages: [ push ]
stages: [ pre-push ]

- repo: https://github.com/adamchainz/djade-pre-commit
rev: 1.3.0
hooks:
- id: djade
args: [--target-version, "4.2"]
exclude: |
(?x)^(
charts/.*
|.*\.py
)$
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

* *2.4.1* (2024-10-14)
* Added Python 3.13 support
* Added Djade linter to pre-commit
* Improved GitHub action triggers
* Updated dev dependencies and linters

* *2.4.0* (2024-09-11)
* Allow custom subject delimiter

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1344,4 +1344,4 @@ into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
<https://www.gnu.org/licenses/why-not-lgpl.html>.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Example: run all hooks of pre-push stage
### Update documentation
- To build the documentation run: `sphinx-build docs/ docs/_build/html/`.
- To build the documentation, run: `sphinx-build docs/ docs/_build/html/`.
- Open `docs/_build/html/index.html` to see the documentation.
Expand Down
2 changes: 1 addition & 1 deletion django_pony_express/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Class-based emails including a test suite for Django"""

__version__ = "2.4.0"
__version__ = "2.4.1"
16 changes: 9 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Utilities",
]
dynamic = ["version", "description"]
Expand All @@ -37,19 +38,19 @@ dependencies = [

[project.optional-dependencies]
dev = [
'typer~=0.9',
'freezegun~=1.3',
'pytest-django~=4.7',
'pytest-mock~=3.12',
'typer~=0.12',
'freezegun~=1.5',
'pytest-django~=4.9',
'pytest-mock~=3.14',
'coverage~=7.6',
'pre-commit~=3.7',
'ruff~=0.4',
'pre-commit~=4.0',
'ruff~=0.6',
'sphinx~=7.1',
'sphinx-rtd-theme~=2.0',
'm2r2==0.3.3.post2',
'mistune<2.0.0',
'flit~=3.9',
'keyring~=25.2',
'keyring~=25.4',
'ambient-package-update',
]

Expand Down Expand Up @@ -194,6 +195,7 @@ python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
"""

[tool.pytest.ini_options]
Expand Down
2 changes: 1 addition & 1 deletion scripts/unix/publish_to_pypi.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
flit publish --repository testpypi
flit publish
flit publish
2 changes: 1 addition & 1 deletion scripts/windows/publish_to_pypi.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
flit publish --repository testpypi
flit publish
flit publish
1 change: 0 additions & 1 deletion testapp/templates/testapp/test_email.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@
</div>
</body>
</html>

0 comments on commit 6908aff

Please sign in to comment.