From 553b70251721d5683570c898e578912ca70feb52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 4 Oct 2022 02:02:19 +0200 Subject: [PATCH] Remove manual req. of python3dist(toml), package the [toml] extra instead On Python 3.11+ python3dist(toml) is not needed. The toml extra only exists for its provides there. With older Python (e.g. on Fedora 36), it brings python3.10dist(toml) and hence it is Recommended to preserve current default behavior. The Recommends can be safely removed when this is no longer being ever merged into dist-git for older Fedoras. But it can also stay forever. --- micropipenv.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/micropipenv.spec b/micropipenv.spec index 1f59f57..7bbc438 100644 --- a/micropipenv.spec +++ b/micropipenv.spec @@ -1,6 +1,6 @@ Name: micropipenv Version: 1.4.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A simple wrapper around pip to support Pipenv and Poetry files License: LGPLv3+ @@ -12,19 +12,21 @@ BuildRequires: python3-devel %{?python_provide:%python_provide python3-%{name}} -Requires: python3dist(toml) +Recommends: micropipenv+toml %description A lightweight wrapper for pip to support Pipenv and Poetry lock files or converting them to pip-tools compatible output. +%pyproject_extras_subpkg -n %{name} toml + %prep %autosetup # Remove shebang line from the module sed -i '1{\@^#!/usr/bin/env python@d}' %{name}.py %generate_buildrequires -%pyproject_buildrequires -r -t +%pyproject_buildrequires -r -t -x toml %build %pyproject_wheel @@ -42,6 +44,10 @@ sed -i '1{\@^#!/usr/bin/env python@d}' %{name}.py %{_bindir}/micropipenv %changelog +* Mon Oct 03 2022 Miro Hrončok - 1.4.2-2 +- Remove manual requirement of python3dist(toml), + package and Recommend the [toml] extra instead + * Tue Aug 02 2022 Lumír Balhar - 1.4.2-1 - Update to 1.4.2 Resolves: rhbz#2110900