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


Commits:
300f8d49 by Michael R. Crusoe at 2025-11-30T11:09:51+01:00
d/rules: cope with no "parallel" setting in DEB_BUILD_OPTIONS

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+mypy (1.19.0-2) UNRELEASED; urgency=medium
+
+  * d/rules: cope with no "parallel" setting in DEB_BUILD_OPTIONS
+
+ -- Michael R. Crusoe <[email protected]>  Sun, 30 Nov 2025 11:08:07 +0100
+
 mypy (1.19.0-1) unstable; urgency=medium
 
   * New upstream version


=====================================
debian/rules
=====================================
@@ -47,9 +47,13 @@ debian/sphinx/stubgen_options.rst: docs/source/stubgen.rst
        sed -n -e '/stubgen --help/,$$ {/stubgen --help/d; p}' $< > $@
 
 override_dh_auto_build-arch:
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
        echo "[build_ext]\nparallel=$(DEB_BUILD_OPTION_PARALLEL)\n" > 
$(CURDIR)/debian/extra-setup.cfg
        DIST_EXTRA_CONFIG=$(CURDIR)/debian/extra-setup.cfg MYPY_USE_MYPYC=1 
dh_auto_build
        rm $(CURDIR)/debian/extra-setup.cfg
+else
+       MYPY_USE_MYPYC=1 dh_auto_build
+endif
 
 override_dh_auto_build-indep: manpages
        MYPY_USE_MYPYC=0 dh_auto_build
@@ -86,7 +90,7 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_PROFILES)))
                --config-file {dir}/mypy_self_check.ini -p mypy" 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 -n $(DEB_BUILD_OPTION_PARALLEL) \
+               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)' \
                -o python_classes= -o python_functions= ; \
        done



View it on GitLab: 
https://salsa.debian.org/python-team/packages/mypy/-/commit/300f8d49ab58945999a93556364102662f0fc0cc

-- 
View it on GitLab: 
https://salsa.debian.org/python-team/packages/mypy/-/commit/300f8d49ab58945999a93556364102662f0fc0cc
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to