Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pygments-pytest for
openSUSE:Factory checked in at 2023-01-06 17:04:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pygments-pytest (Old)
and /work/SRC/openSUSE:Factory/.python-pygments-pytest.new.1563 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pygments-pytest"
Fri Jan 6 17:04:25 2023 rev:9 rq:1039045 version:2.3.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pygments-pytest/python-pygments-pytest.changes
2021-01-08 17:33:13.001184427 +0100
+++
/work/SRC/openSUSE:Factory/.python-pygments-pytest.new.1563/python-pygments-pytest.changes
2023-01-06 17:04:52.915954341 +0100
@@ -1,0 +2,12 @@
+Wed Nov 30 06:28:21 UTC 2022 - Daniel Garcia <[email protected]>
+
+- 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
+
+-------------------------------------------------------------------
Old:
----
v2.2.0.tar.gz
New:
----
v2.3.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pygments-pytest.spec ++++++
--- /var/tmp/diff_new_pack.h6Pk07/_old 2023-01-06 17:04:53.371956902 +0100
+++ /var/tmp/diff_new_pack.h6Pk07/_new 2023-01-06 17:04:53.375956924 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pygments-pytest
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,10 +16,9 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pygments-pytest
-Version: 2.2.0
+Version: 2.3.0
Release: 0
Summary: A pygments lexer for pytest output
License: MIT
@@ -55,6 +54,8 @@
%files %{python_files}
%doc README.md
%license LICENSE
-%{python_sitelib}/*
+%pycache_only %{python_sitelib}/__pycache__/*.pyc
+%{python_sitelib}/pygments_pytest.py
+%{python_sitelib}/pygments_pytest-%{version}*-info
%changelog
++++++ v2.2.0.tar.gz -> v2.3.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.2.0/.github/FUNDING.yml
new/pygments-pytest-2.3.0/.github/FUNDING.yml
--- old/pygments-pytest-2.2.0/.github/FUNDING.yml 2020-12-21
22:56:34.000000000 +0100
+++ new/pygments-pytest-2.3.0/.github/FUNDING.yml 1970-01-01
01:00:00.000000000 +0100
@@ -1 +0,0 @@
-github: asottile
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.2.0/.github/workflows/deploy.yml
new/pygments-pytest-2.3.0/.github/workflows/deploy.yml
--- old/pygments-pytest-2.2.0/.github/workflows/deploy.yml 2020-12-21
22:56:34.000000000 +0100
+++ new/pygments-pytest-2.3.0/.github/workflows/deploy.yml 2022-10-25
16:52:06.000000000 +0200
@@ -1,12 +1,10 @@
-name: deploy
on:
pull_request:
push:
- branches: [master]
+ branches: [main]
jobs:
- build:
- name: pr
+ pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.2.0/.gitignore
new/pygments-pytest-2.3.0/.gitignore
--- old/pygments-pytest-2.2.0/.gitignore 2020-12-21 22:56:34.000000000
+0100
+++ new/pygments-pytest-2.3.0/.gitignore 2022-10-25 16:52:06.000000000
+0200
@@ -1,8 +1,6 @@
*.egg-info
*.pyc
/.coverage
-/.mypy_cache
/.tox
/demo/*.html
/index.html
-/venv*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.2.0/.pre-commit-config.yaml
new/pygments-pytest-2.3.0/.pre-commit-config.yaml
--- old/pygments-pytest-2.2.0/.pre-commit-config.yaml 2020-12-21
22:56:34.000000000 +0100
+++ new/pygments-pytest-2.3.0/.pre-commit-config.yaml 2022-10-25
16:52:06.000000000 +0200
@@ -1,43 +1,42 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v3.4.0
+ rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- - id: check-docstring-first
- id: check-yaml
- id: debug-statements
+ - id: double-quote-string-fixer
- id: name-tests-test
- id: requirements-txt-fixer
-- repo: https://gitlab.com/pycqa/flake8
- rev: 3.8.4
- hooks:
- - id: flake8
- additional_dependencies: [flake8-typing-imports==1.7.0]
-- repo: https://github.com/pre-commit/mirrors-autopep8
- rev: v1.5.4
+- repo: https://github.com/asottile/setup-cfg-fmt
+ rev: v2.1.0
hooks:
- - id: autopep8
+ - id: setup-cfg-fmt
- repo: https://github.com/asottile/reorder_python_imports
- rev: v2.3.6
+ rev: v3.8.5
hooks:
- id: reorder-python-imports
- args: [--py3-plus]
-- repo: https://github.com/asottile/pyupgrade
- rev: v2.7.4
- hooks:
- - id: pyupgrade
- args: [--py36-plus]
+ args: [--py37-plus, --add-import, 'from __future__ import annotations']
- repo: https://github.com/asottile/add-trailing-comma
- rev: v2.0.1
+ rev: v2.3.0
hooks:
- id: add-trailing-comma
args: [--py36-plus]
-- repo: https://github.com/asottile/setup-cfg-fmt
- rev: v1.16.0
+- repo: https://github.com/asottile/pyupgrade
+ rev: v3.1.0
hooks:
- - id: setup-cfg-fmt
+ - id: pyupgrade
+ args: [--py37-plus]
+- repo: https://github.com/pre-commit/mirrors-autopep8
+ rev: v1.7.0
+ hooks:
+ - id: autopep8
+- repo: https://github.com/PyCQA/flake8
+ rev: 5.0.4
+ hooks:
+ - id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.790
+ rev: v0.982
hooks:
- id: mypy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.2.0/README.md
new/pygments-pytest-2.3.0/README.md
--- old/pygments-pytest-2.2.0/README.md 2020-12-21 22:56:34.000000000 +0100
+++ new/pygments-pytest-2.3.0/README.md 2022-10-25 16:52:06.000000000 +0200
@@ -1,7 +1,7 @@
-[](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=47&branchName=master)
-[](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=47&branchName=master)
+[](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=47&branchName=main)
+[](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=47&branchName=main)
[](https://github.com/asottile/pygments-pytest/actions)
-[](https://results.pre-commit.ci/latest/github/asottile/pygments-pytest/master)
+[](https://results.pre-commit.ci/latest/github/asottile/pygments-pytest/main)
pygments-pytest
===============
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.2.0/azure-pipelines.yml
new/pygments-pytest-2.3.0/azure-pipelines.yml
--- old/pygments-pytest-2.2.0/azure-pipelines.yml 2020-12-21
22:56:34.000000000 +0100
+++ new/pygments-pytest-2.3.0/azure-pipelines.yml 2022-10-25
16:52:06.000000000 +0200
@@ -1,6 +1,6 @@
trigger:
branches:
- include: [master, test-me-*]
+ include: [main, test-me-*]
tags:
include: ['*']
@@ -10,10 +10,10 @@
type: github
endpoint: github
name: asottile/azure-pipeline-templates
- ref: refs/tags/v1.0.1
+ ref: refs/tags/v2.4.0
jobs:
- template: job--python-tox.yml@asottile
parameters:
- toxenvs: [pypy3, py36, py37, py38]
+ toxenvs: [py37, py38, py38-main]
os: linux
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.2.0/pygments_pytest.py
new/pygments-pytest-2.3.0/pygments_pytest.py
--- old/pygments-pytest-2.2.0/pygments_pytest.py 2020-12-21
22:56:34.000000000 +0100
+++ new/pygments-pytest-2.3.0/pygments_pytest.py 2022-10-25
16:52:06.000000000 +0200
@@ -1,10 +1,10 @@
+from __future__ import annotations
+
import os.path
import re
from typing import Any
-from typing import Dict
from typing import Generator
from typing import Match
-from typing import Optional
from typing import Tuple
import pygments.lexer
@@ -13,7 +13,9 @@
Tok = Tuple[int, Any, str]
Color = pygments.token.Token.Color
-STATUSES = ('failed', 'passed', 'skipped', 'deselected', 'no tests ran')
+STATUSES = (
+ 'failed', 'passed', 'skipped', 'deselected', 'error', 'no tests ran',
+)
BOLDIFY = {
Color.Red: Color.Bold.Red,
Color.Green: Color.Bold.Green,
@@ -66,6 +68,15 @@
if match['after']:
yield match.start('after'), start_end_color, match['after']
+ _next_section = (
+ (r'(?=^=+ )', pygments.token.Text, '#pop'),
+ (
+ r'(?=^[1-9]\d* ({}))'.format('|'.join(STATUSES)),
+ pygments.token.Text,
+ '#pop',
+ ),
+ )
+
tokens = {
'root': [
(r'^=+ test session starts =+$', Color.Bold),
@@ -73,6 +84,7 @@
(r'^(?=.+\[ *\d+%\]$)', pygments.token.Text, 'progress_line'),
(r'^=+ (ERRORS|FAILURES) =+$', pygments.token.Text, 'failures'),
(r'^=+ warnings summary( \(final\))? =+$', Color.Yellow),
+ (r'^=+ short test summary info =+$\n', Color.Bold.Cyan, 'summary'),
(
r'^(?P<before>=+ )?'
r'(?P<failed>\d+ failed)?(?P<failedcomma>, )?'
@@ -97,12 +109,7 @@
(r'\n', pygments.token.Text, '#pop'),
],
'failures': [
- (r'(?=^=+ )', pygments.token.Text, '#pop'),
- (
- r'(?=^[1-9]\d* ({}))'.format('|'.join(STATUSES)),
- pygments.token.Text,
- '#pop',
- ),
+ *_next_section,
(r'^_+ .+ _+$', Color.Bold.Red),
(r'^E .*$', Color.Bold.Red),
@@ -112,6 +119,17 @@
(r'\n', pygments.token.Text),
(r'.', pygments.token.Text), # prevent error tokens
],
+ 'summary': [
+ *_next_section,
+
+ (r'^(ERROR|FAILED)', Color.Red),
+ (r'^PASSED', Color.Green),
+ (r'(SKIPPED|XFAILED|XPASS)', Color.Yellow),
+
+ (r'(?<!::).+?::', pygments.token.Text),
+ (r'.+(?= - )', Color.Bold),
+ (r'.+$\n', pygments.token.Text),
+ ],
}
def _skip_xfail(self, match: Match[str]) -> Generator[Tok, None, None]:
@@ -149,10 +167,15 @@
))
-COLORS = {'Green': '#4e9a06', 'Red': '#c00', 'Yellow': '#c4a000'}
+COLORS = {
+ 'Green': '#4e9a06',
+ 'Red': '#c00',
+ 'Yellow': '#c4a000',
+ 'Cyan': '#06989a',
+}
-def stylesheet(colors: Optional[Dict[str, str]] = None) -> str:
+def stylesheet(colors: dict[str, str] | None = None) -> str:
colors = colors or {}
assert set(colors) <= set(COLORS), set(colors) - set(COLORS)
return '.-Color-Bold { font-weight: bold; }\n' + ''.join(
@@ -163,7 +186,7 @@
def setup(app: Any) -> None: # pragma: no cover (sphinx)
- def copy_stylesheet(app: Any, exception: Optional[Exception]) -> None:
+ def copy_stylesheet(app: Any, exception: Exception | None) -> None:
if exception:
return
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.2.0/setup.cfg
new/pygments-pytest-2.3.0/setup.cfg
--- old/pygments-pytest-2.2.0/setup.cfg 2020-12-21 22:56:34.000000000 +0100
+++ new/pygments-pytest-2.3.0/setup.cfg 2022-10-25 16:52:06.000000000 +0200
@@ -1,6 +1,6 @@
[metadata]
name = pygments_pytest
-version = 2.2.0
+version = 2.3.0
description = A pygments lexer for pytest output.
long_description = file: README.md
long_description_content_type = text/markdown
@@ -13,10 +13,6 @@
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
- Programming Language :: Python :: 3.6
- Programming Language :: Python :: 3.7
- Programming Language :: Python :: 3.8
- Programming Language :: Python :: 3.9
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
@@ -24,7 +20,7 @@
py_modules = pygments_pytest
install_requires =
pygments
-python_requires = >=3.6.1
+python_requires = >=3.7
[options.entry_points]
pygments.lexers =
@@ -42,6 +38,8 @@
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
+warn_redundant_casts = true
+warn_unused_ignores = true
[mypy-testing.*]
disallow_untyped_defs = false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.2.0/setup.py
new/pygments-pytest-2.3.0/setup.py
--- old/pygments-pytest-2.2.0/setup.py 2020-12-21 22:56:34.000000000 +0100
+++ new/pygments-pytest-2.3.0/setup.py 2022-10-25 16:52:06.000000000 +0200
@@ -1,2 +1,4 @@
+from __future__ import annotations
+
from setuptools import setup
setup()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.2.0/testing/make-index
new/pygments-pytest-2.3.0/testing/make-index
--- old/pygments-pytest-2.2.0/testing/make-index 2020-12-21
22:56:34.000000000 +0100
+++ new/pygments-pytest-2.3.0/testing/make-index 2022-10-25
16:52:06.000000000 +0200
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
+from __future__ import annotations
+
import os
@@ -12,7 +14,7 @@
def main() -> int:
- links = "".join(
+ links = ''.join(
f'<li><a href="demo/{f}">{f}</a></li>'
for f in sorted(os.listdir('demo')) if f.endswith('_pytest.html')
)
@@ -22,4 +24,4 @@
if __name__ == '__main__':
- exit(main())
+ raise SystemExit(main())
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.2.0/tests/conftest.py
new/pygments-pytest-2.3.0/tests/conftest.py
--- old/pygments-pytest-2.2.0/tests/conftest.py 2020-12-21 22:56:34.000000000
+0100
+++ new/pygments-pytest-2.3.0/tests/conftest.py 2022-10-25 16:52:06.000000000
+0200
@@ -1 +1,2 @@
+from __future__ import annotations
pytest_plugins = 'pytester'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.2.0/tests/pygments_pytest_test.py
new/pygments-pytest-2.3.0/tests/pygments_pytest_test.py
--- old/pygments-pytest-2.2.0/tests/pygments_pytest_test.py 2020-12-21
22:56:34.000000000 +0100
+++ new/pygments-pytest-2.3.0/tests/pygments_pytest_test.py 2022-10-25
16:52:06.000000000 +0200
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
import os.path
import re
import shlex
@@ -181,6 +183,13 @@
)
+def test_fail_with_class(compare):
+ compare(
+ 'class TestThing:\n'
+ ' def test_fail(self): assert False\n',
+ )
+
+
@pytest.mark.xfail
def test_collection_failure_syntax_error(compare):
compare('(')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.2.0/tox.ini
new/pygments-pytest-2.3.0/tox.ini
--- old/pygments-pytest-2.2.0/tox.ini 2020-12-21 22:56:34.000000000 +0100
+++ new/pygments-pytest-2.3.0/tox.ini 2022-10-25 16:52:06.000000000 +0200
@@ -1,16 +1,16 @@
[tox]
-envlist = py36,py37,py38,pypy3,py38-master,pre-commit
+envlist = py37,py38,pypy3,py38-main,pre-commit
[testenv]
deps = -rrequirements-dev.txt
commands =
coverage erase
coverage run -m pytest {posargs:tests}
- coverage report --fail-under 100
+ coverage report
-[testenv:py38-master]
+[testenv:py38-main]
commands =
- pip install --upgrade git+https://github.com/pytest-dev/pytest@master
+ pip install --upgrade git+https://github.com/pytest-dev/pytest@main
{[testenv]commands}
[testenv:pre-commit]