[med-svn] [Git][python-team/packages/mypy][master] 3 commits: Revert "i386: skip test testDataclassTransformClass_semanal that crashes pytest."
Michael R. Crusoe (@crusoe)
gitlab at salsa.debian.org
Mon Mar 16 17:54:41 GMT 2026
Michael R. Crusoe pushed to branch master at Debian Python Team / packages / mypy
Commits:
817464d4 by Michael R. Crusoe at 2026-03-13T12:23:40+01:00
Revert "i386: skip test testDataclassTransformClass_semanal that crashes pytest."
This reverts commit df768548fc3ca7345f88f6affd4f0d97b583c6cf.
- - - - -
cf8c9b1a by Michael R. Crusoe at 2026-03-13T12:24:38+01:00
Revert "python3-orjson is also available on i386."
This reverts commit a3ca4746966ab4a27794284a774efe2db020fd40.
- - - - -
3581c326 by Michael R. Crusoe at 2026-03-13T12:25:55+01:00
Revert python3-orjson for i386, and skipping of a test for i386. It seems that orjson leads to a segfault on i386.
- - - - -
5 changed files:
- debian/changelog
- debian/control
- debian/rules
- debian/tests/control
- debian/tests/run-unit-test
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+mypy (1.19.1-6) unstable; urgency=medium
+
+ * Revert python3-orjson for i386, and skipping of a test for i386. It
+ seems that orjson leads to a segfault on i386.
+
+ -- Michael R. Crusoe <crusoe at debian.org> Fri, 13 Mar 2026 12:25:42 +0100
+
mypy (1.19.1-5) unstable; urgency=medium
* i386: skip "testDataclassTransformClass_semanal" that crashes pytest
=====================================
debian/control
=====================================
@@ -39,7 +39,7 @@ Build-Depends: debhelper-compat (= 13),
python-attr-doc <!nodoc>,
python3-myst-parser <!nodoc>,
python3-sphinx-inline-tabs <!nodoc>,
- python3-orjson [!alpha !hppa !m68k !sh4 !x32] <!nocheck>
+ python3-orjson [!i386 !alpha !hppa !m68k !sh4 !x32] <!nocheck>
Standards-Version: 4.7.2
Vcs-Browser: https://salsa.debian.org/python-team/packages/mypy
Vcs-Git: https://salsa.debian.org/python-team/packages/mypy.git
@@ -95,7 +95,7 @@ Depends: ${misc:Depends},
python3-librt
Recommends: python3-lxml,
python3-setuptools,
- python3-orjson [!alpha !hppa !m68k !sh4 !x32]
+ python3-orjson [!i386 !alpha !hppa !m68k !sh4 !x32]
Description: public modules for mypy (Python 3)
Add type annotations to your Python programs, and use mypy to type check them.
Mypy is essentially a Python linter on steroids, and it can catch many
=====================================
debian/rules
=====================================
@@ -12,10 +12,6 @@ ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf mips64el hppa riscv64 mipsel alpha
export MYPYC_MULTI_FILE=1
endif
-ifneq (,$(filter $(DEB_HOST_ARCH),i386))
- EXTRA_SKIP=or testDataclassTransformClass_semanal
-endif
-
ifneq ($(filter pkg.mypy.multifile,$(DEB_BUILD_PROFILES)),)
export MYPYC_MULTI_FILE=1
endif
@@ -95,7 +91,7 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_PROFILES)))
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%) \
- -o testpaths="mypy/test mypyc/test" -o python_files=test*.py -k 'not (testCustomTypeshedDirWithRelativePathDoesNotCrash or testNoPython3StubAvailable or testIgnoreImportIfNoPython3StubAvailable or PEP561Suite or testDaemonStatusKillRestartRecheck $(EXTRA_SKIP))' \
+ -o testpaths="mypy/test mypyc/test" -o python_files=test*.py -k 'not (testCustomTypeshedDirWithRelativePathDoesNotCrash or testNoPython3StubAvailable or testIgnoreImportIfNoPython3StubAvailable or PEP561Suite or testDaemonStatusKillRestartRecheck)' \
-o python_classes= -o python_functions= ; \
done
# testIgnoreImportIfNoPython3StubAvailable fails due to scribe not being installed (it isn't packaged for Debian)
=====================================
debian/tests/control
=====================================
@@ -8,7 +8,7 @@ Depends: gcc, g++,
python3-pytest-xdist,
python3-setuptools,
python3-tomli,
- python3-orjson [!alpha !hppa !m68k !sh4 !x32],
+ python3-orjson [!i386 !alpha !hppa !m68k !sh4 !x32],
python3-typeshed (>= 0.0~git20221107.4f381af),
python3-virtualenv,
python3-all-venv
=====================================
debian/tests/run-unit-test
=====================================
@@ -31,12 +31,8 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export MYPYC_DEBUG_LEVEL=2
export TEST_MYPYC=1
-if [ "$(dpkg-architecture -qDEB_BUILD_ARCH)" = "i386" ]; then
- EXTRA_SKIP="or testDataclassTransformClass_semanal"
-fi
-
set -e; for v in $(py3versions -vs) ; do
-python${v} -m pytest -n $(nproc) -v -o testpaths="mypy/test mypyc/test" -o python_files=test*.py -o python_classes= -o python_functions= -k "not (test_bad_eq_version_check or test_bad_ge_version_check or test_parse_invalid_case or test_parse_invalid_section or test_update_data or testDaemonStatusKillRestartRecheck or testErrorCodeMissingModule or testErrorFromGoogleCloud or testCustomTypeshedDirWithRelativePathDoesNotCrash or testLibraryStubsNotInstalled or testIgnoreImportIfNoPython3StubAvailable or testNoPython3StubAvailable or testAttrsClass_semanal or testRunAsyncMiscTypesInEnvironment ${EXTRA_SKIP})"
+python${v} -m pytest -n $(nproc) -v -o testpaths="mypy/test mypyc/test" -o python_files=test*.py -o python_classes= -o python_functions= -k "not (test_bad_eq_version_check or test_bad_ge_version_check or test_parse_invalid_case or test_parse_invalid_section or test_update_data or testDaemonStatusKillRestartRecheck or testErrorCodeMissingModule or testErrorFromGoogleCloud or testCustomTypeshedDirWithRelativePathDoesNotCrash or testLibraryStubsNotInstalled or testIgnoreImportIfNoPython3StubAvailable or testNoPython3StubAvailable or testAttrsClass_semanal or testRunAsyncMiscTypesInEnvironment)"
done
# testErrorCodeMissingModule: different error message on Debian
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/df768548fc3ca7345f88f6affd4f0d97b583c6cf...3581c326ce8ec38b08f41e3a8ec0cf863bd9eef1
--
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/df768548fc3ca7345f88f6affd4f0d97b583c6cf...3581c326ce8ec38b08f41e3a8ec0cf863bd9eef1
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/20260316/93c939fa/attachment-0001.htm>
More information about the debian-med-commit
mailing list