diff --git a/python-pythonfinder.changes b/python-pythonfinder.changes index c9358c8..06c31cd 100644 --- a/python-pythonfinder.changes +++ b/python-pythonfinder.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 13 12:29:56 UTC 2019 - John Vandenberg + +- Activated test suite +- Removed unnecessary vendored pep514tools from runtime package + ------------------------------------------------------------------- Thu Mar 7 04:01:37 UTC 2019 - John Vandenberg diff --git a/python-pythonfinder.spec b/python-pythonfinder.spec index aed603c..d23af0e 100644 --- a/python-pythonfinder.spec +++ b/python-pythonfinder.spec @@ -24,7 +24,7 @@ Summary: A cross-platform tool to help locate python on any system License: MIT Group: Development/Languages/Python URL: https://github.com/sarugaku/pythonfinder -Source: https://files.pythonhosted.org/packages/source/p/pythonfinder/pythonfinder-%{version}.tar.gz +Source: https://github.com/sarugaku/pythonfinder/archive/%{version}.tar.gz#/pythonfinder-%{version}.tar.gz # https://github.com/sarugaku/pythonfinder/issues/62 Patch0: setup-ascii.patch BuildRequires: %{python_module setuptools >= 36.2.2} @@ -44,6 +44,7 @@ BuildRequires: %{python_module cached-property} BuildRequires: %{python_module click} BuildRequires: %{python_module crayons} BuildRequires: %{python_module packaging} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module six} BuildRequires: %{python_module vistir >= 0.2.5} # /SECTION @@ -59,6 +60,14 @@ A cross-platform python discovery tool to help locate python on any system. # https://github.com/sarugaku/pythonfinder/pull/63 sed -i '/pathlib2/d;/lru_cache/d' setup.cfg +rm -r tasks + +sed -i '/addopts/d' setup.cfg + +# pep514tools is a Windows only dependency which is loosely coupled +# https://travis-ci.org/jayvdb/pythonfinder/builds/505169805 +rm -rf src/pythonfinder/_vendor/pep514tools + %build %python_build @@ -66,6 +75,13 @@ sed -i '/pathlib2/d;/lru_cache/d' setup.cfg %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +# Three tests fail with OSError: [Errno 1] Operation not permitted , attempting +# to modify read-only system image files. +%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest -k \ + 'not (test_python_versions or test_shims_are_kept or test_shims_are_removed)' +} + %files %{python_files} %doc CHANGELOG.rst README.rst %license LICENSE.txt diff --git a/pythonfinder-1.2.0.tar.gz b/pythonfinder-1.2.0.tar.gz index fa6b9f9..d66000d 100644 --- a/pythonfinder-1.2.0.tar.gz +++ b/pythonfinder-1.2.0.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:288103c4198fade433fef0f15635a3d69622796b844f2b9780812ae8d42db3ae -size 37092 +oid sha256:91824d6047c862fa7213723336bc5926a05aacb84ccff0a76bcbdc39e94da98c +size 65255