- Switch to pyproject macros.

- Skip a test that fails with Pytest 8.3.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pygments-pytest?expand=0&rev=27
This commit is contained in:
2024-07-29 04:22:36 +00:00
committed by Git OBS Bridge
commit cb4889bc7f
5 changed files with 179 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,88 @@
-------------------------------------------------------------------
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>
- update to 2.4.0:
* drop python 3.8 support
-------------------------------------------------------------------
Fri Apr 21 12:30:50 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Wed Nov 30 06:28:21 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Remove python_module macro definition
- More specific python_sitelib in %files
- Update to 2.3.0:
* Update azure-pipelines template repositories
* stricter mypy settings
* exit(main()) -> raise SystemExit(main()) pt2
* drop python3.6 support
* coloring changes for pytest 7.2
-------------------------------------------------------------------
Wed Jan 6 14:32:15 UTC 2021 - Markéta Machová <mmachova@suse.com>
- Update to 2.2.0
* handle skip / xfail reasons (change in pytest 6.2)
-------------------------------------------------------------------
Fri Aug 21 11:42:17 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Update to 2.1.0
* Use new --code-highlight=no in pytest 6 (and prevent tests from failing)
-------------------------------------------------------------------
Wed Apr 29 15:01:50 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Switching off the failing coloring tests, it looks like
gh#asottile/pygments-pytest#18, but not completely certain
about it.
-------------------------------------------------------------------
Mon Mar 16 08:45:47 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 2.0.0:
* Fixes for new pytests
* Drop support for python2
-------------------------------------------------------------------
Wed Jan 15 13:41:56 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Disable tests run as now they all fail under pytest 5.3 due to
slight coloring change that does not match fixtures
-------------------------------------------------------------------
Tue Nov 5 11:00:25 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.3.1:
* no upstream changelog
-------------------------------------------------------------------
Fri Aug 30 01:14:27 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.3.0:
* no upstream changelog
-------------------------------------------------------------------
Tue Mar 26 12:17:56 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Add missing description.
-------------------------------------------------------------------
Fri Mar 8 11:20:39 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.2.0:
* Fixes for new pytest
-------------------------------------------------------------------
Thu Jan 31 13:04:10 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Initial commit, needed by pytest 4.x

View File

@@ -0,0 +1,64 @@
#
# spec file for package python-pygments-pytest
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-pygments-pytest
Version: 2.4.0
Release: 0
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
Requires: python-pytest >= 4.0.1
BuildArch: noarch
%python_subpackages
%description
This library provides a pygments lexer called "pytest".
%prep
%setup -q -n pygments-pytest-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# 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}.dist-info
%changelog

BIN
v2.4.0.tar.gz LFS Normal file

Binary file not shown.