forked from pool/python-pythonfinder
- Update to 3.0.3:
* No upstream changelog provided OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pythonfinder?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
f93fa654fb
commit
f29d68be63
@@ -18,15 +18,13 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pythonfinder
|
||||
Version: 1.2.0
|
||||
Version: 1.2.1
|
||||
Release: 0
|
||||
Summary: A tool to locate Python on the system
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/sarugaku/pythonfinder
|
||||
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}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -55,11 +53,6 @@ A Python discovery tool to locate Python on the system.
|
||||
|
||||
%prep
|
||||
%setup -q -n pythonfinder-%{version}
|
||||
%patch0 -p1
|
||||
# Has no direct dependency on pathlib2 or lru_cache, which it obtains from vistir
|
||||
# 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
|
||||
@@ -78,9 +71,7 @@ rm -rf src/pythonfinder/_vendor/pep514tools
|
||||
%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)'
|
||||
}
|
||||
%pytest -k 'not (test_python_versions or test_shims_are_kept or test_shims_are_removed)'
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.rst README.rst
|
||||
|
Reference in New Issue
Block a user