diff --git a/python-setuptools.spec b/python-setuptools.spec index f57b7a4..7f4eeb2 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -124,8 +124,10 @@ find ./ -type f -name \*.py -exec sed -i \ %check %if %{with test} +# the 4 skipped test rely on the bundled packages but they are +# not available on virtualenv; this is expected behaviour export LANG=en_US.UTF-8 -%pytest +%pytest -k 'not (test_clean_env_install or test_pip_upgrade_from_source or test_test_command_install_requirements or test_no_missing_dependencies)' %endif %if !%{with test} diff --git a/sort-for-reproducibility.patch b/sort-for-reproducibility.patch index 131279c..a8d6872 100644 --- a/sort-for-reproducibility.patch +++ b/sort-for-reproducibility.patch @@ -37,3 +37,17 @@ Index: setuptools-41.4.0/setuptools/dist.py write_field('Provides-Extra', extra) +Index: setuptools-41.4.0/setuptools/tests/test_egg_info.py +=================================================================== +--- setuptools-41.4.0.orig/setuptools/tests/test_egg_info.py ++++ setuptools-41.4.0/setuptools/tests/test_egg_info.py +@@ -291,8 +291,8 @@ class TestEggInfo: + wheel>=0.5 + pytest + +- wheel>=0.5 + pytest ++ wheel>=0.5 + ''', + + '''