## 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 %global extras mkdocs,trio,toml,yaml Name: python-cyclopts Version: 4.6.0 Release: %autorelease Summary: Intuitive, easy CLIs based on type hints. License: Apache-2.0 URL: https://github.com/BrianPugh/cyclopts # We are using the github tarball due to the lack of tests being present in the # pypi sources. Source: %{url}/archive/v%{version}/cyclopts-%{version}.tar.gz # The variable SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CYCLOPTS is behaving # strangely (i.e; it doesn't detect the version), so, this patch aims to # provide the property version directly to the pyproject.toml to avoid setting # up environment variables in the specfile. Patch: add-version-property-directly-to-pyproject.diff BuildArch: noarch BuildRequires: python3-devel # Test dependencies BuildRequires: python3-pytest BuildRequires: python3-sphinx BuildRequires: python3-syrupy BuildRequires: python3-pydantic BuildRequires: python3-pytest-mock # Fill in the actual package description to submit package to Fedora %global _description %{expand: Cyclopts is a modern, easy-to-use command-line interface (CLI) framework that aims to provide an intuitive & efficient developer experience.} %description %_description %package -n python3-cyclopts Summary: %{summary} %description -n python3-cyclopts %_description %pyproject_extras_subpkg -n python3-cyclopts %{extras} %prep %autosetup -p1 -n cyclopts-%{version} %generate_buildrequires %pyproject_buildrequires -x %{extras} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l cyclopts %check %pyproject_check_import %pytest --snapshot-update %files -n python3-cyclopts -f %{pyproject_files} %{_bindir}/cyclopts %changelog ## START: Generated by rpmautospec * Wed Feb 25 2026 Rodolfo Olivieri - 4.6.0-1 - Uncommitted changes * Mon Jan 26 2026 Rodolfo Olivieri - 4.5.1-1 - Initial commit for python-cyclopts ## END: Generated by rpmautospec