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.
This commit is contained in:
parent
dd73dac0f4
commit
553b702517
@ -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 <mhroncok@redhat.com> - 1.4.2-2
|
||||
- Remove manual requirement of python3dist(toml),
|
||||
package and Recommend the [toml] extra instead
|
||||
|
||||
* Tue Aug 02 2022 Lumír Balhar <lbalhar@redhat.com> - 1.4.2-1
|
||||
- Update to 1.4.2
|
||||
Resolves: rhbz#2110900
|
||||
|
Loading…
Reference in New Issue
Block a user