From a79b22020d099bb3d89ed117a68149dde4acf180 Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Jan 26 2024 09:43:15 +0000 Subject: Update to 1.34.23 Related-to: https://review.rdoproject.org/r/q/Ibcee37173e997b7f5ad08c689fff00eb1790c1e2 --- diff --git a/.python-boto3.metadata b/.python-boto3.metadata index 8fb1bf5..f30b170 100644 --- a/.python-boto3.metadata +++ b/.python-boto3.metadata @@ -1 +1 @@ -6479d71dfb0c2ab62a934f794b6cc9cf1ad282be SOURCES/boto3-1.28.84.tar.gz +71f4978acd1142a6fdac02f0dfa9faed74685d7d SOURCES/boto3-1.34.23.tar.gz diff --git a/SPECS/python-boto3.spec b/SPECS/python-boto3.spec index f522685..74d0fa5 100644 --- a/SPECS/python-boto3.spec +++ b/SPECS/python-boto3.spec @@ -1,52 +1,229 @@ -%global pypi_name boto3 - -Name: python-%{pypi_name} -Version: 1.28.84 -Release: 1%{?dist} +%bcond_without tests +# We would like to have a BuildRequires and weak runtime dependency on +# python3-awscrt, which enables additional functionality and tests, but it is +# ExcludeArch: s390x (https://bugzilla.redhat.com/show_bug.cgi?id=2180988) and +# we do not want to add architecture conditionals to this package, so we omit +# the dependency for now. +%bcond_with awscrt + +Name: python-boto3 +Version: 1.34.23 +Release: 2%{?dist} Summary: The AWS SDK for Python License: Apache-2.0 URL: https://github.com/boto/boto3 -Source0: %{pypi_source} +Source: %{url}/archive/%{version}/boto3-%{version}.tar.gz BuildArch: noarch -%description -Boto3 is the Amazon Web Services (AWS) Software Development -Kit (SDK) for Python, which allows Python developers to -write software that makes use of services like Amazon S3 -and Amazon EC2. - -%package -n python3-%{pypi_name} -Summary: The AWS SDK for Python BuildRequires: python3-devel -BuildRequires: python3-setuptools -%{?python_provide:%python_provide python3-%{pypi_name}} +BuildRequires: pyproject-rpm-macros + +# Save space by hardlinking duplicate JSON resource files +BuildRequires: hardlink + +%if %{with tests} +# Test dependencies are in requirements-dev.txt; most are Window-specific or +# are for coverage analysis and are undesired, so we list those we need +# manually: +BuildRequires: %{py3_dist pytest} +# Run tests in parallel. Tests are numerous and painfully slow, so this helps! +BuildRequires: %{py3_dist pytest-xdist} +%endif + +%global _description %{expand: +Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for +Python, which allows Python developers to write software that makes use of +services like Amazon S3 and Amazon EC2.} + +%description %{_description} -%description -n python3-%{pypi_name} -Boto3 is the Amazon Web Services (AWS) Software Development -Kit (SDK) for Python, which allows Python developers to -write software that makes use of services like Amazon S3 -and Amazon EC2. +%package -n python3-boto3 +Summary: %{summary} + +%if %{with awscrt} +# Optional dependency that enables additional functionality and additional +# tests, and is needed for the import-only “smoke test”: +# boto3-1.34.7/boto3/s3/transfer.py +# 185: # This feature requires awscrt>=0.19.18 +BuildRequires: %{py3_dist awscrt} >= 0.19.18 +Recommends: %{py3_dist awscrt} >= 0.19.18 +%endif + +%description -n python3-boto3 %{_description} %prep -%setup -q -n %{pypi_name}-%{version} -rm -rf %{pypi_name}.egg-info -# Remove online tests -rm -rf tests/integration +%setup -q -n boto3-%{version} +# Remove a bundled and pre-compiled/pre-minified JavaScript library. It would +# be used for the generated HTML documentation, which we do not package. +rm -v docs/source/_static/shortbreadv1.js + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install - -%files -n python3-%{pypi_name} +%pyproject_install +# This saves, as of this writing, roughly 300kB in duplicate JSON resource +# files. Note that rpmlint will complain about cross-directory hardlinks, but +# that these are not a problem because the contents of a directory owned by +# this package are guaranteed to be on a single filesystem. +hardlink -c '%{buildroot}%{python3_sitelib}/boto3' +%pyproject_save_files boto3 + +%check +%if %{with tests} +# Integration tests require network access and real AWS resources. +%pytest --ignore=tests/integration -v -n auto +%else +%pyproject_check_import %{?!with_awscrt:-e boto3.crt} +%endif + +%files -n python3-boto3 -f %{pyproject_files} +%doc CHANGELOG.rst %doc README.rst %license LICENSE -%{python3_sitelib}/%{pypi_name}/ -%{python3_sitelib}/%{pypi_name}-%{version}-*.egg-info/ %changelog +* Sun Jan 21 2024 Fedora Release Engineering - 1.34.23-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Gwyn Ciesla - 1.34.23-1 +- 1.34.23 + +* Thu Jan 18 2024 Gwyn Ciesla - 1.34.22-1 +- 1.34.22 + +* Wed Jan 17 2024 Gwyn Ciesla - 1.34.21-1 +- 1.34.21 + +* Tue Jan 16 2024 Gwyn Ciesla - 1.34.20-1 +- 1.34.20 + +* Tue Jan 16 2024 Gwyn Ciesla - 1.34.19-1 +- 1.34.19 + +* Thu Jan 11 2024 Gwyn Ciesla - 1.34.17-1 +- 1.34.17 + +* Wed Jan 10 2024 Gwyn Ciesla - 1.34.16-1 +- 1.34.16 + +* Tue Jan 09 2024 Gwyn Ciesla - 1.34.15-1 +- 1.34.15 + +* Fri Jan 05 2024 Gwyn Ciesla - 1.34.14-1 +- 1.34.14 + +* Fri Jan 05 2024 Gwyn Ciesla - 1.34.13-1 +- 1.34.13 + +* Wed Jan 03 2024 Gwyn Ciesla - 1.34.12-1 +- 1.34.12 + +* Wed Jan 03 2024 Benjamin A. Beasley - 1.34.11-2 +- Port to pyproject-rpm-macros +- Save space by hardlinking duplicate JSON resource files +- Various small packaging improvements + +* Tue Jan 02 2024 Gwyn Ciesla - 1.34.11-1 +- 1.34.11 + +* Wed Dec 27 2023 Gwyn Ciesla - 1.34.9-1 +- 1.34.9 + +* Tue Dec 26 2023 Gwyn Ciesla - 1.34.8-1 +- 1.34.8 + +* Fri Dec 22 2023 Gwyn Ciesla - 1.34.7-1 +- 1.34.7 + +* Thu Dec 21 2023 Gwyn Ciesla - 1.34.6-1 +- 1.34.6 + +* Wed Dec 20 2023 Gwyn Ciesla - 1.34.5-1 +- 1.34.5 + +* Tue Dec 19 2023 Gwyn Ciesla - 1.34.4-1 +- 1.34.4 + +* Tue Dec 19 2023 Gwyn Ciesla - 1.34.3-1 +- 1.34.3 + +* Fri Dec 15 2023 Gwyn Ciesla - 1.34.2-1 +- 1.34.2 + +* Thu Dec 14 2023 Gwyn Ciesla - 1.34.1-1 +- 1.34.1 + +* Thu Dec 14 2023 Gwyn Ciesla - 1.34.0-1 +- 1.34.0 + +* Tue Dec 12 2023 Gwyn Ciesla - 1.33.13-1 +- 1.33.13 + +* Tue Dec 12 2023 Gwyn Ciesla - 1.33.12-1 +- 1.33.12 + +* Fri Dec 08 2023 Gwyn Ciesla - 1.33.11-1 +- 1.33.11 + +* Thu Dec 07 2023 Gwyn Ciesla - 1.33.10-1 +- 1.33.10 + +* Wed Dec 06 2023 Gwyn Ciesla - 1.33.9-1 +- 1.33.9 + +* Tue Dec 05 2023 Gwyn Ciesla - 1.33.8-1 +- 1.33.8 + +* Mon Dec 04 2023 Gwyn Ciesla - 1.33.7-1 +- 1.33.7 + +* Fri Dec 01 2023 Gwyn Ciesla - 1.33.6-1 +- 1.33.6 + +* Thu Nov 30 2023 Gwyn Ciesla - 1.33.5-1 +- 1.33.5 + +* Thu Nov 30 2023 Gwyn Ciesla - 1.33.4-1 +- 1.33.4 + +* Wed Nov 29 2023 Gwyn Ciesla - 1.33.2-1 +- 1.33.2 + +* Tue Nov 28 2023 Gwyn Ciesla - 1.33.1-1 +- 1.33.1 + +* Mon Nov 27 2023 Gwyn Ciesla - 1.33.0-1 +- 1.33.0 + +* Mon Nov 27 2023 Gwyn Ciesla - 1.29.7-1 +- 1.29.7 + +* Tue Nov 21 2023 Gwyn Ciesla - 1.29.5-1 +- 1.29.5 + +* Tue Nov 21 2023 Gwyn Ciesla - 1.29.4-1 +- 1.29.4 + +* Mon Nov 20 2023 Gwyn Ciesla - 1.29.3-1 +- 1.29.3 + +* Thu Nov 16 2023 Gwyn Ciesla - 1.29.2-1 +- 1.29.2 + +* Wed Nov 15 2023 Gwyn Ciesla - 1.29.1-1 +- 1.29.1 + +* Tue Nov 14 2023 Gwyn Ciesla - 1.29.0-1 +- 1.29.0 + +* Mon Nov 13 2023 Gwyn Ciesla - 1.28.85-1 +- 1.28.85 + * Mon Nov 13 2023 Gwyn Ciesla - 1.28.84-1 - 1.28.84