# To break circular dependency on poetry, when bootstrapping # we don't BuildRequire runtime deps and we don't run tests. %bcond bootstrap 0 Name: python-poetry-plugin-export Version: 1.1.2 Release: 1%{?dist} Summary: Poetry plugin to export the dependencies to various formats License: MIT URL: https://python-poetry.org/ Source: %{pypi_source poetry-plugin-export} BuildArch: noarch BuildRequires: python3-devel # Test dependencies are taken from [tool.poetry.dev-dependencies] # in pyproject.toml file. poetry-plugin-export lists test dependencies # in dependency groups instead of extras, since they are not extras # pyproject-rpm-macros can't recognize them and we list them manually. # They also mix in pre-commit and mypy and we don't need them. %if %{without bootstrap} BuildRequires: python3-pytest BuildRequires: python3-pytest-mock %endif %global _description %{expand: This package is a plugin that allows the export of locked packages to various formats. This plugin provides the same features as the existing export command of Poetry which it will eventually replace. } %description %_description %package -n python3-poetry-plugin-export Summary: %{summary} %description -n python3-poetry-plugin-export %_description %prep %autosetup -p1 -n poetry-plugin-export-%{version} %generate_buildrequires %pyproject_buildrequires %{?with_bootstrap: -R} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files poetry_plugin_export %if %{without bootstrap} %check %pytest %endif %files -n python3-poetry-plugin-export -f %{pyproject_files} %doc README.* %license LICENSE %changelog * Tue Nov 22 2022 Tomáš Hrnčiar - 1.1.2-1 - Update to 1.1.2 - Fixes: rhbz#2140314 * Mon Oct 10 2022 Tomáš Hrnčiar - 1.1.1-2 - Disable bootstrap * Tue Oct 4 2022 Tomáš Hrnčiar - 1.1.1-1 Initial package