From 8194da148446b80cbed0dbea53004d7339e0e3b3 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Jun 15 2020 11:00:04 +0000 Subject: Fixup: Make the bunled check part of %check even --without tests Also, run it first, it is orders of magnitude faster. --- diff --git a/python-setuptools.spec b/python-setuptools.spec index 3be98a2..c74024f 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -156,20 +156,20 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir} %endif -%if %{with tests} %check -# --ignore=pavement.py: -# pavement.py is only used by upstream to do releases and vendoring, we don't ship it -PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(pwd) pytest-%{python3_version} \ - --ignore=pavement.py -%endif # with tests - # Assert our bundling info is correct # NB: this is not bash, so <(sort ...) doesn't work sort %{bundled_file} > upstream_info echo -ne '%{bundled_file_expected}' | sort > downstream_info diff -Bbu upstream_info downstream_info +%if %{with tests} +# --ignore=pavement.py: +# pavement.py is only used by upstream to do releases and vendoring, we don't ship it +PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(pwd) pytest-%{python3_version} \ + --ignore=pavement.py +%endif # with tests + %files -n python3-setuptools %license LICENSE