[med-svn] [Git][python-team/packages/mypy][master] 5 commits: d/rules: for {hurd-, }i386: skip compiling mypy with mypyc due to...

Michael R. Crusoe (@crusoe) gitlab at salsa.debian.org
Fri Mar 20 16:07:19 GMT 2026



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


Commits:
0c9df324 by Michael R. Crusoe at 2026-03-20T09:32:45+01:00
d/rules: for {hurd-,}i386: skip compiling mypy with mypyc due to https://github.com/python/mypy/issues/21040.

- - - - -
3c8babd1 by Michael R. Crusoe at 2026-03-20T09:34:43+01:00
d/rules: move some post build cleanups to d/clean.

- - - - -
b8ca9590 by Michael R. Crusoe at 2026-03-20T09:36:35+01:00
Standards-Version: 4.7.3 (routine-update)

- - - - -
59d25b86 by Michael R. Crusoe at 2026-03-20T16:31:34+01:00
d/rules: no longer skip test testDaemonStatusKillRestartRecheck, it works

- - - - -
c2afd154 by Michael R. Crusoe at 2026-03-20T16:31:34+01:00
release to unstable

- - - - -


4 changed files:

- debian/changelog
- debian/clean
- debian/control
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+mypy (1.19.1-9) unstable; urgency=medium
+
+  * d/rules: for {hurd-,}i386: skip compiling mypy with mypyc due to
+    https://github.com/python/mypy/issues/21040.
+  * d/rules: move some post build cleanups to d/clean.
+  * Standards-Version: 4.7.3 (routine-update)
+  * d/rules: no longer skip test testDaemonStatusKillRestartRecheck, it works
+
+ -- Michael R. Crusoe <crusoe at debian.org>  Fri, 20 Mar 2026 09:37:26 +0100
+
 mypy (1.19.1-8) unstable; urgency=medium
 
   * d/rules: step down to -O2 from -O3 for i386 during the build.


=====================================
debian/clean
=====================================
@@ -14,3 +14,7 @@ debian/*_options.rst
 debian/dmypy.1
 debian/mypy.1
 debian/stubgen.1
+debian/.doctrees/
+debian/sphinx/dmypy_options.rst
+debian/sphinx/mypy_options.rst
+debian/sphinx/stubgen_options.rst


=====================================
debian/control
=====================================
@@ -31,7 +31,7 @@ Build-Depends: debhelper-compat (= 13),
                python3-all-dev:native,
                libpython3-all-dev,
                python3-tomli <!nocheck>,
-               python3-venv <!nocheck>,
+               python3-all-venv <!nocheck>,
                python3-doc <!nodoc>,
                cython-doc <!nodoc>,
                python-six-doc <!nodoc>,
@@ -40,7 +40,7 @@ Build-Depends: debhelper-compat (= 13),
                python3-myst-parser <!nodoc>,
                python3-sphinx-inline-tabs <!nodoc>,
                python3-orjson [!i386 !alpha !hppa !m68k !sh4 !x32] <!nocheck>
-Standards-Version: 4.7.2
+Standards-Version: 4.7.3
 Vcs-Browser: https://salsa.debian.org/python-team/packages/mypy
 Vcs-Git: https://salsa.debian.org/python-team/packages/mypy.git
 Homepage: https://www.mypy-lang.org/


=====================================
debian/rules
=====================================
@@ -15,23 +15,26 @@ ifneq ($(filter pkg.mypy.multifile,$(DEB_BUILD_PROFILES)),)
 endif
 export build_MYPYC_DEBUG_LEVEL=2
 # Why build_MYPY* ? So we don't change how the tests work
-ifneq (,$(filter $(DEB_HOST_ARCH),hurd-i386 i386))
-  export build_MYPYC_OPT_LEVEL=2
+ifneq ($(filter pkg.mypy.o1,$(DEB_BUILD_PROFILES)),)
+  export build_MYPYC_OPT_LEVEL=1
 else
   export build_MYPYC_OPT_LEVEL=3
 endif
-ifneq ($(filter pkg.mypy.o1,$(DEB_BUILD_PROFILES)),)
-  export build_MYPYC_OPT_LEVEL=1
+ifneq (,$(filter $(DEB_HOST_ARCH),hurd-i386 i386))
+  export build_MYPY_USE_MYPYC=0  # https://github.com/python/mypy/issues/21040
+else
+  export build_MYPY_USE_MYPYC=1
 endif
+export TEST_MYPYC=$(build_MYPY_USE_MYPYC)
 export MYPY_TEST_PREFIX=$(CURDIR)
-export TEST_MYPYC=1
 export PYBUILD_TEST_ARGS=$(DEB_BUILD_OPTION_PARALLEL:%=-n%) \
 	-o python_files=test*.py \
-	-k 'not (testCustomTypeshedDirWithRelativePathDoesNotCrash or testNoPython3StubAvailable or testIgnoreImportIfNoPython3StubAvailable or PEP561Suite or testDaemonStatusKillRestartRecheck)' \
-	-o python_classes= -o python_functions= --pyargs mypy.test mypyc.test
-# testIgnoreImportIfNoPython3StubAvailable fails due to scribe not being installed (it isn't packaged for Debian)
-# testNoPython3StubAvailable no longer work because python3-typeshed includes docutils types, which it isn't expecting
-# PEP561Suite due to needing internet access to pypi.org
+	-o python_classes= -o python_functions= --pyargs mypy.test mypyc.test \
+	-k 'not (PEP561Suite or testIgnoreImportIfNoPython3StubAvailable or testNoPython3StubAvailable or testCustomTypeshedDirWithRelativePathDoesNotCrash)'
+# PEP561Suite: needs internet access to pypi.org
+# testIgnoreImportIfNoPython3StubAvailable: needs scribe installed (it isn't packaged for Debian)
+# testNoPython3StubAvailable: no longer works because python3-typeshed includes docutils types, which it isn't expecting
+# testCustomTypeshedDirWithRelativePathDoesNotCrash: fails as the mypy_extensions package is installed, so a different error appears
 
 %:
 	dh $@  --buildsystem=pybuild
@@ -56,7 +59,7 @@ debian/sphinx/stubgen_options.rst: docs/source/stubgen.rst
 	sed -n -e '/stubgen --help/,$$ {/stubgen --help/d; p}' $< > $@
 
 override_dh_auto_build-arch:
-	MYPY_USE_MYPYC=1 \
+	MYPY_USE_MYPYC=$(build_MYPY_USE_MYPYC) \
 	  MYPYC_DEBUG_LEVEL=$(build_MYPYC_DEBUG_LEVEL) \
 	  MYPYC_OPT_LEVEL=$(build_MYPYC_OPT_LEVEL) \
 	  dh_auto_build
@@ -69,15 +72,10 @@ ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
 	mv mypyc/doc/_build/html mypyc/doc/_build/mypyc
 endif
 
-
 execute_after_dh_auto_clean:
 ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
 	$(MAKE) -C docs clean
 	$(MAKE) -C mypyc/doc clean
-	rm -rf debian/.doctrees
-	rm -f  debian/sphinx/dmypy_options.rst
-	rm -f  debian/sphinx/mypy_options.rst
-	rm -f  debian/sphinx/stubgen_options.rst
 endif
 
 execute_after_dh_auto_install:



View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/982e3add17c73ef4f29c8ef53125903f92f39aa4...c2afd15493885e1b235930b55f2f11746b63c732

-- 
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/982e3add17c73ef4f29c8ef53125903f92f39aa4...c2afd15493885e1b235930b55f2f11746b63c732
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/20260320/4cee5a24/attachment-0001.htm>


More information about the debian-med-commit mailing list