Accepting request 880498 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/880498 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astor?expand=0&rev=9
This commit is contained in:
commit
d9449d2dfd
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 19 19:13:12 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Skip failing stdlib roundtrip test on python39
|
||||
gh#berkerpeksag/astor#196
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 1 09:54:30 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-astor
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -28,13 +28,14 @@ URL: https://github.com/berkerpeksag/astor
|
||||
Source: https://github.com/berkerpeksag/astor/archive/%{version}.tar.gz#/astor-%{version}.tar.gz
|
||||
# https://github.com/berkerpeksag/astor/pull/177
|
||||
Patch0: remove_nose.patch
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
%if %{with python2}
|
||||
# The tests use it internally, even when called from pytest-2
|
||||
BuildRequires: python-unittest2
|
||||
%endif
|
||||
# /SECTION
|
||||
@ -81,7 +82,9 @@ chmod a-x astor/rtrip.py
|
||||
%python_expand chmod 755 %{buildroot}%{$python_sitelib}/astor/rtrip.py
|
||||
|
||||
%check
|
||||
%pytest tests
|
||||
# https://github.com/berkerpeksag/astor/issues/196
|
||||
python39_donttest="test_convert_stdlib"
|
||||
%pytest tests ${$python_donttest:+ -k "not (${$python_donttest})"}
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS README.rst docs/*.rst
|
||||
|
Loading…
Reference in New Issue
Block a user