[med-svn] [Git][med-team/mypy][master] 2 commits: Another round of -O tweaking
Michael R. Crusoe
gitlab at salsa.debian.org
Wed Oct 30 09:36:16 GMT 2019
Michael R. Crusoe pushed to branch master at Debian Med / mypy
Commits:
9ce13e0a by Michael R. Crusoe at 2019-10-30T09:01:35Z
Another round of -O tweaking
No urgency now, the package builds for all the major architectures in
Debian
- - - - -
221e0f4b by Michael R. Crusoe at 2019-10-30T09:36:08Z
run tests for all installed versions of Python
- - - - -
2 changed files:
- debian/changelog
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+mypy (0.740-7) UNRELEASED; urgency=low
+
+ * Give up trying to build on the alpha architecture, switch to pure Python
+ there.
+ * Demote riscv64 to -O1 and m68k to -O0
+ * Prepare for coming Python3.8 transition and run the tests using all
+ installed Python versions.
+
+ -- Michael R. Crusoe <michael.crusoe at gmail.com> Wed, 30 Oct 2019 09:59:41 +0100
+
mypy (0.740-6) unstable; urgency=medium
* As MYPYC enabled builds are not working on mips64el, mipsel, ia64, powerpc, or
=====================================
debian/rules
=====================================
@@ -1,11 +1,10 @@
#!/usr/bin/make -f
SHELL=bash # needed for the <(echo …) process subsitution temporary file
-# tricks with help2man
+ # tricks with help2man
export DH_VERBOSE=1
export PYBUILD_DESTDIR_python3=debian/python3-mypy
export PYBUILD_NAME=mypy
-PPATH=$(CURDIR)
-PY3V=$(shell py3versions -dv)
+PY3VERS=$(shell py3versions -vr)
include /usr/share/dpkg/pkg-info.mk
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
@@ -14,11 +13,9 @@ endif
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
include /usr/share/dpkg/default.mk
-ifneq (,$(filter $(DEB_HOST_ARCH),riscv64))
- export MYPYC_OPT_LEVEL=2
-else ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf m68k))
+ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf riscv64))
export MYPYC_OPT_LEVEL=1
-else ifneq (,$(filter $(DEB_HOST_ARCH),alpha))
+else ifneq (,$(filter $(DEB_HOST_ARCH),m68k))
export MYPYC_OPT_LEVEL=0
endif
@@ -46,7 +43,7 @@ debian/stubgen_options.rst: docs/source/stubgen.rst
sed -n -e '/stubgen --help/,$$ {/stubgen --help/d; p}' $< > $@
override_dh_auto_build: manpages
-ifneq (,$(filter $(DEB_HOST_ARCH),mips64el mipsel ia64 powerpc sh4))
+ifneq (,$(filter $(DEB_HOST_ARCH),mips64el mipsel alpha ia64 powerpc sh4))
MYPY_USE_MYPYC=0 dh_auto_build
else
MYPY_USE_MYPYC=1 dh_auto_build
@@ -73,9 +70,11 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_PROFILES)))
PYBUILD_TEST_ARGS="{interpreter} -m mypy \
--config-file {dir}/mypy_self_check.ini -p mypy" dh_auto_test
dh_auto_install
- PATH=$$PATH:$(CURDIR)/debian/mypy/usr/bin/ pytest-3 -n auto \
- -o testpaths=mypy/test -o python_files=test*.py \
- -o python_classes= -o python_functions=
+ set -e; for v in $(PY3VERS); do \
+ PATH=$$PATH:$(CURDIR)/debian/mypy/usr/bin/ python$$v -m pytest -n auto \
+ -o testpaths=mypy/test -o python_files=test*.py \
+ -o python_classes= -o python_functions=; \
+ done
endif
.PHONY: manpages
View it on GitLab: https://salsa.debian.org/med-team/mypy/compare/67971207e6f025bc5678601dbc49e48a4dd6e284...221e0f4b725cfd99425b4b7934b8422b52ce30af
--
View it on GitLab: https://salsa.debian.org/med-team/mypy/compare/67971207e6f025bc5678601dbc49e48a4dd6e284...221e0f4b725cfd99425b4b7934b8422b52ce30af
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/20191030/59388fda/attachment-0001.html>
More information about the debian-med-commit
mailing list