Skip to content

Commit 4357cd5

Browse files
authored
Merge pull request #1202 from ddabble/update-dependencies
Update Python and Django versions
2 parents aab4726 + f054e1a commit 4357cd5

File tree

16 files changed

+86
-51
lines changed

16 files changed

+86
-51
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,10 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12-dev']
15-
django-version: ['3.2', '4.0', '4.1', 'main']
14+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12-dev']
15+
django-version: ['3.2', '4.1', '4.2', 'main']
1616

1717
exclude:
18-
- python-version: '3.7'
19-
django-version: '4.0'
20-
- python-version: '3.7'
21-
django-version: '4.1'
22-
- python-version: '3.7'
23-
django-version: 'main'
24-
2518
- python-version: '3.8'
2619
django-version: 'main'
2720

@@ -30,13 +23,9 @@ jobs:
3023

3124
- python-version: '3.11'
3225
django-version: '3.2'
33-
- python-version: '3.11'
34-
django-version: '4.0'
3526

3627
- python-version: '3.12-dev'
3728
django-version: '3.2'
38-
- python-version: '3.12-dev'
39-
django-version: '4.0'
4029

4130
services:
4231

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ repos:
5050
rev: v3.8.0
5151
hooks:
5252
- id: pyupgrade
53-
args: [--py37-plus]
53+
args: [--py38-plus]

.readthedocs.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
# Read the Docs configuration file for Sphinx projects
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the OS, Python version and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.11"
13+
14+
# Build documentation in the "docs/" directory with Sphinx
15+
sphinx:
16+
configuration: docs/conf.py
17+
18+
# Optional but recommended, declare the Python requirements required
19+
# to build your documentation
20+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
21+
python:
22+
install:
23+
- requirements: requirements/docs.txt

CHANGES.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ Unreleased
99
``SIMPLE_HISTORY_ENFORCE_HISTORY_MODEL_PERMISSIONS`` is set to ``True``
1010
in ``settings`` (gh-1017).
1111
- Fixed ``SimpleHistoryAdmin`` not properly integrating with custom user models (gh-1177)
12-
- Support Indonesian translation
13-
- Support Urdu translation
12+
- Support Indonesian translation (gh-1198)
13+
- Support Urdu translation (gh-1199)
14+
- Dropped support for Python 3.7, which reached end-of-life on 2023-06-27 (gh-1202)
15+
- Dropped support for Django 4.0, which reached end-of-life on 2023-04-01 (gh-1202)
16+
- Added support for Django 4.2 (gh-1202)
1417

1518
3.3.0 (2023-03-08)
1619
------------------

README.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ django-simple-history
1818
:alt: PyPI Version
1919

2020
.. image:: https://api.codeclimate.com/v1/badges/66cfd94e2db991f2d28a/maintainability
21-
:target: https://codeclimate.com/github/treyhunner/django-simple-history/maintainability
21+
:target: https://codeclimate.com/github/jazzband/django-simple-history/maintainability
2222
:alt: Maintainability
2323

2424
.. image:: https://pepy.tech/badge/django-simple-history
@@ -41,9 +41,10 @@ This app supports the following combinations of Django and Python:
4141
========== ========================
4242
Django Python
4343
========== ========================
44-
3.2 3.7, 3.8, 3.9, 3.10
45-
4.0 3.8, 3.9, 3.10
46-
4.1 3.8, 3.9, 3.10, 3.11
44+
3.2 3.8, 3.9, 3.10
45+
4.1 3.8, 3.9, 3.10, 3.11, 3.12-dev
46+
4.2 3.8, 3.9, 3.10, 3.11, 3.12-dev
47+
main 3.10, 3.11, 3.12-dev
4748
========== ========================
4849

4950
Getting Help

docs/conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
# serve to show the default.
1212
import os
1313
import sys
14-
15-
from pkg_resources import get_distribution
14+
from importlib import metadata
1615

1716
# If extensions (or modules to document with autodoc) are in another directory,
1817
# add these directories to sys.path here. If the directory is relative to the
@@ -48,7 +47,7 @@
4847
# |version| and |release|, also used in various other places throughout the
4948
# built documents.
5049
#
51-
release = get_distribution("django-simple-history").version
50+
release = metadata.version("django-simple-history")
5251
# for example take major/minor
5352
version = ".".join(release.split(".")[:2])
5453

docs/index.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
django-simple-history
22
=====================
33

4-
.. image:: https://secure.travis-ci.org/jazzband/django-simple-history.svg?branch=master
5-
:target: http://travis-ci.org/jazzband/django-simple-history
4+
.. image:: https://github.com/jazzband/django-simple-history/actions/workflows/test.yml/badge.svg
5+
:target: https://github.com/jazzband/django-simple-history/actions/workflows/test.yml
66
:alt: Build Status
77

88
.. image:: https://readthedocs.org/projects/django-simple-history/badge/?version=latest
@@ -18,7 +18,7 @@ django-simple-history
1818
:alt: PyPI Version
1919

2020
.. image:: https://api.codeclimate.com/v1/badges/66cfd94e2db991f2d28a/maintainability
21-
:target: https://codeclimate.com/github/treyhunner/django-simple-history/maintainability
21+
:target: https://codeclimate.com/github/jazzband/django-simple-history/maintainability
2222
:alt: Maintainability
2323

2424
.. image:: https://pepy.tech/badge/django-simple-history
@@ -41,9 +41,10 @@ This app supports the following combinations of Django and Python:
4141
========== =======================
4242
Django Python
4343
========== =======================
44-
3.2 3.7, 3.8, 3.9, 3.10
45-
4.0 3.8, 3.9, 3.10
46-
4.1 3.8, 3.9, 3.10, 3.11
44+
3.2 3.8, 3.9, 3.10
45+
4.1 3.8, 3.9, 3.10, 3.11, 3.12-dev
46+
4.2 3.8, 3.9, 3.10, 3.11, 3.12-dev
47+
main 3.10, 3.11, 3.12-dev
4748
========== =======================
4849

4950
Contribute

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[tool.black]
22
line-length = 88
3-
target-version = ["py37"]
3+
target-version = ["py38"]
44

55
[tool.isort]
66
profile = "black"
7-
py_version = "37"
7+
py_version = "38"
88

99
[tool.coverage.run]
1010
parallel = true

requirements/docs.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# Install this project in editable mode, so that its package metadata can be queried
2+
-e .
13
Sphinx==5.3.0

requirements/postgres.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
# DEV: Replace this with `psycopg[binary]` when the minimum required Django version is
2+
# 4.2 or higher, as this is likely to be deprecated in the future
3+
# (see https://docs.djangoproject.com/en/4.2/releases/4.2/#psycopg-3-support)
14
psycopg2-binary==2.9.6

0 commit comments

Comments
 (0)