Skip to content
Commits on Source (3)
mypy (0.740-2) UNRELEASED; urgency=medium
mypy (0.740-2) unstable; urgency=medium
* Incorporate high quality hand written manual pages courtesy of
Andrej Shadura <andrew.shadura@collabora.co.uk>
-- Michael R. Crusoe <michael.crusoe@gmail.com> Wed, 23 Oct 2019 19:15:46 +0200
* Reduce optimization level during the build for the armel, alpha, m68k,
powerpc, and sh4 archs
* Added missing importlib-metadata build-dep for pytest on some archs where
this isn't happening automatically: ppc64 riscv64 x32
* /usr/bin/{mypy,dmypy,stubgen} was accidentally included in python3-mypy when
build standalone. Fixed this and added a breaks & replaces on the older
version. Closes: #943357
-- Michael R. Crusoe <michael.crusoe@gmail.com> Thu, 24 Oct 2019 16:49:06 +0200
mypy (0.740-1) unstable; urgency=medium
......
......@@ -21,7 +21,9 @@ Build-Depends: debhelper-compat (= 12),
python3-mypy-extensions,
python3-typing-extensions,
python3-virtualenv <!nocheck>,
python3-all-dev
python3-all-dev,
python3-importlib-metadata [ppc64 riscv64 x32]
# Don't know why those architectures aren't pulling in the python3-importlib-metadata package automatically
Standards-Version: 4.4.0
Vcs-Browser: https://salsa.debian.org/med-team/mypy
Vcs-Git: https://salsa.debian.org/med-team/mypy.git
......@@ -33,6 +35,8 @@ Depends: ${misc:Depends},
${python3:Depends},
python3-mypy (>= ${binary:Version})
Suggests: mypy-doc
Breaks: python3-mypy (= 0.740-1)
Replaces: python3-mypy (= 0.740-1)
Description: optional static typing for Python
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
......
......@@ -13,6 +13,10 @@ ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
endif
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
include /usr/share/dpkg/default.mk
ifneq (,$(filter $(DEB_HOST_ARCH),armel alpha m68k powerpc sh4))
export MYPYC_OPT_LEVEL=2
endif
%:
dh $@ --with python3$(WITH) --buildsystem=pybuild
......@@ -51,6 +55,7 @@ endif
override_dh_auto_install:
dh_auto_install
dh_movefiles --package=mypy --sourcedir=debian/python3-mypy usr/bin
rm -Rf debian/python3-mypy/usr/bin
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_PROFILES)))
......