## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-anthropic Version: 0.77.0 Release: %autorelease # Fill in the actual package summary to submit package to Fedora Summary: The official Python library for the anthropic API # Check if the automatically generated License and its spelling is correct for Fedora # https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/ License: MIT URL: https://github.com/anthropics/anthropic-sdk-python Source: %{pypi_source anthropic} # While pytest-xdist is available to use, it makes the logs of %%pytest very # confusing to follow, so, it's better to just drop the CLI args that uses in # the pytest invocation. Patch1: remove-pytest-xdist-cli-args.diff BuildArch: noarch BuildRequires: python3-devel BuildRequires: tomcli # Test dependencies BuildRequires: python3-pytest BuildRequires: python3-pytest-asyncio BuildRequires: python3-dirty-equals BuildRequires: python3-respx BuildRequires: python3-inline-snapshot # Fill in the actual package description to submit package to Fedora %global _description %{expand: This is package 'anthropic' generated automatically by pyp2spec.} %description %_description %package -n python3-anthropic Summary: %{summary} %description -n python3-anthropic %_description # For official Fedora packages, review which extras should be actually packaged # See: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#Extras %pyproject_extras_subpkg -n python3-anthropic bedrock,vertex %prep %autosetup -p1 -n anthropic-%{version} # Relax authlib version tomcli set pyproject.toml arrays replace "build-system.requires" "hatchling.*" "hatchling>=1.26.3,<=1.30.0" %generate_buildrequires # Keep only those extras which you actually want to package or use during tests %pyproject_buildrequires -x bedrock,vertex %build %pyproject_wheel %install %pyproject_install # Add top-level Python module names here as arguments, you can use globs %pyproject_save_files anthropic %check %pyproject_check_import %pytest %files -n python3-anthropic -f %{pyproject_files} %changelog ## START: Generated by rpmautospec * Mon Feb 02 2026 John Doe - 0.77.0-1 - Uncommitted changes ## END: Generated by rpmautospec