[Python-modules-commits] [pytest-qt] 02/03: Initial debianisation

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Feb 9 16:45:44 UTC 2017


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

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

commit 387e40fbd876a093f96994671b3eb032b89e5f44
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Feb 8 15:07:17 2017 +0000

    Initial debianisation
---
 debian/changelog                                   |  5 +++
 debian/clean                                       |  1 +
 debian/compat                                      |  1 +
 debian/control                                     | 44 +++++++++++++++++++
 debian/copyright                                   | 51 ++++++++++++++++++++++
 debian/gbp.conf                                    |  7 +++
 .../Fix-query-of-module-version-in-docs.patch      | 22 ++++++++++
 .../Skip-tests-requiring-a-window-manager.patch    | 21 +++++++++
 debian/patches/series                              |  2 +
 debian/pytest-qt-doc.doc-base                      |  9 ++++
 debian/pytest-qt-doc.docs                          |  1 +
 debian/rules                                       | 19 ++++++++
 debian/source/format                               |  1 +
 debian/tests/control                               | 14 ++++++
 debian/watch                                       |  3 ++
 15 files changed, 201 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..1902cdb
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+pytest-qt (2.1.0-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #854365)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Wed, 08 Feb 2017 15:02:28 +0000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..45149aa
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+*.egg-info/*
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..5d2d74c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,44 @@
+Source: pytest-qt
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 10),
+               dh-python,
+               dpkg-dev (>= 1.17.14),
+               python3-all,
+               python3-pytest (>= 2.7.0),
+               python3-setuptools,
+               python3-setuptools-scm,
+               python3-sphinx <!nodoc>,
+               python3-sphinx-rtd-theme <!nodoc>,
+               sphinx-common
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/pytest-qt.git
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/pytest-qt.git
+Homepage: https://github.com/pytest-dev/pytest-qt
+X-Python3-Version: >= 3.4
+
+Package: python3-pytest-qt
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends},
+Suggests: pytest-qt-doc <!nodoc>
+Description: pytest plugin for Qt application testing (Python 3)
+ Pytest-qt is a pytest plugin that allows programmers to write tests for
+ PySide and PyQt applications.
+ .
+ This package provides the Python 3 modules.
+
+Package: pytest-qt-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Built-Using: ${sphinxdoc:Built-Using}
+Description: documentation for pytest-qt
+ Pytest-qt is a pytest plugin that allows programmers to write tests for
+ PySide and PyQt applications.
+ .
+ This package provides the documentation.
+Build-Profiles: <!nodoc>
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..4637682
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,51 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pytest-qt
+Upstream-Contact: Bruno Oliveira <nicoddemus at gmail.com>
+Source: https://pypi.python.org/pypi/pytest-qt
+
+Files: *
+Copyright: 2013-2016 Bruno Oliveira and others
+License: Expat
+
+Files: debian/*
+Copyright: 2017 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: Expat
+
+Files: pytestqt/modeltest.py
+Copyright: 2015 The Qt Company Ltd.
+License: LGPL-2.1 or LGPL-3
+
+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.
+
+License: LGPL-2.1
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; version 2.1 of the License.
+ .
+ On Debian systems, the complete text of version 2.1 of the GNU Lesser
+ General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'.
+
+License: LGPL-3
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; version 3 of the License.
+ .
+ On Debian systems, the complete text of version 3 of the GNU Lesser
+ General Public License can be found in `/usr/share/common-licenses/LGPL-3'.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..f53906f
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+upstream-branch = upstream
+debian-branch = master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+sign-tags = True
+pristine-tar = True
diff --git a/debian/patches/Fix-query-of-module-version-in-docs.patch b/debian/patches/Fix-query-of-module-version-in-docs.patch
new file mode 100644
index 0000000..d9b39fe
--- /dev/null
+++ b/debian/patches/Fix-query-of-module-version-in-docs.patch
@@ -0,0 +1,22 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Wed, 8 Feb 2017 15:09:59 +0000
+Subject: Fix query of module version in docs
+
+---
+ docs/conf.py | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/docs/conf.py b/docs/conf.py
+index 7dae585..a4cf838 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -47,8 +47,7 @@ copyright = u'2013, Bruno Oliveira'
+ # |version| and |release|, also used in various other places throughout the
+ # built documents.
+ #
+-import pkg_resources
+-version = pkg_resources.get_distribution('pytest-qt').version
++from pytestqt import version
+ # The short X.Y version.
+ # The full version, including alpha/beta/rc tags.
+ 
diff --git a/debian/patches/Skip-tests-requiring-a-window-manager.patch b/debian/patches/Skip-tests-requiring-a-window-manager.patch
new file mode 100644
index 0000000..9222992
--- /dev/null
+++ b/debian/patches/Skip-tests-requiring-a-window-manager.patch
@@ -0,0 +1,21 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Wed, 8 Feb 2017 15:48:08 +0000
+Subject: Skip tests requiring a window manager
+
+---
+ tests/test_basics.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test_basics.py b/tests/test_basics.py
+index 0464cb8..c884764 100644
+--- a/tests/test_basics.py
++++ b/tests/test_basics.py
+@@ -70,7 +70,7 @@ def test_stop_for_interaction(qtbot, timer):
+     qtbot.stopForInteraction()
+ 
+ 
+- at pytest.mark.parametrize('show', [True, False])
++ at pytest.mark.parametrize('show', [False])
+ @pytest.mark.parametrize('method_name', ['waitExposed', 'waitActive'])
+ def test_wait_window(show, method_name, qtbot):
+     """
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4a606ca
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+Fix-query-of-module-version-in-docs.patch
+Skip-tests-requiring-a-window-manager.patch
diff --git a/debian/pytest-qt-doc.doc-base b/debian/pytest-qt-doc.doc-base
new file mode 100644
index 0000000..d03df27
--- /dev/null
+++ b/debian/pytest-qt-doc.doc-base
@@ -0,0 +1,9 @@
+Document: pytest-qt-doc
+Title: pytest-qt Documentation
+Author: Bruno Oliveira
+Abstract: This is the reference documentation for the pytest-qt library.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/pytest-qt-doc/html/index.html
+Files: /usr/share/doc/pytest-qt-doc/html/*.html
diff --git a/debian/pytest-qt-doc.docs b/debian/pytest-qt-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/pytest-qt-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..09394ba
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+export PYBUILD_NAME = pytest-qt
+# The tests can only be run against the installed package.
+export PYBUILD_DISABLE = test
+
+%:
+	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_build: export http_proxy=127.0.0.1:9
+override_dh_auto_build: export https_proxy=127.0.0.1:9
+override_dh_auto_build:
+	dh_auto_build
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
+	PYTHONPATH=. sphinx-build -N -b html docs build/html
+endif
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..5131062
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,14 @@
+Test-Command: cp -a tests $AUTOPKGTEST_TMP
+ ; cd $AUTOPKGTEST_TMP
+ ; PYTEST_QT_API=pyqt5 xvfb-run -a python3 -m pytest tests
+Depends: python3-pyqt5, python3-pytest-qt, xauth, xvfb
+
+Test-Command: cp -a tests $AUTOPKGTEST_TMP
+ ; cd $AUTOPKGTEST_TMP
+ ; PYTEST_QT_API=pyside xvfb-run -a python3 -m pytest tests
+Depends: python3-pyside, python3-pytest-qt, xauth, xvfb
+
+Test-Command: cp -a tests $AUTOPKGTEST_TMP
+ ; cd $AUTOPKGTEST_TMP
+ ; PYTEST_QT_API=pyqt4 xvfb-run -a python3 -m pytest tests
+Depends: python3-pyqt4, python3-pytest-qt, xauth, xvfb
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..887f5d3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/@PACKAGE@/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@

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



More information about the Python-modules-commits mailing list