forked from pool/python-pygments-pytest
Accepting request 1190075 from devel:languages:python:pytest
- Switch to pyproject macros. - Skip a test that fails with Pytest 8.3. OBS-URL: https://build.opensuse.org/request/show/1190075 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygments-pytest?expand=0&rev=12
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 29 04:21:50 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Switch to pyproject macros.
|
||||
- Skip a test that fails with Pytest 8.3.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 7 20:53:30 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -24,10 +24,12 @@ Summary: A pygments lexer for pytest output
|
||||
License: MIT
|
||||
URL: https://github.com/asottile/pygments-pytest
|
||||
Source: https://github.com/asottile/pygments-pytest/archive/v%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pygments-ansi-color >= 0.0.3}
|
||||
BuildRequires: %{python_module pygments}
|
||||
BuildRequires: %{python_module pytest >= 4.0.1}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-pygments
|
||||
@@ -42,20 +44,21 @@ This library provides a pygments lexer called "pytest".
|
||||
%setup -q -n pygments-pytest-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
# https://github.com/pytest-dev/pygments-pytest/issues/135
|
||||
%pytest -k 'not test_warnings'
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%pycache_only %{python_sitelib}/__pycache__/*.pyc
|
||||
%{python_sitelib}/pygments_pytest.py
|
||||
%{python_sitelib}/pygments_pytest-%{version}*-info
|
||||
%{python_sitelib}/pygments_pytest-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user