[med-svn] [Git][python-team/packages/mypy][master] 2 commits: d/rules: adjust test invocation part 2

Michael R. Crusoe (@crusoe) gitlab at salsa.debian.org
Tue Dec 16 10:34:47 GMT 2025



Michael R. Crusoe pushed to branch master at Debian Python Team / packages / mypy


Commits:
2985cacd by Michael R. Crusoe at 2025-12-16T11:34:25+01:00
d/rules: adjust test invocation part 2

- - - - -
33002c49 by Michael R. Crusoe at 2025-12-16T11:34:31+01:00
Self-test: assume Python 3.10 due to newer pytest version.

- - - - -


4 changed files:

- debian/changelog
- + debian/patches/self_check_py_version
- debian/patches/series
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -5,6 +5,7 @@ mypy (1.19.1-1) UNRELEASED; urgency=medium
   * debputy lint --auto-fix (routine-update)
   * d/control: hard-code binary dependency on librt
   * d/rules: adjust test invocation
+  * Self-test: assume Python 3.10 due to newer pytest version.
 
  -- Michael R. Crusoe <crusoe at debian.org>  Mon, 15 Dec 2025 10:28:56 +0100
 


=====================================
debian/patches/self_check_py_version
=====================================
@@ -0,0 +1,19 @@
+Author: Michael R. Crusoe <crusoe at debian.org>
+Description: Debian uses Python 3.13+ including a newer pytest version
+Forwarded: not-needed
+
+So bump this version to avoid:
+/usr/lib/python3/dist-packages/_pytest/terminal.py:1729: error: Pattern matching is only supported in Python 3.10 and greater  [syntax]
+            self._tr.write_raw(sequence, flush=True)
+            ^
+--- mypy.orig/mypy_self_check.ini
++++ mypy/mypy_self_check.ini
+@@ -7,7 +7,7 @@
+ pretty = True
+ always_false = MYPYC
+ plugins = mypy.plugins.proper_plugin
+-python_version = 3.9
++python_version = 3.10
+ exclude = mypy/typeshed/|mypyc/test-data/
+ enable_error_code = ignore-without-code,redundant-expr
+ enable_incomplete_feature = PreciseTupleTypes


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 hint-typeshed-package
 verbose
 intersphinx
+self_check_py_version


=====================================
debian/rules
=====================================
@@ -87,7 +87,13 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_PROFILES)))
 	export TEST_MYPYC=1
 	PYBUILD_SYSTEM=custom \
 		PYBUILD_TEST_ARGS="{interpreter} -m mypy \
-		--config-file {dir}/mypy_self_check.ini -p mypy -p mypyc setup.py" dh_auto_test
+		--config-file {dir}/mypy_self_check.ini -p mypy" dh_auto_test
+	PYBUILD_SYSTEM=custom \
+		PYBUILD_TEST_ARGS="{interpreter} -m mypy \
+		--config-file {dir}/mypy_self_check.ini -p mypyc" dh_auto_test
+	PYBUILD_SYSTEM=custom \
+		PYBUILD_TEST_ARGS="{interpreter} -m mypy \
+		--config-file {dir}/mypy_self_check.ini setup.py" dh_auto_test
 	dh_auto_install
 	set -e; for v in $(PY3VERS); do \
 		env -u CFLAGS PYTHONPATH=$$(pybuild --print build_dir --pyver $$v | awk '{ print $$3 }') PATH=$$PATH:$(CURDIR)/debian/python3-mypy/usr/bin/ python$$v -m pytest $(DEB_BUILD_OPTION_PARALLEL:%=-n%) \



View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/32778ba1ea5e042ce6193efffc424071db041c50...33002c49fa742685fcea0e327c3cc98335353c99

-- 
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/32778ba1ea5e042ce6193efffc424071db041c50...33002c49fa742685fcea0e327c3cc98335353c99
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/20251216/d39e3a3f/attachment-0001.htm>


More information about the debian-med-commit mailing list