[med-svn] [Git][med-team/mypy][master] 3 commits: adjust builds on other archs

Michael R. Crusoe gitlab at salsa.debian.org
Thu Oct 24 15:59:33 BST 2019



Michael R. Crusoe pushed to branch master at Debian Med / mypy


Commits:
f63681db by Michael R. Crusoe at 2019-10-24T07:48:47Z
adjust builds on other archs

- - - - -
9d12ee4e by Michael R. Crusoe at 2019-10-24T14:38:32Z
ensure that nothing for /usr/bin ends up in python3-mypy

- - - - -
0122706b by Michael R. Crusoe at 2019-10-24T14:50:01Z
release

- - - - -


3 changed files:

- debian/changelog
- debian/control
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,9 +1,16 @@
-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 at collabora.co.uk>
-
- -- Michael R. Crusoe <michael.crusoe at 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 at gmail.com>  Thu, 24 Oct 2019 16:49:06 +0200
 
 mypy (0.740-1) unstable; urgency=medium
 


=====================================
debian/control
=====================================
@@ -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


=====================================
debian/rules
=====================================
@@ -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)))



View it on GitLab: https://salsa.debian.org/med-team/mypy/compare/202c124313e0859008490fa7e5df6ff77104b9f3...0122706b80b00cadb295a7de3d45aaa2d05d7c59

-- 
View it on GitLab: https://salsa.debian.org/med-team/mypy/compare/202c124313e0859008490fa7e5df6ff77104b9f3...0122706b80b00cadb295a7de3d45aaa2d05d7c59
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/20191024/8a7183ee/attachment-0001.html>


More information about the debian-med-commit mailing list