[med-svn] [Git][python-team/packages/mypy][master] 2 commits: Added patch to fix FTBFS with Pytest 8.1+
Michael R. Crusoe (@crusoe)
gitlab at salsa.debian.org
Tue Mar 26 16:02:01 GMT 2024
Michael R. Crusoe pushed to branch master at Debian Python Team / packages / mypy
Commits:
97e41b8e by Michael R. Crusoe at 2024-03-26T15:24:03+01:00
Added patch to fix FTBFS with Pytest 8.1+
- - - - -
ffc073eb by Michael R. Crusoe at 2024-03-26T16:52:29+01:00
routine-update: Ready to upload to unstable
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/pytest8.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+mypy (1.9.0-3) unstable; urgency=medium
+
+ * Added patch to fix FTBFS with Pytest 8.1+
+
+ -- Michael R. Crusoe <crusoe at debian.org> Tue, 26 Mar 2024 16:52:29 +0100
+
mypy (1.9.0-2) unstable; urgency=medium
* d/patches/typing_extensions_4.10.path: cherry-pick from upstream.
=====================================
debian/patches/pytest8.patch
=====================================
@@ -0,0 +1,42 @@
+commit e5ff3c9a693825cdb815637209994d4e6eae50eb
+Author: Michael R. Crusoe <crusoe at debian.org>
+Date: Tue Mar 26 12:44:25 2024 +0100
+Forwarded: https://github.com/python/mypy/pull/17066
+
+ fix for Pytest 8 compat
+
+--- mypy.orig/mypy/test/helpers.py
++++ mypy/mypy/test/helpers.py
+@@ -41,7 +41,7 @@
+ if status != 0:
+ sys.stdout.write(outval)
+ sys.stderr.write(errval)
+- pytest.fail(msg="Sample check failed", pytrace=False)
++ pytest.fail(reason="Sample check failed", pytrace=False)
+
+
+ def diff_ranges(
+--- mypy.orig/pyproject.toml
++++ mypy/pyproject.toml
+@@ -88,7 +88,7 @@
+ ignore = ["**/.readthedocs.yaml"]
+
+ [tool.pytest.ini_options]
+-minversion = "6.0.0"
++minversion = "7.0.0"
+ testpaths = ["mypy/test", "mypyc/test"]
+ python_files = 'test*.py'
+
+--- mypy.orig/mypy/test/data.py
++++ mypy/mypy/test/data.py
+@@ -640,9 +640,7 @@
+ # Non-None result means this obj is a test case.
+ # The collect method of the returned DataSuiteCollector instance will be called later,
+ # with self.obj being obj.
+- return DataSuiteCollector.from_parent( # type: ignore[no-untyped-call]
+- parent=collector, name=name
+- )
++ return DataSuiteCollector.from_parent(parent=collector, name=name)
+ return None
+
+
=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
+pytest8.patch
typing_extensions_4.10.patch
self_check.patch
hint-typeshed-package
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/7bf892f7c11aa03c802be1c4a309413caa1090e6...ffc073eb23c19d5bc1880afaef720e1cf1582644
--
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/7bf892f7c11aa03c802be1c4a309413caa1090e6...ffc073eb23c19d5bc1880afaef720e1cf1582644
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240326/a2b866e2/attachment-0001.htm>
More information about the debian-med-commit
mailing list