Skip to content

Commit abf29b2

Browse files
committed
Merge branch 'master' into django-commons-prep
2 parents 740d322 + 9fb7c5c commit abf29b2

File tree

15 files changed

+64
-49
lines changed

15 files changed

+64
-49
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,22 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
15-
django-version: ['4.2', '5.0', '5.1', 'main']
15+
django-version: ['4.2', '5.0', '5.1', '5.2', 'main']
1616

1717
exclude:
18-
# Exclude py3.9 for Django main and 5+
18+
# Exclude py3.9 for Django >= 5.0,
19+
# and py3.10 and py3.11 for Django > 5.2
1920
- python-version: '3.9'
2021
django-version: '5.0'
2122
- python-version: '3.9'
2223
django-version: '5.1'
2324
- python-version: '3.9'
25+
django-version: '5.2'
26+
- python-version: '3.9'
27+
django-version: 'main'
28+
- python-version: '3.10'
29+
django-version: 'main'
30+
- python-version: '3.11'
2431
django-version: 'main'
2532

2633
services:
@@ -79,8 +86,9 @@ jobs:
7986
DJANGO: ${{ matrix.django-version }}
8087

8188
- name: Upload coverage
82-
uses: codecov/codecov-action@v3
89+
uses: codecov/codecov-action@v5
8390
with:
91+
token: ${{ secrets.CODECOV_TOKEN }}
8492
name: Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }}
8593

8694

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
---
22
repos:
33
- repo: https://github.com/PyCQA/bandit
4-
rev: 1.8.0
4+
rev: 1.8.3
55
hooks:
66
- id: bandit
77
exclude: /.*tests/
88

99
- repo: https://github.com/psf/black-pre-commit-mirror
10-
rev: 24.10.0
10+
rev: 25.1.0
1111
hooks:
1212
- id: black
1313
language_version: python3.9
1414

1515
- repo: https://github.com/pycqa/flake8
16-
rev: 7.1.1
16+
rev: 7.2.0
1717
hooks:
1818
- id: flake8
1919
args:
2020
- "--config=tox.ini"
2121

2222
- repo: https://github.com/PyCQA/isort
23-
rev: 5.13.2
23+
rev: 6.0.1
2424
hooks:
2525
- id: isort
2626

@@ -40,23 +40,23 @@ repos:
4040
- id: detect-private-key
4141

4242
- repo: https://github.com/tox-dev/pyproject-fmt
43-
rev: v2.5.0
43+
rev: v2.5.1
4444
hooks:
4545
- id: pyproject-fmt
4646
- repo: https://github.com/abravalheri/validate-pyproject
47-
rev: v0.23
47+
rev: v0.24.1
4848
hooks:
4949
- id: validate-pyproject
5050

5151
- repo: https://github.com/adrienverge/yamllint
52-
rev: v1.35.1
52+
rev: v1.37.1
5353
hooks:
5454
- id: yamllint
5555
args:
5656
- "--strict"
5757

5858
- repo: https://github.com/asottile/pyupgrade
59-
rev: v3.19.0
59+
rev: v3.19.1
6060
hooks:
6161
- id: pyupgrade
6262
args: [--py39-plus]

CHANGES.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ Changes
44
Unreleased
55
----------
66

7+
- Tests are no longer bundled in released wheels (gh-1478)
8+
- Move repository to the Django Commons organization (gh-1391)
9+
10+
3.9.0 (2025-01-26)
11+
------------------
12+
13+
- Removed the ``simple_history_admin_list.display_list()`` template tag that was
14+
deprecated in version 3.6.0 (gh-1444)
15+
16+
3.8.0 (2025-01-23)
17+
------------------
18+
719
- Made ``skip_history_when_saving`` work when creating an object - not just when
820
updating an object (gh-1262)
921
- Improved performance of the ``latest_of_each()`` history manager method (gh-1360)
@@ -15,7 +27,9 @@ Unreleased
1527
- Added pagination to ``SimpleHistoryAdmin`` (gh-1277)
1628
- Fixed issue with history button not working when viewing historical entries in the
1729
admin (gh-527)
18-
- Move repository to the Django Commons organization (gh-1391)
30+
- Added support for Django 5.2 (gh-1441)
31+
- ``simple_history_admin_list.display_list()`` *was planned to be removed in this
32+
release, but it was overlooked, and will instead be removed in 3.9.0*
1933

2034
3.7.0 (2024-05-29)
2135
------------------

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ This app supports the following combinations of Django and Python:
4444
4.2 3.9, 3.10, 3.11, 3.12, 3.13
4545
5.0 3.10, 3.11, 3.12, 3.13
4646
5.1 3.10, 3.11, 3.12, 3.13
47-
main 3.10, 3.11, 3.12, 3.13
47+
5.2 3.10, 3.11, 3.12, 3.13
48+
main 3.12, 3.13
4849
========== ========================
4950

5051
Getting Help

docs/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ This app supports the following combinations of Django and Python:
4040
4.2 3.9, 3.10, 3.11, 3.12, 3.13
4141
5.0 3.10, 3.11, 3.12, 3.13
4242
5.1 3.10, 3.11, 3.12, 3.13
43-
main 3.10, 3.11, 3.12, 3.13
43+
5.2 3.10, 3.11, 3.12, 3.13
44+
main 3.12, 3.13
4445
========== =======================
4546

4647
Contribute

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ classifiers = [
2222
"Framework :: Django",
2323
"Framework :: Django :: 4.2",
2424
"Framework :: Django :: 5.0",
25+
"Framework :: Django :: 5.1",
26+
"Framework :: Django :: 5.2",
2527
"Intended Audience :: Developers",
2628
"License :: OSI Approved :: BSD License",
2729
"Programming Language :: Python",
@@ -57,6 +59,10 @@ local_scheme = "node-and-date"
5759
packages = [
5860
"simple_history",
5961
]
62+
exclude = [
63+
"simple_history/registry_tests",
64+
"simple_history/tests",
65+
]
6066

6167
[tool.hatch.metadata.hooks.fancy-pypi-readme]
6268
content-type = "text/x-rst"

requirements/coverage.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
coverage==7.6.8
1+
coverage==7.9.0
22
toml==0.10.2

requirements/docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Sphinx==8.1.3
1+
Sphinx==8.2.3
22
sphinx-rtd-theme==3.0.2

requirements/lint.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
black==24.10.0
2-
flake8==7.1.1
3-
isort==5.13.2
1+
black==25.1.0
2+
flake8==7.2.0
3+
isort==6.0.1

requirements/mysql.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
mysqlclient==2.2.6
1+
mysqlclient==2.2.7

requirements/postgres.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
psycopg[binary]==3.2.3
1+
psycopg[binary]==3.2.9

requirements/tox.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-r ./coverage.txt
2-
tox==4.23.2
3-
tox-gh-actions==3.2.0
2+
tox==4.26.0
3+
tox-gh-actions==3.3.0

simple_history/templatetags/simple_history_admin_list.py

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
import unittest
22

3-
from simple_history import __version__
4-
from simple_history.templatetags.simple_history_admin_list import display_list
5-
63

74
class DeprecationWarningTest(unittest.TestCase):
8-
def test__display_list__warns_deprecation_and_is_yet_to_be_removed(self):
9-
with self.assertWarns(DeprecationWarning):
10-
display_list({})
11-
# DEV: `display_list()` (and the file `simple_history_admin_list.py`) should be
12-
# removed when 3.8 is released
13-
self.assertLess(__version__, "3.8")
5+
"""Tests that check whether ``DeprecationWarning`` is raised for certain features,
6+
and that compare ``simple_history.__version__`` against the version the features
7+
will be removed in.
8+
9+
If this class is empty, it normally means that nothing is currently deprecated.
10+
"""

tox.ini

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[tox]
22
envlist =
3-
py{39,310,311,312,313}-dj42-{sqlite3,postgres,mysql,mariadb},
4-
py{310,311,312,313}-dj{50,51,main}-{sqlite3,postgres,mysql,mariadb},
3+
py3{9-13}-dj42-{sqlite3,postgres,mysql,mariadb},
4+
py3{10-13}-dj{50-52}-{sqlite3,postgres,mysql,mariadb},
5+
py3{12-13}-dj{main}-{sqlite3,postgres,mysql,mariadb},
56
docs,
67
lint
78

@@ -18,6 +19,7 @@ DJANGO =
1819
4.2: dj42
1920
5.0: dj50
2021
5.1: dj51
22+
5.2: dj52
2123
main: djmain
2224

2325
[flake8]
@@ -32,6 +34,7 @@ deps =
3234
dj42: Django>=4.2,<4.3
3335
dj50: Django>=5.0,<5.1
3436
dj51: Django>=5.1,<5.2
37+
dj52: Django>=5.2a1,<5.3 # Use a1 to allow testing of the release candidates
3538
djmain: https://github.com/django/django/tarball/main
3639
postgres: -rrequirements/postgres.txt
3740
mysql: -rrequirements/mysql.txt

0 commit comments

Comments
 (0)