Accepting request 1191180 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1191180 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyflakes?expand=0&rev=39
This commit is contained in:
commit
bff39975c2
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 2 11:40:14 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Add python-pytest to BuildRequires
|
||||
- Use %pytest instead of %pyunitest to be able to skip tests
|
||||
- Temporarily disable test_errors_syntax test on Python 3.13
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 5 15:26:55 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@ -26,6 +26,7 @@ URL: https://github.com/PyCQA/pyflakes
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pyflakes/pyflakes-%{version}.tar.gz
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
@ -33,7 +34,7 @@ BuildRequires: python-rpm-macros
|
||||
# the pkg_resources module is required at runtime
|
||||
Requires: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@ -54,7 +55,10 @@ modules with side effects. It's also much faster.
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyflakes
|
||||
|
||||
%check
|
||||
%pyunittest discover -v
|
||||
# Disable test_errors_syntax test until Python 3.13 has been
|
||||
# released, see: https://github.com/PyCQA/pyflakes/issues/811
|
||||
python313_args=("-k" "not test_errors_syntax")
|
||||
%pytest "${$python_args[@]}"
|
||||
|
||||
%post
|
||||
%python_install_alternative pyflakes
|
||||
|
Loading…
x
Reference in New Issue
Block a user