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.
This commit is contained in:
Dan Bentley 2025-10-11 08:57:22 +01:00 committed by GitHub
parent 74ba152a67
commit bd03eb6199
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 1 deletions

3
MANIFEST.in Normal file
View file

@ -0,0 +1,3 @@
recursive-include auditlog/templates *
recursive-include auditlog/static *
recursive-include auditlog/locale *

View file

@ -2,7 +2,7 @@ from django.test import TestCase
from test_app.models import SimpleModel from test_app.models import SimpleModel
from auditlog.models import LogEntry 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): class RenderChangesTest(TestCase):

View file

@ -10,11 +10,13 @@ setup(
name="django-auditlog", name="django-auditlog",
use_scm_version={"version_scheme": "post-release"}, use_scm_version={"version_scheme": "post-release"},
setup_requires=["setuptools_scm"], setup_requires=["setuptools_scm"],
include_package_data=True,
packages=[ packages=[
"auditlog", "auditlog",
"auditlog.migrations", "auditlog.migrations",
"auditlog.management", "auditlog.management",
"auditlog.management.commands", "auditlog.management.commands",
"auditlog.templatetags",
], ],
url="https://github.com/jazzband/django-auditlog", url="https://github.com/jazzband/django-auditlog",
project_urls={ project_urls={