From bd03eb619957b2edcb4dce763b9892491b08350c Mon Sep 17 00:00:00 2001 From: Dan Bentley <535833+danbentley@users.noreply.github.com> Date: Sat, 11 Oct 2025 08:57:22 +0100 Subject: [PATCH] Amend setup configuration to include non-python package files (#769) * Amend setup configuration to include non-python package files Fixes: #767 Adds locale files created in: #762 * Amend render tests to use templatetag Tests now use the public interface to render function. Addresses regression in test coverage caused by adding templatetag to wheel. --- MANIFEST.in | 3 +++ auditlog_tests/test_render.py | 2 +- setup.py | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..9de0f60 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +recursive-include auditlog/templates * +recursive-include auditlog/static * +recursive-include auditlog/locale * diff --git a/auditlog_tests/test_render.py b/auditlog_tests/test_render.py index a1063b6..0cd9794 100644 --- a/auditlog_tests/test_render.py +++ b/auditlog_tests/test_render.py @@ -2,7 +2,7 @@ from django.test import TestCase from test_app.models import SimpleModel from auditlog.models import LogEntry -from auditlog.render import render_logentry_changes_html +from auditlog.templatetags.auditlog_tags import render_logentry_changes_html class RenderChangesTest(TestCase): diff --git a/setup.py b/setup.py index f6bd787..9147842 100644 --- a/setup.py +++ b/setup.py @@ -10,11 +10,13 @@ setup( name="django-auditlog", use_scm_version={"version_scheme": "post-release"}, setup_requires=["setuptools_scm"], + include_package_data=True, packages=[ "auditlog", "auditlog.migrations", "auditlog.management", "auditlog.management.commands", + "auditlog.templatetags", ], url="https://github.com/jazzband/django-auditlog", project_urls={