[med-svn] [mypy] 02/02: initial Debianization

Michael Crusoe misterc-guest at moszumanska.debian.org
Thu May 5 13:58:27 UTC 2016


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

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

commit 64593967d0005a6040d3850537c97f01b6b15c30
Author: Michael R. Crusoe <crusoe at ucdavis.edu>
Date:   Thu May 5 06:05:37 2016 -0700

    initial Debianization
---
 debian/changelog     |  5 +++++
 debian/compat        |  1 +
 debian/control       | 25 +++++++++++++++++++++++++
 debian/copyright     | 30 ++++++++++++++++++++++++++++++
 debian/mypy.manpages |  1 +
 debian/rules         | 22 ++++++++++++++++++++++
 debian/source/format |  1 +
 debian/watch         |  4 ++++
 8 files changed, 89 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..b017440
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+mypy (0.3.1-1) UNRELEASED; urgency=medium
+
+  * Initial release. (Closes: #823512)
+
+ -- Michael R. Crusoe <michael.crusoe at gmail.com>  Thu, 05 May 2016 06:00:25 -0700
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..8d7ac72
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,25 @@
+Source: mypy
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Michael R. Crusoe <michael.crusoe at gmail.com>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python3-all,
+               python3-setuptools,
+               help2man
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/mypy.git
+Vcs-Git: https://anonscm.debian.org/git/debian-med/mypy.git
+Homepage: http://www.mypy-lang.org/
+X-Python3-Version: >= 3.2
+
+Package: mypy
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+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
+ 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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..80ee337
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,30 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: mypy
+Source: https://pypi.python.org/pypi/mypy-lang
+
+Files: *
+Copyright: © 2015-2016 Jukka Lehtosalo and contributors
+License: MIT
+
+Files: debian/*
+Copyright: © 2016 Michael R. Crusoe <michael.crusoe at gmail.com>
+License: MIT
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
diff --git a/debian/mypy.manpages b/debian/mypy.manpages
new file mode 100644
index 0000000..0f65186
--- /dev/null
+++ b/debian/mypy.manpages
@@ -0,0 +1 @@
+debian/*.1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e668ff7
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+DEBVERS        := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
+VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
+export PYBUILD_NAME = mypy-lang
+%:
+	dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_auto_build:
+	dh_auto_build
+	PYTHONPATH=$(CURDIR) help2man build/*/mypy --no-info \
+		   --version-string="${VERSION}" \
+		   --name 'Optional Static Typing for Python' > debian/mypy.1
+	PYTHONPATH=$(CURDIR) help2man build/*/stubgen --no-info \
+		   --no-discard-stderr --version-string="${VERSION}" \
+		   --name 'Generate draft stubs for Python modules.' > \
+		   debian/stubgen.1
+
+override_dh_auto_clean:
+	rm -f debian/*.1
+	dh_auto_clean
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..1816d93
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/mypy-lang/mypy-lang-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
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