[Python-modules-commits] [ansi] 03/04: add initial Debian packaging

Muri Nicanor muri-guest at moszumanska.debian.org
Sun Sep 10 10:21:07 UTC 2017


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

muri-guest pushed a commit to branch master
in repository ansi.

commit 14de1ff2c2aec2bf8ac259443d8346f3b66dc943
Author: Muri Nicanor <muri at immerda.ch>
Date:   Sun Sep 10 10:43:23 2017 +0200

    add initial Debian packaging
---
 debian/.git-dpm         |  3 +++
 debian/changelog        |  6 ++++++
 debian/compat           |  1 +
 debian/control          | 45 +++++++++++++++++++++++++++++++++++++++++++++
 debian/copyright        | 33 +++++++++++++++++++++++++++++++++
 debian/python-ansi.docs |  2 ++
 debian/rules            |  5 +++++
 debian/source/options   |  1 +
 debian/watch            |  4 ++++
 9 files changed, 100 insertions(+)

diff --git a/debian/.git-dpm b/debian/.git-dpm
index ba7f373..5f72098 100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@ -6,3 +6,6 @@
 ansi_0.1.3.orig.tar.gz
 5b9981073bbc85fff03e31b6d052099500ff5a93
 4156
+debianTag="debian/%e%v"
+patchedTag="patched/%e%v"
+upstreamTag="upstream/%e%u"
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..48b2fc6
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+ansi (0.1.3-1) unstable; urgency=low
+
+  * Initial release (closes: #NNNNNN)
+
+ -- Muri Nicanor <muri at immerda.ch>  Sun, 10 Sep 2017 08:43:13 +0000
+
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..6d350c3
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,45 @@
+Source: ansi
+Section: python
+Priority: optional
+Maintainer: Muri Nicanor <muri at immerda.ch>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 9), dh-python,
+               python-all,
+Standards-Version: 4.0.0
+Homepage: https://github.com/tehmaze/ansi/
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/ansi.git
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/ansi.git
+
+Package: python-ansi
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends},
+Recommends: ${python:Recommends}
+Suggests: ${python:Suggests}
+Description: cursor movement and graphics - Python 2.X
+ Various ANSI escape codes, used in moving the cursor in a text console or
+ rendering coloured text.
+ .
+ .
+ Example
+ -------
+ .
+ Print something in bold yellow on a red background::
+ .
+     >>> from ansi.colour import fg, bg, reset
+     >>> print map(str, [bg.red, fg.yellow, 'Hello world!', reset])
+     ...
+ .
+ If you like syntactic sugar, you may also do::
+ .
+     >>> print bg.red(fg.yellow('Hello world!'))
+     ...
+ .
+ Also, 256 RGB colors are supported::
+ .
+     >>> from ansi.colour import rgb, reset
+     >>> print rgb(0xff, 0x80, 0x00) + 'hello world' + reset
+     ...
+ .
+ If you prefer to use American English in stead::
+ .
+     >>> from ansi.color import ...
\ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..143bd62
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ansi
+Upstream-Contact: Wijnand Modderman-Lenstra <maze at pyth0n.org>
+Source: https://github.com/tehmaze/ansi/
+
+Files: *
+Copyright: (c) 2015 Wijnand Modderman-Lenstra <maze at pyth0n.org>
+License: 
+
+Files: debian/*
+Copyright: 2017 © Muri Nicanor <muri at immerda.ch>
+License: 
+
+License: 
+ Copyright (c) 2015 Wijnand Modderman-Lenstra <maze at pyth0n.org>
+ .
+ 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.
\ No newline at end of file
diff --git a/debian/python-ansi.docs b/debian/python-ansi.docs
new file mode 100644
index 0000000..5a01470
--- /dev/null
+++ b/debian/python-ansi.docs
@@ -0,0 +1,2 @@
+README
+README.md
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8764ccb
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,5 @@
+#! /usr/bin/make -f
+
+export PYBUILD_NAME=ansi
+%:
+	dh $@ --with python2 --buildsystem=pybuild
\ No newline at end of file
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..d81db3f
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore="^[^/]+.egg-info/"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..8535eb9
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# try also https://pypi.debian.net/ansi/watch
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/ansi/ansi-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/ansi.git



More information about the Python-modules-commits mailing list