## 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: fastapi-cli Version: 0.0.21 Release: %autorelease Summary: Run and manage FastAPI apps from the command line with FastAPI CLI License: MIT URL: https://github.com/fastapi/fastapi-cli Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz # Downstream-only: run test_script without coverage # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters Patch: 0001-Downstream-only-run-test_script-without-coverage.patch BuildSystem: pyproject BuildOption(generate_buildrequires): -x standard,standard-no-fastapi-cloud-cli,new BuildOption(install): -l fastapi_cli BuildArch: noarch %py_provides python3-fastapi-cli %if %{defined fc44} || %{defined fc45} || %{defined fc46} # Removed in F44 after upstream deprecated fastapi-slim Obsoletes: fastapi-cli-slim < 0.0.21-1 %endif # Since the “tests” dependency group contains overly-strict version bounds and # many unwanted linting/coverage/typechecking/formatting dependencies # (https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters), # we just list the few test dependencies we *do* want manually rather than # trying to patch pyproject.toml. We preserve upstream’s lower bounds but # remove upper bounds, as we must try to make do with what we have. BuildRequires: %{py3_dist pytest} >= 4.4 BuildRequires: %{py3_dist fastapi} >= 0.128 BuildRequires: %{py3_dist uvicorn} >= 0.39 %global common_description %{expand: FastAPI CLI is a command line program fastapi that you can use to serve your FastAPI app, manage your FastAPI project, and more.} %description %{common_description} %if %{defined fc44} || %{defined fc45} || %{defined fc46} # We don’t use “%%pyproject_extras_subpkg -n fastapi-cli …” because we want # to Obsolete the corresponding fastapi-cli-kslim extras. %package -n fastapi-cli+standard Summary: Metapackage for fastapi-cli: standard extras Requires: fastapi-cli = %{version}-%{release} Obsoletes: fastapi-cli-slim+standard < 0.0.21-1 %description -n fastapi-cli+standard This is a metapackage bringing in standard extras requires for fastapi-cli. It makes sure the dependencies are installed. %files -n fastapi-cli+standard %ghost %dir %{python3_sitelib}/*.dist-info %package -n fastapi-cli+standard-no-fastapi-cloud-cli Summary: Metapackage for fastapi-cli: standard-no-fastapi-cloud-cli extras Requires: fastapi-cli = %{version}-%{release} Obsoletes: fastapi-cli-slim+standard-no-fastapi-cloud-cli < 0.0.21-1 %description -n fastapi-cli+standard-no-fastapi-cloud-cli This is a metapackage bringing in standard-no-fastapi-cloud-cli extras requires for fastapi-cli. It makes sure the dependencies are installed. %files -n fastapi-cli+standard-no-fastapi-cloud-cli %ghost %dir %{python3_sitelib}/*.dist-info %package -n fastapi-cli+new Summary: Metapackage for fastapi-cli: new extras Requires: fastapi-cli = %{version}-%{release} Obsoletes: fastapi-cli-slim+new < 0.0.21-1 %description -n fastapi-cli+new This is a metapackage bringing in new extras requires for fastapi-cli. It makes sure the dependencies are installed. %files -n fastapi-cli+new %ghost %dir %{python3_sitelib}/*.dist-info %else %pyproject_extras_subpkg -n fastapi-cli standard standard-no-fastapi-cloud-cli new %endif %check -a %pytest -v %files -f %{pyproject_files} %doc CITATION.cff %doc README.md %doc release-notes.md %changelog ## START: Generated by rpmautospec * Thu Feb 12 2026 Benjamin A. Beasley - 0.0.21-1 - Update to 0.0.21 (close RHBZ#2439011) * Wed Jan 21 2026 Benjamin A. Beasley - 0.0.20-3 - Package “new” extra; fastapi-new is now packaged * Fri Jan 16 2026 Fedora Release Engineering - 0.0.20-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Thu Dec 25 2025 Benjamin A. Beasley - 0.0.20-1 - Update to 0.0.20 (close RHBZ#2424345) * Mon Nov 10 2025 Packit - 0.0.16-1 - Update to 0.0.16 upstream release - Resolves: rhbz#2413804 * Mon Oct 20 2025 Benjamin A. Beasley - 0.0.14-1 - Update to 0.0.14 (close RHBZ#2405109) * Sat Sep 20 2025 Packit - 0.0.13-1 - Update to 0.0.13 upstream release - Resolves: rhbz#2397093 * Fri Sep 19 2025 Python Maint - 0.0.12-2 - Rebuilt for Python 3.14.0rc3 bytecode * Wed Sep 17 2025 Packit - 0.0.12-1 - Update to 0.0.12 upstream release - Resolves: rhbz#2396202 * Tue Sep 09 2025 Packit - 0.0.11-1 - Update to 0.0.11 upstream release - Resolves: rhbz#2394078 * Mon Sep 08 2025 Benjamin A. Beasley - 0.0.10-2 - No longer patch out fastapi-cloud-cli dependencies * Sun Aug 31 2025 Packit - 0.0.10-1 - Update to 0.0.10 upstream release - Resolves: rhbz#2392229 * Sun Aug 31 2025 Benjamin A. Beasley - 0.0.9-1 - Update to 0.0.9 - The fastapi command is now provided by python3-fastapi-slim. * Fri Aug 15 2025 Python Maint - 0.0.8-3 - Rebuilt for Python 3.14.0rc2 bytecode * Wed Jul 23 2025 Fedora Release Engineering - 0.0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Fri Jul 11 2025 Packit - 0.0.8-1 - Update to 0.0.8 upstream release - Resolves: rhbz#2376869 * Sun Jul 06 2025 Benjamin A. Beasley - 0.0.7-4 - Rebuilt for Python 3.14 (close RHBZ#2371713) * Thu Jan 16 2025 Fedora Release Engineering - 0.0.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sun Dec 15 2024 Packit - 0.0.7-1 - Update to 0.0.7 upstream release - Resolves: rhbz#2332485 * Wed Dec 04 2024 Packit - 0.0.6-1 - Update to 0.0.6 upstream release - Resolves: rhbz#2330376 * Fri Aug 02 2024 Packit - 0.0.5-1 - Update to 0.0.5 upstream release - Resolves: rhbz#2302455 * Fri Aug 02 2024 Benjamin A. Beasley - 0.0.4-3 - Update URLs for new fastapi GitHub organization * Fri Aug 02 2024 Benjamin A. Beasley - 0.0.4-2 - Add standard extra metapackage to main fastapi-cli package, not only slim * Thu Jul 18 2024 Benjamin A. Beasley - 0.0.4-1 - Initial package (close RHBZ#2279777) ## END: Generated by rpmautospec