diff --git a/-7.5.2.tar.gz b/-7.5.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/python-pip-tools.spec b/python-pip-tools.spec index f008d2d7a5d867aa48c175365e35cda4e7e75c3c..e225cc7ba8c8a02f130b79637f5dc0b27e56f16c 100644 --- a/python-pip-tools.spec +++ b/python-pip-tools.spec @@ -1,3 +1,5 @@ +%global _empty_manifest_terminate_build 0 +%undefine _python_dist_allow_version_zero Name: python-pip-tools Version: 7.5.2 Release: 1 @@ -5,9 +7,17 @@ Summary: pip-tools keeps your pinned dependencies fresh. License: MIT URL: https://github.com/jazzband/pip-tools/ -Source0: https://github.com/jazzband/pip-tools/archive/refs/tags/v%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/-//-%{version}.tar.gz BuildArch: noarch +BuildRequires: python3-build +BuildRequires: python3-hatchling +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pip +BuildRequires: python3-wheel + %description %{summary} @@ -16,11 +26,6 @@ Summary: %{summary} Provides: python-pip-tools # Base build requires -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-setuptools_scm -BuildRequires: python3-pip -BuildRequires: python3-wheel %description -n python3-pip-tools %{summary} @@ -28,10 +33,28 @@ BuildRequires: python3-wheel %prep %autosetup -n pip-tools-%{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 %files -n python3-pip-tools @@ -44,6 +67,9 @@ BuildRequires: python3-wheel %{_bindir}/pip-sync %changelog +* Mon Dec 01 2025 zhangzeyang0718 - 7.5.2-1 +- Update package to version 7.5.2 + * Mon Nov 24 2025 lixiaoyong - 7.5.2-1 - Update package to version 7.5.2 * Fixed pip-compile to handle relative path includes which are not subpaths of the current working directory diff --git a/v7.5.2.tar.gz b/v7.5.2.tar.gz deleted file mode 100644 index ab7f604b11fd4a92ea1939e8996de34511e7c645..0000000000000000000000000000000000000000 Binary files a/v7.5.2.tar.gz and /dev/null differ