## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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-cloud-cli Version: 0.15.0 Release: %autorelease Summary: Deploy and manage FastAPI Cloud apps from the command line License: MIT URL: https://github.com/fastapilabs/fastapi-cloud-cli # The GitHub archive contains a few useful files that the PyPI sdist does not, # such as the release notes. Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz # Written for Fedora in groff_man(7) format based on --help output Source100: fastapi-cloud.1 Source110: fastapi-cloud-deploy.1 Source120: fastapi-cloud-link.1 Source130: fastapi-cloud-login.1 Source140: fastapi-cloud-logs.1 Source150: fastapi-cloud-logout.1 Source160: fastapi-cloud-whoami.1 Source170: fastapi-cloud-unlink.1 Source180: fastapi-cloud-setup-ci.1 Source190: fastapi-cloud-env.1 Source191: fastapi-cloud-env-list.1 Source192: fastapi-cloud-env-set.1 Source193: fastapi-cloud-env-delete.1 # Downstream-only; patch out coverage from script test # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters Patch: 0001-Downstream-only-patch-out-coverage-from-script-test.patch BuildSystem: pyproject BuildOption(install): -L fastapi_cloud_cli BuildOption(generate_buildrequires): -x standard BuildArch: noarch %py_provides python3-fastapi-cloud-cli # Since requirements-tests.txt contains overly-strict version bounds and # 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 the requirements file. 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} >= 7 BuildRequires: %{py3_dist respx} >= 0.22 BuildRequires: %{py3_dist time-machine} >= 2.15 # The “fastapi cloud setup-ci” command uses gh (the GitHub CLI) when available, # falling back to git (git-core suffices) where it can. One of these is # required both for testing the command and for using it at runtime. # # With gh, according to the source code: # - getting the remote origin URL respects “gh repo set-default” # - getting the default branch is possible # - GitHub secrets can be set (otherwise they would have to be set manually) # Since gh gives more complete functionality, we choose to depend on it # unconditionally. This could be (at runtime) a weak dependency, but if someone # is trying to minimize a FastAPI installation, then they will probably try to # take measures to avoid pulling in fastapi-cloud-cli altogether. We therefore # make it a hard dependency, erring on the side of delivering full # functionality. BuildRequires: gh Requires: gh %description %{summary}. %pyproject_extras_subpkg -n fastapi-cloud-cli standard %install -a install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 \ '%{SOURCE100}' '%{SOURCE110}' '%{SOURCE120}' '%{SOURCE130}' \ '%{SOURCE140}' '%{SOURCE150}' '%{SOURCE160}' '%{SOURCE170}' \ '%{SOURCE180}' '%{SOURCE190}' '%{SOURCE191}' '%{SOURCE192}' \ '%{SOURCE193}' %check -a %pytest -v %files -f %{pyproject_files} %license LICENSE %doc README.md %doc release-notes.md # This package does not provide its own executable entry point; instead, it # adds a “fastapi cloud” command to the fastapi CLI (entry point in # python3-fastapi; separate package fastapi-cli also relevant). These man pages # integrate with those in python3-fastapi. %{_mandir}/man1/fastapi-cloud.1* %{_mandir}/man1/fastapi-cloud-*.1* %changelog ## START: Generated by rpmautospec * Thu Mar 12 2026 Benjamin A. Beasley - 0.15.0-2 - Remove unnecessary macro indirection in the spec file * Thu Mar 12 2026 Benjamin A. Beasley - 0.15.0-1 - Update to 0.15.0 (close RHBZ#2446843) * Mon Mar 09 2026 Benjamin A. Beasley - 0.14.1-1 - Update to 0.14.1 (close RHBZ#2445558) * Wed Feb 25 2026 Benjamin A. Beasley - 0.14.0-1 - Update to 0.14.0 (close RHBZ#2442634) * Wed Feb 18 2026 Benjamin A. Beasley - 0.13.0-1 - Update to 0.13.0 (close RHBZ#2440327) * Sat Feb 14 2026 Benjamin A. Beasley - 0.12.0-1 - Update to 0.12.0 (close RHBZ#2439788) * Fri Jan 16 2026 Benjamin A. Beasley - 0.11.0-1 - Update to 0.11.0 (close RHBZ#2429887) * Wed Jan 14 2026 Benjamin A. Beasley - 0.10.1-1 - Update to 0.10.1 (close RHBZ#2429351) * Fri Jan 09 2026 Benjamin A. Beasley - 0.9.0-1 - Update to 0.9.0 (close RHBZ#2428311) * Thu Dec 25 2025 Benjamin A. Beasley - 0.8.0-1 - Update to 0.8.0 (close RHBZ#2424596) * Thu Dec 25 2025 Benjamin A. Beasley - 0.7.0-3 - Supply man pages * Thu Dec 25 2025 Benjamin A. Beasley - 0.7.0-2 - Do an import-only smoke test before running the test suite * Wed Dec 17 2025 Benjamin A. Beasley - 0.7.0-1 - Update to 0.7.0 (close RHBZ#2422654) * Fri Dec 05 2025 Benjamin A. Beasley - 0.6.0-1 - Update to 0.6.0 (close RHBZ#2419181) * Tue Nov 25 2025 Benjamin A. Beasley - 0.5.2-1 - Update to 0.5.2 (close RHBZ#2416994) * Fri Nov 21 2025 Benjamin A. Beasley - 0.5.1-1 - Update to 0.5.1 (close RHBZ#2416169) * Thu Nov 20 2025 Benjamin A. Beasley - 0.5.0-1 - Update to 0.5.0 (close RHBZ#2416082) * Thu Nov 20 2025 Benjamin A. Beasley - 0.4.0-1 - Update to 0.4.0 (close RHBZ#2415835) * Thu Oct 09 2025 Benjamin A. Beasley - 0.3.1-1 - Update to 0.3.1 (close RHBZ#2402725) * Thu Oct 02 2025 Benjamin A. Beasley - 0.3.0-1 - Update to 0.3.0 (close RHBZ#2401022) * Thu Sep 25 2025 Benjamin A. Beasley - 0.2.1-1 - Update to 0.2.1 (close RHBZ#2398161) * Fri Sep 19 2025 Python Maint - 0.2.0-3 - Rebuilt for Python 3.14.0rc3 bytecode * Thu Sep 18 2025 Benjamin A. Beasley - 0.2.0-2 - No longer need to skip any tests * Thu Sep 18 2025 Benjamin A. Beasley - 0.2.0-1 - Update to 0.2.0 (close RHBZ#2396487) * Sun Sep 07 2025 Benjamin A. Beasley - 0.1.5-1 - Initial package (close RHBZ#2379742) ## END: Generated by rpmautospec