From d1b597fd31398413cfe581a0cd0f630248c3a0df Mon Sep 17 00:00:00 2001 From: Takayuki SHIMIZUKAWA Date: Fri, 13 Jun 2025 23:57:35 +0000 Subject: [PATCH] fix testing --- django_redshift_backend/base.py | 2 +- pyproject.toml | 4 ++-- tox.ini | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/django_redshift_backend/base.py b/django_redshift_backend/base.py index 8890e1a..95e6ea6 100644 --- a/django_redshift_backend/base.py +++ b/django_redshift_backend/base.py @@ -1065,7 +1065,7 @@ def quoted_column_name(field_name): # with migrations, so we validate here instead. if len(distkey.fields) != 1: raise ValueError( - "DistKey on model {} must have exactly " "one field.".format( + "DistKey on model {} must have exactly one field.".format( model.__name__ ) ) diff --git a/pyproject.toml b/pyproject.toml index 3906542..fbfb23a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,8 @@ name = "django-redshift-backend" dynamic = ["version"] description = "Redshift database backend for Django" readme = "README.rst" -license = {file = "LICENSE"} +license = "Apache-2.0" +license-files = ["LICENSE"] requires-python = ">=3.9, <4" authors = [ { name = "shimizukawa", email = "shimizukawa@gmail.com" }, @@ -20,7 +21,6 @@ classifiers = [ "Framework :: Django :: 5.0", "Framework :: Django :: 5.1", "Intended Audience :: Developers", - "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.9", diff --git a/tox.ini b/tox.ini index cdd811d..ca32338 100644 --- a/tox.ini +++ b/tox.ini @@ -64,7 +64,7 @@ commands= [testenv:check] deps = uv commands = - uv build + uv build --sdist --wheel uvx twine check dist/* [flake8]