diff --git a/django_debug_toolbar-6.0.0.tar.gz b/django_debug_toolbar-6.0.0.tar.gz deleted file mode 100644 index 632b0e4b672f49086e5349e154736be644f76952..0000000000000000000000000000000000000000 Binary files a/django_debug_toolbar-6.0.0.tar.gz and /dev/null differ diff --git a/django_debug_toolbar-6.1.0.tar.gz b/django_debug_toolbar-6.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a8cc6d672aeb3d6a71e8b38cb8ad98fc7a5f0fbb Binary files /dev/null and b/django_debug_toolbar-6.1.0.tar.gz differ diff --git a/python-django-debug-toolbar.spec b/python-django-debug-toolbar.spec index e4c2c466f07bbedfddec87469fa29cd2bd391231..bd30dc0bc98b96102c6e5dacce5e7ce71f85a242 100644 --- a/python-django-debug-toolbar.spec +++ b/python-django-debug-toolbar.spec @@ -1,13 +1,21 @@ %global _empty_manifest_terminate_build 0 +%undefine _python_dist_allow_version_zero Name: python-django-debug-toolbar -Version: 6.0.0 +Version: 6.1.0 Release: 1 Summary: A configurable set of panels that display various debug information about the current request/response. License: BSD URL: https://github.com/jazzband/django-debug-toolbar -Source0: https://files.pythonhosted.org/packages/c5/d5/5fc90234532088aeec5faa48d5b09951cc7eab6626030ed427d3bd8cd9bc/django_debug_toolbar-6.0.0.tar.gz +Source0: https://files.pythonhosted.org/packages/source/d/django_debug_toolbar/django_debug_toolbar-%{version}.tar.gz BuildArch: noarch +BuildRequires: python3-build +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-flit +BuildRequires: python3-hatchling + %description The Django Debug Toolbar is a configurable of panels that display various debug information about the current request/response and when clicked, display @@ -16,11 +24,6 @@ more details about the panel's content. %package -n python3-django-debug-toolbar Summary: A configurable set of panels that display various debug information about the current request/response. Provides: python-django-debug-toolbar = %{version}-%{release} -BuildRequires: python3-devel -BuildRequires: python3-pip -BuildRequires: python3-wheel -BuildRequires: python3-flit -BuildRequires: python3-hatchling Requires: python3-django Requires: python3-sqlparse %description -n python3-django-debug-toolbar @@ -39,10 +42,28 @@ more details about the panel's content. %prep %autosetup -n django_debug_toolbar-%{version} +# Fix setuptools_scm version issue +if [ -f pyproject.toml ]; then + sed -i '/^version *=/d' pyproject.toml + sed -i '/^\[project\]/a version = "%{version}"' pyproject.toml + sed -i '/dynamic *= *\[.*version.*\]/d' pyproject.toml + if grep -q '^\[tool\.setuptools_scm\]' pyproject.toml; then + sed -i '/^\[tool\.setuptools_scm\]/,/^\[/ {/^write_to *=/d}' pyproject.toml + sed -i '/^\[tool\.setuptools_scm\]/a fallback_version = "%{version}"' pyproject.toml + fi +fi + %build +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" %pyproject_build %install +export PYTHONDONTWRITEBYTECODE=1 + +# Clean __pycache__ directories and .pyc/.pyo files +find %{buildroot} -name '*.py[co]' -delete +find %{buildroot} -type d -name '__pycache__' -exec rm -rf {} + 2>/dev/null || true +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" %pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi @@ -56,6 +77,9 @@ if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi %{_docdir}/* %changelog +* Thu Nov 27 2025 zhangzeyang0718 - 6.1.0-1 +- Update package to version 6.1.0 + * Wed Aug 13 2025 lifeifei - 6.0.0-1 - update package to version 6.0.0 * Added the setting TOOLBAR_STORE_CLASS to configure the request storage mechanism.