diff --git a/python-s3transfer.spec b/python-s3transfer.spec index e34782475070f3fe3190e70fba19f96f700d4381..b1a884cd8996aaa4893ddb2c539e730b01779599 100644 --- a/python-s3transfer.spec +++ b/python-s3transfer.spec @@ -1,21 +1,27 @@ %global _empty_manifest_terminate_build 0 +%undefine _python_dist_allow_version_zero Name: python-s3transfer -Version: 0.15.0 +Version: 0.16.0 Release: 1 Summary: An Amazon S3 Transfer Manager License: Apache-2.0 URL: https://github.com/boto/s3transfer -Source0: https://files.pythonhosted.org/packages/ca/bb/940d6af975948c1cc18f44545ffb219d3c35d78ec972b42ae229e8e37e08/s3transfer-0.15.0.tar.gz +Source0: https://files.pythonhosted.org/packages/source/s/s3transfer/s3transfer-%{version}.tar.gz BuildArch: noarch +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-build +BuildRequires: python3-hatchling +BuildRequires: python3-devel +BuildRequires: python3-setuptools + %description S3transfer is a Python library for managing Amazon S3 transfers. %package -n python3-s3transfer Summary: An Amazon S3 Transfer Manager Provides: python-s3transfer = %{version}-%{release} -BuildRequires: python3-devel -BuildRequires: python3-setuptools Requires: python3-botocore %description -n python3-s3transfer S3transfer is a Python library for managing Amazon S3 transfers. @@ -29,11 +35,29 @@ S3transfer is a Python library for managing Amazon S3 transfers. %prep %autosetup -n s3transfer-%{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 -%py3_build +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" +%pyproject_build %install -%py3_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 if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -70,6 +94,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Mon Dec 01 2025 zhangzeyang0718 - 0.16.0-1 +- Update package to version 0.16.0 + * Fri Nov 21 2025 wanggang - 0.15.0-1 - Update package to version 0.15.0 - feature:CopyPartTask: Validate ETag of stored object during multipart copies diff --git a/s3transfer-0.15.0.tar.gz b/s3transfer-0.15.0.tar.gz deleted file mode 100644 index f7f1d37c6deba35ad642bbb068d8c43212d071a4..0000000000000000000000000000000000000000 Binary files a/s3transfer-0.15.0.tar.gz and /dev/null differ diff --git a/s3transfer-0.16.0.tar.gz b/s3transfer-0.16.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0ef20d38936d2a8a388ad37c38fcd38f044cf66a Binary files /dev/null and b/s3transfer-0.16.0.tar.gz differ