File python-audible.spec of Package failed_python-audible
Name: python-audible
Version: 0.10.0
Release: 1.1
Summary: Python helper for Audible interactions
License: MIT
URL: https://example.org/audible
Source0: https://files.pythonhosted.org/packages/source/a/audible/audible-0.10.0.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-setuptools
BuildRequires: python3-poetry-core
%description
audible - small helper library for Audible interactions
%prep
%setup -q -n audible-0.10.0
# Relax strict python version bound in pyproject.toml to allow building with Python 3.13
# (The upstream pyproject may declare requires-python = ">=3.10,<3.13" which prevents
# the build system's python3.13 runner from installing the generated wheel.
# We patch it here to permit 3.13 as well by allowing <3.14.)
if [ -f pyproject.toml ]; then
sed -E -i 's/(requires-python[[:space:]]*=[[:space:]]*\")[^\"]*(\")/\1>=3.10,<3.14\2/' pyproject.toml || true
fi
%build
# Build wheels for supported Python versions using the standard macro which
# will drive the multi-python build logic in the build environment.
%pyproject_wheel
%install
%pyproject_install
%files
%doc README.md
%license LICENSE
%{python3_sitearch}/audible
%{python3_sitelib}/audible
%changelog
* Fri Aug 08 2025 Packager <packager@example.org> - 0.10.0-1.1
- Relaxed requires-python upper bound during build to allow building on Python 3.13