[Python-modules-commits] [python-qtpy] 03/05: Initial debianization.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sat Feb 27 13:22:46 UTC 2016


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

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

commit 8bc2e33cf06716a72cf74859711cde1678ada9f0
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Fri Feb 26 19:12:25 2016 +0000

    Initial debianization.
---
 debian/compat        |  1 +
 debian/control       | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/copyright     | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/gbp.conf      |  6 ++++++
 debian/rules         | 13 +++++++++++++
 debian/source/format |  1 +
 debian/tests/control |  7 +++++++
 debian/tests/python2 | 12 ++++++++++++
 debian/tests/python3 | 12 ++++++++++++
 9 files changed, 158 insertions(+)

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..c1154ea
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,54 @@
+Source: python-qtpy
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: python
+Testsuite: autopkgtest
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python-all,
+               python-pyqt5,
+               python-setuptools,
+               python3-all,
+               python3-pyqt5,
+               python3-setuptools
+Standards-Version: 3.9.7
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/pyqt5.git
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/pyqt5.git
+Homepage: https://github.com/spyder-ide/qtpy
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
+
+Package: python-qtpy
+Architecture: all
+Depends: ${misc:Depends},
+         ${python:Depends},
+         python-pyqt5 | python-qt4 | python-pyside
+Description: abtraction layer for PySide/PyQt4/PyQt5 (Python 2)
+ QtPy (pronounced 'cutie pie') is a small abstraction layer that lets you
+ write applications using a single API call to either PyQt or PySide. QtPy
+ also provides a set of additional QWidgets.
+ . 
+ It provides support for PyQt5, PyQt4 and PySide using the PyQt5 layout (where
+ the QtGui module has been split into QtGui and QtWidgets).
+ Basically, you write your code as if you were using PyQt5 but import qt from
+ QtPy instead of PyQt5.
+ .
+ This package provides the QtPy library for the Python 2 interpreter.
+
+Package: python3-qtpy
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends},
+         python3-pyqt5 | python3-pyqt4 | python3-pyside
+Description: abtraction layer for PySide/PyQt4/PyQt5 (Python 3)
+ QtPy (pronounced 'cutie pie') is a small abstraction layer that lets you
+ write applications using a single API call to either PyQt or PySide. QtPy
+ also provides a set of additional QWidgets.
+ . 
+ It provides support for PyQt5, PyQt4 and PySide using the PyQt5 layout (where
+ the QtGui module has been split into QtGui and QtWidgets).
+ Basically, you write your code as if you were using PyQt5 but import qt from
+ QtPy instead of PyQt5.
+ .
+ This package provides the QtPy library for the Python 3 interpreter.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..51fe1c4
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,52 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: qtpy
+Source: https://github.com/spyder-ide/qtpy
+
+Files: *
+Copyright: 2014-2015 Colin Duquesnoy
+           2009-2015 The Spyder Development Team
+License: Expat
+
+Files: debian/*
+Copyright: 2016 Ghislain Antony Vaillant
+License: Expat
+
+Files: qtpy/QtDesigner.py
+Copyright: 2014-2015 Colin Duquesnoy
+License: Expat
+
+Files: qtpy/QtPrintSupport.py
+       qtpy/QtSvg.py
+       qtpy/compat.py
+Copyright: 2009-2015 The Spyder Development Team
+License: Expat
+
+Files: qtpy/py3compat.py
+Copyright: 2012-2013 Pierre Raybaut
+License: Expat
+
+License: Expat
+ 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/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..1615f89
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,6 @@
+[DEFAULT]
+upstream-branch = upstream
+debian-branch = master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+pristine-tar = True
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6e248fa
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME = qtpy
+
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_auto_test:
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_BEFORE_TEST="cp {dir}/tests/travis.py {build_dir}" \
+	PYBUILD_TEST_ARGS="cd {build_dir}; {interpreter} travis.py" \
+	PYBUILD_AFTER_TEST="rm {build_dir}/travis.py" \
+	USE_QT_API=pyqt5 dh_auto_test
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/tests/control b/debian/tests/control
new file mode 100644
index 0000000..fd29268
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,7 @@
+Tests: python2
+Depends: python-all,
+         python-qtpy
+
+Tests: python3
+Depends: python3-all,
+         python3-qtpy
diff --git a/debian/tests/python2 b/debian/tests/python2
new file mode 100755
index 0000000..b772fc8
--- /dev/null
+++ b/debian/tests/python2
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -efu
+
+pys="$(pyversions -r 2>/dev/null)"
+
+cp ./tests/travis.py "$ADTTMP"
+cd "$ADTTMP"
+
+for py in $pys; do
+	echo "=== $py ==="
+	$py travis.py  2>&1
+done
diff --git a/debian/tests/python3 b/debian/tests/python3
new file mode 100755
index 0000000..5d402c5
--- /dev/null
+++ b/debian/tests/python3
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -efu
+
+pys="$(py3versions -r 2>/dev/null)"
+
+cp ./tests/travis.py "$ADTTMP"
+cd "$ADTTMP"
+
+for py in $pys; do
+	echo "=== $py ==="
+	$py travis.py  2>&1
+done

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



More information about the Python-modules-commits mailing list