]> git.pld-linux.org Git - packages/python-pygit2.git/commitdiff
require pytest only when building with tests
authorJan Palus <atler@pld-linux.org>
Thu, 27 May 2021 23:02:18 +0000 (01:02 +0200)
committerJan Palus <atler@pld-linux.org>
Thu, 27 May 2021 23:02:18 +0000 (01:02 +0200)
python-pygit2.spec

index cb3d47805809beb1cd02cb8938252161600c3061..f8c2e68d2e5e32ed907f81630654df96a7e13d22 100644 (file)
@@ -23,7 +23,7 @@ BuildRequires:        python3-cffi >= 1.8.1
 BuildRequires: python3-devel >= 1:3.2
 BuildRequires: python3-modules >= 1:3.2
 BuildRequires: python3-setuptools
-BuildRequires: python3-pytest
+%{?with_tests:BuildRequires:   python3-pytest}
 Requires:      libgit2 >= 0.24.0
 Requires:      python-cffi
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
This page took 0.162599 seconds and 4 git commands to generate.