Skip to content
Commits on Source (2)
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@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
......
......@@ -4,8 +4,7 @@ SHELL=bash # needed for the <(echo …) process subsitution temporary file
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 \
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=
-o python_classes= -o python_functions=; \
done
endif
.PHONY: manpages