Accepting request 683762 from home:jayvdb:py-backports
- Activate test suite OBS-URL: https://build.opensuse.org/request/show/683762 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-future?expand=0&rev=18
This commit is contained in:
parent
9597bf09b1
commit
9e71402ca2
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 11 11:15:09 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
- Activate test suite
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 4 12:48:20 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
Tue Dec 4 12:48:20 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -27,6 +27,8 @@ Url: https://python-future.org
|
|||||||
Source0: https://files.pythonhosted.org/packages/source/f/future/future-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/f/future/future-%{version}.tar.gz
|
||||||
Source100: python-future-rpmlintrc
|
Source100: python-future-rpmlintrc
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: python3-dbm
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
@ -61,6 +63,13 @@ sed -i -e '/^#!\//, 1d' src/future/backports/test/pystone.py
|
|||||||
%preun
|
%preun
|
||||||
%python_uninstall_alternative futurize
|
%python_uninstall_alternative futurize
|
||||||
|
|
||||||
|
%check
|
||||||
|
# test_moves_urllib_request_http or test_urllib_request_http require internet
|
||||||
|
# test_geturl or test_main fail only on Leap 42.3 and SLE 12 SP4
|
||||||
|
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest \
|
||||||
|
-k 'not (test_moves_urllib_request_http or test_urllib_request_http or test_geturl or test_main)'
|
||||||
|
}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user