14
0

Accepting request 684681 from home:jayvdb:coala:python3-bears

- Activated test suite
- Removed unnecessary vendored pep514tools from runtime package

OBS-URL: https://build.opensuse.org/request/show/684681
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pythonfinder?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal
2019-03-13 12:52:11 +00:00
committed by Git OBS Bridge
parent d07bc48333
commit 784b8ec94a
3 changed files with 25 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Mar 13 12:29:56 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Activated test suite
- Removed unnecessary vendored pep514tools from runtime package
-------------------------------------------------------------------
Thu Mar 7 04:01:37 UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -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

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:288103c4198fade433fef0f15635a3d69622796b844f2b9780812ae8d42db3ae
size 37092
oid sha256:91824d6047c862fa7213723336bc5926a05aacb84ccff0a76bcbdc39e94da98c
size 65255