pyproject-rpm-macros/tests/fake-requirements.spec
Tomas Hrnciar aac0af8401 Generate BuildRequires from file
%pyproject_buildrequires macro now accepts multiple file names to load
additional dependencies from them.

New option -N was added to disable automatical generation of requirements
in case package does not use build system. Option -N cannot be used in
combination with options -r, -e, -t, -x.

Co-authored-by: Miro Hrončok <miro@hroncok.cz>

Related: rhbz#1950291
2021-07-09 17:30:46 +02:00

28 lines
490 B
RPMSpec

Name: fake-requirements
Version: 0
Release: 0%{?dist}
Summary: ...
License: MIT
BuildRequires: pyproject-rpm-macros
%description
Fake spec file to test %%pyproject_buildrequires -N works as expected
%prep
cat > requirements.txt <<EOF
click!=5.0.0,>=4.1 # comment to increase test complexity
toml>=0.10.0
EOF
%generate_buildrequires
%pyproject_buildrequires requirements.txt -N
%check
pip show toml click
! pip show setuptools
! pip show wheel