diff --git a/-2025.10.tar.gz b/-2025.10.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/python-pyinstaller-hooks-contrib.spec b/python-pyinstaller-hooks-contrib.spec index 932530cf436fbbee4567149c01ef8fc63d48eecb..78e168d7e550c74a10254cfa65cd5c1bc37b1fd0 100644 --- a/python-pyinstaller-hooks-contrib.spec +++ b/python-pyinstaller-hooks-contrib.spec @@ -1,4 +1,6 @@ %bcond_with test +%global _empty_manifest_terminate_build 0 +%undefine _python_dist_allow_version_zero Name: python-pyinstaller-hooks-contrib Version: 2025.10 Release: 1 @@ -20,6 +22,9 @@ BuildRequires: python3-matplotlib BuildArch: noarch +BuildRequires: python3-build +BuildRequires: python3-hatchling + %description Community maintained hooks for PyInstaller @@ -32,10 +37,28 @@ Community maintained hooks for PyInstaller %prep %autosetup -p1 -n pyinstaller-hooks-contrib-%{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 %check @@ -50,6 +73,9 @@ pytest %{python3_sitelib}/* %changelog +* Thu Nov 27 2025 zhangzeyang0718 - 2025.10-1 +- Update package to version 2025.10 + * Mon Nov 24 2025 wanggang - 2025.10-1 - Update package to version 2025.10 - Add hook for dateparser to collect the data file that was introduced in dateparser v.1.2.2. diff --git a/v2025.10.tar.gz b/v2025.10.tar.gz deleted file mode 100644 index 5a2207145ab5e4a5364cc559e262d52c34bae7bc..0000000000000000000000000000000000000000 Binary files a/v2025.10.tar.gz and /dev/null differ