[med-svn] [Git][python-team/packages/mypy][debian/experimental] 2 commits: d/tests/run-unit-test: match the breadth of testing done during build-time

Michael R. Crusoe (@crusoe) gitlab at salsa.debian.org
Wed May 28 16:56:59 BST 2025



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


Commits:
69c04664 by Michael R. Crusoe at 2025-05-28T17:56:21+02:00
d/tests/run-unit-test: match the breadth of testing done during build-time

- - - - -
02c2cd72 by Michael R. Crusoe at 2025-05-28T17:56:21+02:00
release to experimental

- - - - -


4 changed files:

- debian/changelog
- debian/rules
- debian/tests/control
- debian/tests/run-unit-test


Changes:

=====================================
debian/changelog
=====================================
@@ -1,12 +1,13 @@
-mypy (1.16~rc0.1-1) UNRELEASED; urgency=medium
+mypy (1.16~rc0.1-1) experimental; urgency=medium
 
-  * New upstream snapshot: https://github.com/python/mypy/commit/334469f999c5c777124a123062b4349614447e0d
+  * New upstream snapshot: https://github.com/python/mypy/commit/
+    334469f999c5c777124a123062b4349614447e0d
   * d/patches: drop 3 patches applied upstream: 0005-pythoncapi_compat-
     don-t-define-Py_NULL-if-it-is-alre, gnu-hurd-getsockname, replace-
     old-typing_extensions-imports
   * d/control: new build requirement: python3-pathspec
 
- -- Michael R. Crusoe <crusoe at debian.org>  Wed, 28 May 2025 12:59:16 +0200
+ -- Michael R. Crusoe <crusoe at debian.org>  Wed, 28 May 2025 13:42:43 +0200
 
 mypy (1.15.0-5) unstable; urgency=medium
 


=====================================
debian/rules
=====================================
@@ -2,7 +2,7 @@
 export DH_VERBOSE=1
 export PYBUILD_DESTDIR_python3=debian/python3-mypy
 export PYBUILD_NAME=mypy
-PY3VERS=$(shell py3versions -vr)
+PY3VERS=$(shell py3versions -vs)
 
 include /usr/share/dpkg/default.mk
 


=====================================
debian/tests/control
=====================================
@@ -2,6 +2,7 @@ Tests: run-unit-test
 Depends: gcc, g++,
          @,
          python3-dev,
+         python3-attr,
          python3-lxml,
          python3-pytest (>= 8.1.0),
          python3-pytest-xdist,
@@ -9,5 +10,6 @@ Depends: gcc, g++,
          python3-tomli,
          python3-orjson [!i386 !alpha !hppa !m68k !sh4 !x32],
          python3-typeshed (>= 0.0~git20221107.4f381af),
-         python3-virtualenv
+         python3-virtualenv,
+         python3-all-venv
 Restrictions: allow-stderr


=====================================
debian/tests/run-unit-test
=====================================
@@ -23,9 +23,27 @@ rm -Rf mypy mypyc
 
 cp -r /usr/lib/python3/dist-packages/mypy ./
 cp -r /usr/lib/python3/dist-packages/mypyc ./
+cp ${START}/conftest.py ./
+cp -r ${START}/mypyc/test-data ./mypyc/
+cp -r ${START}/test-data ./
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+export MYPYC_DEBUG_LEVEL=2
+export TEST_MYPYC=1
+
+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)"
+done
+
+# testErrorCodeMissingModule: different error message on Debian
+# testErrorFromGoogleCloud: different error message on Debian
+# testCustomTypeshedDirWithRelativePathDoesNotCrash: ???
+# testLibraryStubsNotInstalled: different error message on Debian
+# testIgnoreImportIfNoPython3StubAvailable: package 'scribe' in not yet available in Debian
+# testNoPython3StubAvailable: different error message on Debian
+# testAttrsClass_semanal: ???
+# testRunAsyncMiscTypesInEnvironment: ???
 
-mypy_test_prefix=${start} pytest-3 -v --pyargs mypy -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)"
-mypy_test_prefix=${start} pytest-3 -v --pyargs mypyc
 
 rm -Rf mypy/typeshed
 /usr/bin/mypy --config-file ${START}/mypy_self_check.ini mypy



View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/7ad645de6a185e481d7aad562d0740987a091fa7...02c2cd72bd9e725a9355aece17f1a980c1a1b69c

-- 
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/7ad645de6a185e481d7aad562d0740987a091fa7...02c2cd72bd9e725a9355aece17f1a980c1a1b69c
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/20250528/9a5ff9aa/attachment-0001.htm>


More information about the debian-med-commit mailing list