[med-svn] [mypy] 06/07: Provide the modules in python3-mypy

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Nov 13 16:59:36 UTC 2017


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository mypy.

commit 272f6e22d1e78fee5c46c17e32f81ebfefa73a48
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Mon Nov 13 16:03:56 2017 +0000

    Provide the modules in python3-mypy
    
    Gbp-Dch: Short
    Closes: #879195
---
 debian/control | 19 ++++++++++++++++++-
 debian/rules   |  8 +++++++-
 2 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index b2f410c..afdda4e 100644
--- a/debian/control
+++ b/debian/control
@@ -24,7 +24,8 @@ X-Python3-Version: >= 3.2
 Package: mypy
 Architecture: all
 Depends: ${misc:Depends},
-         ${python3:Depends}
+         ${python3:Depends},
+         python3-mypy
 Suggests: mypy-doc
 Description: optional static typing for Python
  Add type annotations to your Python programs, and use mypy to type check them.
@@ -49,3 +50,19 @@ Description: documentation for mypy
  gradual typing, generics and union types.
  .
  This package provides the documentation.
+
+Package: python3-mypy
+Architecture: all
+Section: python
+Depends: ${misc:Depends},
+         ${python3:Depends}
+Breaks: mypy (<< 0.540-2)
+Replaces: mypy (<< 0.540-2)
+Description: public modules for mypy (Python 3)
+ 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
+ programming errors by analyzing your program, without actually having to run
+ it. Mypy has a powerful type system with features such as type inference,
+ gradual typing, generics and union types.
+ .
+ This package provides the modules for Python 3.
diff --git a/debian/rules b/debian/rules
index 391f3b3..ef99262 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,9 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-export PYBUILD_NAME = mypy
+export PYBUILD_NAME=mypy
+export PYBUILD_DESTDIR_python3=debian/python3-$(PYBUILD_NAME)
+
 export PYBUILD_DISABLE=test
 PPATH=$(CURDIR)
 PY3V=$(shell py3versions -dv)
@@ -26,3 +28,7 @@ override_dh_auto_clean:
 	rm -f debian/*.1
 	dh_auto_clean
 	$(MAKE) -C docs clean
+
+override_dh_auto_install:
+	dh_auto_install
+	dh_movefiles --package=mypy --sourcedir=$(PYBUILD_DESTDIR_python3) usr/bin

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/mypy.git



More information about the debian-med-commit mailing list