Hello community,
here is the log from the commit of package python-pygments-pytest for
openSUSE:Factory checked in at 2020-09-04 11:02:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pygments-pytest (Old)
and /work/SRC/openSUSE:Factory/.python-pygments-pytest.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pygments-pytest"
Fri Sep 4 11:02:47 2020 rev:7 rq:830711 version:2.1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pygments-pytest/python-pygments-pytest.changes
2020-05-01 11:07:08.131036137 +0200
+++
/work/SRC/openSUSE:Factory/.python-pygments-pytest.new.3399/python-pygments-pytest.changes
2020-09-04 11:03:23.974761179 +0200
@@ -1,0 +2,6 @@
+Fri Aug 21 11:42:17 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- Update to 2.1.0
+ * Use new --code-highlight=no in pytest 6 (and prevent tests from failing)
+
+-------------------------------------------------------------------
Old:
----
v2.0.0.tar.gz
New:
----
v2.1.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pygments-pytest.spec ++++++
--- /var/tmp/diff_new_pack.pyarxY/_old 2020-09-04 11:03:30.042764430 +0200
+++ /var/tmp/diff_new_pack.pyarxY/_new 2020-09-04 11:03:30.042764430 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pygments-pytest
-Version: 2.0.0
+Version: 2.1.0
Release: 0
Summary: A pygments lexer for pytest output
License: MIT
@@ -50,7 +50,7 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%pytest -k 'not (test_different_test_types or test_too_long_summary_line or
test_deprecated_raises_exec_failure or test_blank_code_line)'
+%pytest
%files %{python_files}
%doc README.md
++++++ v2.0.0.tar.gz -> v2.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.0.0/.coveragerc
new/pygments-pytest-2.1.0/.coveragerc
--- old/pygments-pytest-2.0.0/.coveragerc 2020-02-28 00:45:38.000000000
+0100
+++ new/pygments-pytest-2.1.0/.coveragerc 1970-01-01 01:00:00.000000000
+0100
@@ -1,33 +0,0 @@
-[run]
-branch = True
-source =
- .
-omit =
- .tox/*
- /usr/*
- setup.py
- # Don't complain if non-runnable code isn't run
- */__main__.py
-
-[report]
-show_missing = True
-skip_covered = True
-exclude_lines =
- # Have to re-enable the standard pragma
- \#\s*pragma: no cover
- # We optionally substitute this
- ${COVERAGE_IGNORE_WINDOWS}
-
- # Don't complain if tests don't hit defensive assertion code:
- ^\s*raise AssertionError\b
- ^\s*raise NotImplementedError\b
- ^\s*return NotImplemented\b
- ^\s*raise$
-
- # Don't complain if non-runnable code isn't run:
- ^if __name__ == ['"]__main__['"]:$
-
-[html]
-directory = coverage-html
-
-# vim:ft=dosini
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.0.0/.pre-commit-config.yaml
new/pygments-pytest-2.1.0/.pre-commit-config.yaml
--- old/pygments-pytest-2.0.0/.pre-commit-config.yaml 2020-02-28
00:45:38.000000000 +0100
+++ new/pygments-pytest-2.1.0/.pre-commit-config.yaml 2020-07-13
03:40:37.000000000 +0200
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v2.5.0
+ rev: v3.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
@@ -10,34 +10,34 @@
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://gitlab.com/pycqa/flake8
- rev: 3.7.9
+ rev: 3.8.3
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.7.0]
- repo: https://github.com/pre-commit/mirrors-autopep8
- rev: v1.5
+ rev: v1.5.3
hooks:
- id: autopep8
- repo: https://github.com/asottile/reorder_python_imports
- rev: v2.0.0
+ rev: v2.3.0
hooks:
- id: reorder-python-imports
args: [--py3-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v2.1.0
+ rev: v2.7.0
hooks:
- id: pyupgrade
args: [--py36-plus]
- repo: https://github.com/asottile/add-trailing-comma
- rev: v2.0.0
+ rev: v2.0.1
hooks:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/setup-cfg-fmt
- rev: v1.7.0
+ rev: v1.10.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.761
+ rev: v0.782
hooks:
- id: mypy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.0.0/pygments_pytest.py
new/pygments-pytest-2.1.0/pygments_pytest.py
--- old/pygments-pytest-2.0.0/pygments_pytest.py 2020-02-28
00:45:38.000000000 +0100
+++ new/pygments-pytest-2.1.0/pygments_pytest.py 2020-07-13
03:40:37.000000000 +0200
@@ -107,7 +107,7 @@
(r'^_+ .+ _+$', Color.Bold.Red),
(r'^E .*$', Color.Bold.Red),
(r'^(<[^>\n]+>|[^:\n]+)(:\d+:.*$)', filename_line),
- (r'^( |>).+$', Color.Bold),
+ (r'^( |>).+$', pygments.token.Text),
# otherwise pygments will reset our state machine to `root`
(r'\n', pygments.token.Text),
(r'.', pygments.token.Text), # prevent error tokens
@@ -160,7 +160,7 @@
with open(path, 'w') as f:
f.write(stylesheet(app.config.pygments_pytest_ansi_colors))
- app.require_sphinx('1.0')
+ app.require_sphinx('1.8')
app.add_config_value('pygments_pytest_ansi_colors', {}, 'html')
- app.add_stylesheet('pygments_pytest.css')
+ app.add_css_file('pygments_pytest.css')
app.connect('build-finished', copy_stylesheet)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.0.0/requirements-dev.txt
new/pygments-pytest-2.1.0/requirements-dev.txt
--- old/pygments-pytest-2.0.0/requirements-dev.txt 2020-02-28
00:45:38.000000000 +0100
+++ new/pygments-pytest-2.1.0/requirements-dev.txt 2020-07-13
03:40:37.000000000 +0200
@@ -1,5 +1,5 @@
+covdefaults
coverage
markdown-to-presentation>=0.0.22
-pre-commit
pygments-ansi-color
-pytest>=4.0.1
+pytest>=6.0.0rc1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.0.0/setup.cfg
new/pygments-pytest-2.1.0/setup.cfg
--- old/pygments-pytest-2.0.0/setup.cfg 2020-02-28 00:45:38.000000000 +0100
+++ new/pygments-pytest-2.1.0/setup.cfg 2020-07-13 03:40:37.000000000 +0200
@@ -1,6 +1,6 @@
[metadata]
name = pygments_pytest
-version = 2.0.0
+version = 2.1.0
description = A pygments lexer for pytest output.
long_description = file: README.md
long_description_content_type = text/markdown
@@ -32,6 +32,9 @@
[bdist_wheel]
universal = True
+[coverage:run]
+plugins = covdefaults
+
[mypy]
check_untyped_defs = true
disallow_any_generics = true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.0.0/tests/pygments_pytest_test.py
new/pygments-pytest-2.1.0/tests/pygments_pytest_test.py
--- old/pygments-pytest-2.0.0/tests/pygments_pytest_test.py 2020-02-28
00:45:38.000000000 +0100
+++ new/pygments-pytest-2.1.0/tests/pygments_pytest_test.py 2020-07-13
03:40:37.000000000 +0200
@@ -56,7 +56,8 @@
def compare_fn(src, args=()):
testdir.tmpdir.join('f.py').write(src)
- args += ('f.py', '--color=yes') + tuple(shlex.split(request.param))
+ args += (*shlex.split(request.param),)
+ args += ('--color=yes', '--code-highlight=no', 'f.py')
ret = testdir.runpytest(*args)
ansi = highlight(ANSI_LEXER, ret.stdout.str())
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pygments-pytest-2.0.0/tox.ini
new/pygments-pytest-2.1.0/tox.ini
--- old/pygments-pytest-2.0.0/tox.ini 2020-02-28 00:45:38.000000000 +0100
+++ new/pygments-pytest-2.1.0/tox.ini 2020-07-13 03:40:37.000000000 +0200
@@ -7,7 +7,6 @@
coverage erase
coverage run -m pytest {posargs:tests}
coverage report --fail-under 100
- pre-commit install
[testenv:py38-master]
commands =