From 89cd2e1141b3eb4f0e13a9f6895f1631fbbe26c0 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Wed, 30 Oct 2024 16:57:43 +0100 Subject: [PATCH 1/2] :boom: Drop support for end-of-life Django 3.2 --- .github/workflows/ci.yml | 8 ++------ .github/workflows/code_quality.yml | 1 - pyproject.toml | 1 - tox.ini | 3 --- 4 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9994249..3dd5e0b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,6 @@ on: push: branches: - master - - develop tags: - '*' pull_request: @@ -17,14 +16,11 @@ jobs: strategy: matrix: python: ['3.10', '3.11', '3.12'] - django: ['3.2', '4.2'] - exclude: - - python: ['3.11', '3.12'] - django: '3.2' + django: ['4.2'] services: postgres: - image: postgres:12 + image: postgres:15 env: POSTGRES_HOST_AUTH_METHOD: trust ports: diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index 107cb27..70f4741 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -5,7 +5,6 @@ on: push: branches: - master - - develop tags: - '*' paths: diff --git a/pyproject.toml b/pyproject.toml index 47193ca..ecf032a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,6 @@ keywords = ["django", "generic logging"] classifiers = [ "Development Status :: 5 - Production/Stable", "Framework :: Django", - "Framework :: Django :: 3.2", "Framework :: Django :: 4.2", "Intended Audience :: Developers", "Operating System :: Unix", diff --git a/tox.ini b/tox.ini index 726a068..027b682 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,5 @@ [tox] envlist = - py{310}-django32 py{310,311,312}-django{42} isort black @@ -10,7 +9,6 @@ skip_missing_interpreters = true [gh-actions:env] DJANGO = - 3.2: django32 4.2: django42 [testenv] @@ -26,7 +24,6 @@ extras = tests coverage deps = - django32: Django~=3.2.0 django42: Django~=4.2.0 commands = py.test tests \ From fe76049db36a32755f0fe45760a6799291155302 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Wed, 30 Oct 2024 17:01:01 +0100 Subject: [PATCH 2/2] :pencil: Update changelog and bump version --- docs/changelog.rst | 11 +++++++++++ pyproject.toml | 6 ++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 36d5bcc..b74cce2 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,17 @@ Changelog ========= +5.0.0 (2024-10-30) +================== + +Feature release + +* Dropped support for Django 3.2 +* The package is now distributed with the ``py.typed`` marker +* Added manager method ``TimelineLog.objects.for_object``, making it easier to get all + log records related to a particular object. +* Added python utility and management command to prune log records. + 4.0.0 (2024-02-22) ================== diff --git a/pyproject.toml b/pyproject.toml index ecf032a..aecf16b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "django-timeline-logger" -version = "4.0.0" +version = "5.0.0" description = "Generic event logger for Django models." authors = [ {name = "Maykin Media", email = "support@maykinmedia.nl"} @@ -83,11 +83,9 @@ testpaths = ["tests"] DJANGO_SETTINGS_MODULE = "tests.settings_pg" [tool.bumpversion] -current_version = "4.0.0" +current_version = "5.0.0" files = [ {filename = "pyproject.toml"}, - {filename = "README.rst"}, - {filename = "docs/changelog.rst"}, ] [tool.coverage.run]