[neon/qt6/pyside6/Neon/unstable] debian: new package

Jonathan Esk-Riddell null at kde.org
Fri Jun 23 14:53:12 BST 2023


Git commit 276fd4275f811f28045a0b45a870b998127fcfab by Jonathan Esk-Riddell.
Committed on 23/06/2023 at 13:53.
Pushed by jriddell into branch 'Neon/unstable'.

new package

A  +5    -0    debian/changelog
A  +55   -0    debian/control
A  +259  -0    debian/copyright
A  +18   -0    debian/rules
A  +1    -0    debian/source/format
A  +1    -0    debian/source/options
A  +163  -0    debian/tests/control
A  +16   -0    debian/tests/control.gen
A  +10   -0    debian/tests/test_install_python3.sh
A  +2    -0    debian/watch

https://invent.kde.org/neon/qt6/pyside6/-/commit/276fd4275f811f28045a0b45a870b998127fcfab

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..48a047e
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+pyside6 (6.5.1.1-0neon) UNRELEASED; urgency=medium
+
+  * New package
+
+ -- Jonathan Esk-Riddell <jr at jriddell.org>  Fri, 23 Jun 2023 14:48:11 +0100
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a14a567
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,55 @@
+Source: pyside6
+Section: python
+Priority: optional
+Maintainer: Jonathan Esk-Riddell <jr at jriddell.org>
+Build-Depends: chrpath,
+               cmake (>= 3.1),
+               debhelper-compat (= 13),
+               dh-python,
+               libclang-dev,
+	       qt6-base-dev,
+               qt6-5compat-dev,
+               qt6-base-dev,
+               qt6-base-dev-tools,
+               qt6-charts-dev,
+               qt6-declarative-dev,
+               qt6-declarative-dev-tools,
+               qt6-location-dev,
+               qt6-phonon-dev,
+               qt6-positioning-dev,
+               qt6-sensors-dev,
+               qt6-shadertools-dev,
+               qt6-svg-dev,
+               qt6-tools-dev,
+               qt6-tools-dev-tools,
+               qt6-wayland-dev,
+               qt6-wayland-dev-tools,
+               qt6-webchannel-dev,
+               qt6-webengine-dev,
+               qt6-webengine-dev-tools,
+               qt6-webview-dev,
+               libxml2-dev,
+               libxslt1-dev,
+               llvm-dev,
+               python3-dev,
+               python3-distro,
+               python3-setuptools,
+               python3-sphinx,
+               python3-sphinx-rtd-theme,
+               python3-wheel,
+               xauth,
+               xvfb
+Rules-Requires-Root: no
+Standards-Version: 4.6.2
+Homepage: https://wiki.qt.io/Qt_for_Python
+
+Package: python3-pyside6
+Architecture: any
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: Python bindings for Qt 6
+ pyside6 provides Python bindings for Qt 6.
+ .
+ Qt is a cross-platform C++ application framework. Qt's primary feature
+ is its rich set of widgets that provide standard GUI functionality.
+ .
+ This package contains the common documentation package.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..88f22cc
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,259 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pyside2
+Source: https://download.qt.io/official_releases/QtForPython/
+
+Files: *
+Copyright: 2016-2020 The Qt Company Ltd.
+License: GPL-2 or GPL-3 or LGPL-3
+
+Files: examples/*
+Copyright: 2016-2018 The Qt Company Ltd.
+           2011 Arun Srinivasan <rulfzid at gmail.com>
+           2010-2013 Riverbank Computing Limited.
+	   2010 Hans-Peter Jansen <hpj at urpla.net>
+	   2010 velociraptor Genjix <aphidia at hotmail.com>
+	   2009 Darryl Wallace, 2009 <wallacdj at gmail.com>
+License: BSD-3-clause
+
+Files: sources/patchelf/*
+Copyright: 2004-2009 Eelco Dolstra <e.dolstra at tudelft.nl>
+License: GPL-3+
+
+Files: sources/patchelf/elf.h
+Copyright: 1995-2008 Free Software Foundation, Inc.
+License: LGPL-2.1+
+
+Files: sources/pyside2/doc/typesystem_doc.xml.in
+ sources/pyside2/doc/codesnippets/*
+ sources/pyside2/doc/tutorials/*
+Copyright: 2016 The Qt Company Ltd.
+License: BSD-3-clause
+
+Files: sources/pyside2/doc/inheritance_diagram.py
+Copyright: 2010-2011 by the PySide team
+           2007-2011 by the Sphinx team
+License: BSD-2-clause
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ .
+ * Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+ .
+ * Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: sources/pyside2/tests/run_test.sh
+ sources/pyside2/tests/Qt*
+ sources/pyside2/tests/mac/qmacstyle_test.py
+ sources/pyside2/tests/manually/*
+ sources/pyside2/tests/pysidetest/*
+ sources/pyside2/tests/signals/*
+ sources/pyside2/tests/util/*
+ sources/shiboken2/ApiExtractor/*
+ sources/shiboken2/generator/*
+ sources/shiboken2/generatorrunnermacros.h
+ sources/shiboken2/generators/*
+ sources/shiboken2/tests/*
+Copyright: 2009 Matthias Klose <doko at debian.org>
+           2002-2005 Roberto Raggi <roberto at kdevelop.org>
+           2011 Thomas Perl <m at thp.io>
+	   2013 Kitware, Inc.
+           2016-2017 The Qt Company Ltd.
+License: GPL-3-EXCEPT
+
+Files: sources/pyside2-tools/*
+Copyright: 2016 The Qt Company Ltd.
+           2010 Riverbank Computing Limited.
+           2009-2011 Nokia Corporation and/or its subsidiary(-ies)
+           2009 Torsten Marek
+           2002-2007 Detlev Offenbach <detlev at die-offenbachs.de>
+           1992-2006 Trolltech AS. All rights reserved.
+License: GPL-2
+
+Files: debian/*
+Copyright: 2018 Sophie Brun <sophie at freexian.com>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+   * Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+   * Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in
+     the documentation and/or other materials provided with the
+     distribution.
+   * Neither the name of The Qt Company Ltd nor the names of its
+     contributors may be used to endorse or promote products derived
+     from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+
+License: GPL-2
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License version 2 as
+ published by the Free Software Foundation.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2"
+
+License: GPL-3
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License version 3 as
+ published by the Free Software Foundation.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3"
+
+License: GPL-3+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3"
+
+License: GPL-3-EXCEPT
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License version 3 as
+ published by the Free Software Foundation, annotated with The Qt Company
+ GPL Exception 1.0:
+ .
+ The Qt Company GPL Exception 1.0
+ .
+ Exception 1:
+ .
+ As a special exception you may create a larger work which contains the
+ output of this application and distribute that work under terms of your
+ choice, so long as the work is not otherwise derived from or based on
+ this application and so long as the work does not in itself generate
+ output that contains the output from this application in its original
+ or modified form.
+ .
+ Exception 2:
+ .
+ As a special exception, you have permission to combine this application
+ with Plugins licensed under the terms of your choice, to produce an
+ executable, and to copy and distribute the resulting executable under
+ the terms of your choice. However, the executable must be accompanied
+ by a prominent notice offering all users of the executable the entire
+ source code to this application, excluding the source code of the
+ independent modules, but including any changes you have made to this
+ application, under the terms of this license.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3"
+
+License: LGPL-2.1+
+ This library 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; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
+ USA
+ .
+ On Debian systems, the complete text of the Lesser GNU General
+ Public License version 2.1 can be found in
+ "/usr/share/common-licenses/LGPL-2.1"
+
+License: LGPL-3
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License version 3 as published by the Free Software Foundation.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
+ USA
+ .
+ On Debian systems, the complete text of the Lesser GNU General
+ Public License version 3 can be found in
+ "/usr/share/common-licenses/LGPL-3"
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..49a87f5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/default.mk
+
+export PYBUILD_NAME=pyside6
+export PYBUILD_SYSTEM=distutils
+export PYBUILD_BUILD_ARGS=--relwithdebinfo --verbose-build --no-examples --build-tests --doc-build-online --ignore-git $(OPTION_JOBS)
+
+export MAIN_VERSION_UPSTREAM := $(shell echo $(DEB_VERSION_UPSTREAM))
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+# Add CPPFLAGS to CXXFLAGS as CMake ignores CPPFLAGS by default
+CXXFLAGS+=$(CPPFLAGS)
+
+# Work around buildd bug (https://bugs.debian.org/842565)
+undefine XDG_RUNTIME_DIR
+
+%:
+	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
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/source/options b/debian/source/options
new file mode 100644
index 0000000..cb61fa5
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore = "^[^/]*[.]egg-info/"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..c4f538b
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,163 @@
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtcore PySide2.QtCore
+Depends: python3-pyside2.qtcore, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtwidgets PySide2.QtWidgets
+Depends: python3-pyside2.qtwidgets, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qt3drender PySide2.Qt3DRender
+Depends: python3-pyside2.qt3drender, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtquick PySide2.QtQuick
+Depends: python3-pyside2.qtquick, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtpositioning PySide2.QtPositioning
+Depends: python3-pyside2.qtpositioning, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtx11extras PySide2.QtX11Extras
+Depends: python3-pyside2.qtx11extras, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtqml PySide2.QtQml
+Depends: python3-pyside2.qtqml, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtwebenginecore PySide2.QtWebEngineCore
+Depends: python3-pyside2.qtwebenginecore, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qttexttospeech PySide2.QtTextToSpeech
+Depends: python3-pyside2.qttexttospeech, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qthelp PySide2.QtHelp
+Depends: python3-pyside2.qthelp, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtscripttools PySide2.QtScriptTools
+Depends: python3-pyside2.qtscripttools, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtnetwork PySide2.QtNetwork
+Depends: python3-pyside2.qtnetwork, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtmultimediawidgets PySide2.QtMultimediaWidgets
+Depends: python3-pyside2.qtmultimediawidgets, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtlocation PySide2.QtLocation
+Depends: python3-pyside2.qtlocation, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qt3dlogic PySide2.Qt3DLogic
+Depends: python3-pyside2.qt3dlogic, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtsensors PySide2.QtSensors
+Depends: python3-pyside2.qtsensors, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtmultimedia PySide2.QtMultimedia
+Depends: python3-pyside2.qtmultimedia, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtscript PySide2.QtScript
+Depends: python3-pyside2.qtscript, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtwebchannel PySide2.QtWebChannel
+Depends: python3-pyside2.qtwebchannel, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtprintsupport PySide2.QtPrintSupport
+Depends: python3-pyside2.qtprintsupport, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtquickwidgets PySide2.QtQuickWidgets
+Depends: python3-pyside2.qtquickwidgets, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qt3dinput PySide2.Qt3DInput
+Depends: python3-pyside2.qt3dinput, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qt3dextras PySide2.Qt3DExtras
+Depends: python3-pyside2.qt3dextras, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtxml PySide2.QtXml
+Depends: python3-pyside2.qtxml, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qttest PySide2.QtTest
+Depends: python3-pyside2.qttest, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtwebenginewidgets PySide2.QtWebEngineWidgets
+Depends: python3-pyside2.qtwebenginewidgets, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtconcurrent PySide2.QtConcurrent
+Depends: python3-pyside2.qtconcurrent, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtxmlpatterns PySide2.QtXmlPatterns
+Depends: python3-pyside2.qtxmlpatterns, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtcharts PySide2.QtCharts
+Depends: python3-pyside2.qtcharts, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtuitools PySide2.QtUiTools
+Depends: python3-pyside2.qtuitools, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtopengl PySide2.QtOpenGL
+Depends: python3-pyside2.qtopengl, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qt3danimation PySide2.Qt3DAnimation
+Depends: python3-pyside2.qt3danimation, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qt3dcore PySide2.Qt3DCore
+Depends: python3-pyside2.qt3dcore, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtsql PySide2.QtSql
+Depends: python3-pyside2.qtsql, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtgui PySide2.QtGui
+Depends: python3-pyside2.qtgui, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtsvg PySide2.QtSvg
+Depends: python3-pyside2.qtsvg, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtwebsockets PySide2.QtWebSockets
+Depends: python3-pyside2.qtwebsockets, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtdatavisualization PySide2.QtDataVisualization
+Depends: python3-pyside2.qtdatavisualization, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtopenglfunctions PySide2.QtOpenGLFunctions
+Depends: python3-pyside2.qtopenglfunctions, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtscxml PySide2.QtScxml
+Depends: python3-pyside2.qtscxml, python3
+Restrictions: allow-stderr, superficial
+
+Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtwebengine PySide2.QtWebEngine
+Depends: python3-pyside2.qtwebengine, python3
+Restrictions: allow-stderr, superficial
diff --git a/debian/tests/control.gen b/debian/tests/control.gen
new file mode 100755
index 0000000..8f6f6f8
--- /dev/null
+++ b/debian/tests/control.gen
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# Remove debian/tests/control
+rm -f debian/tests/control
+
+# Create the basic (import) test for Python 3 modules
+for binary_package in $(dh_listpackages|grep "python3-pyside2.qt"); do
+    module_name=$(echo $binary_package|awk -F. '{print $2}')
+    # find import_name
+    import_name=$(find sources/pyside2/PySide2/ -maxdepth 1 -type d| xargs -n 1 basename|grep -i ^$module_name$)
+    echo "Test-Command: debian/tests/test_install_python3.sh $binary_package PySide2.$import_name
+Depends: $binary_package, python3
+Restrictions: allow-stderr, superficial
+" >>debian/tests/control
+done
+
diff --git a/debian/tests/test_install_python3.sh b/debian/tests/test_install_python3.sh
new file mode 100755
index 0000000..db5b06b
--- /dev/null
+++ b/debian/tests/test_install_python3.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+  
+set -e
+
+echo "Testing python3 package $1"
+for py in $(py3versions -d >/dev/null) ; do
+    cd "$AUTOPKGTEST_TMP" ;
+    echo "Testing with $py:" ;
+    $py -c "import $2; print($2)" ;
+done
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..9a2a2eb
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=4
+https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-([\d\.]+)-src/pyside-setup-everywhere-src- at ANY_VERSION@.tar.xz debian uupdate


More information about the Neon-commits mailing list