-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fanyx
committed
Jan 30, 2023
1 parent
c2f1dfa
commit 6c2b9af
Showing
8 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python3-pyside6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python3-pyside6 |
27 changes: 27 additions & 0 deletions
27
srcpkgs/python3-pyside6/patches/tests-disable-invalid-tests.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Disable failing tests for various reasons. | ||
pyside 6.1.0: about 5 tests out of 447 with "offline" backend display. | ||
|
||
--- a/sources/pyside6/tests/registry/CMakeLists.txt.ORIG 2021-04-19 18:07:00.000000000 +0200 | ||
+++ b/sources/pyside6/tests/registry/CMakeLists.txt 2021-05-08 13:41:06.980088190 +0200 | ||
@@ -3,2 +3,1 @@ | ||
|
||
-PYSIDE_TEST(existence_test.py) | ||
--- a/sources/pyside6/tests/QtWidgets/CMakeLists.txt.ORIG 2021-04-19 18:07:00.000000000 +0200 | ||
+++ b/sources/pyside6/tests/QtWidgets/CMakeLists.txt 2021-05-08 20:57:01.609450094 +0200 | ||
@@ -119,7 +119,6 @@ | ||
PYSIDE_TEST(qtoolbox_test.py) | ||
PYSIDE_TEST(qvariant_test.py) | ||
PYSIDE_TEST(qwidget_setlayout_test.py) | ||
-PYSIDE_TEST(qwidget_test.py) | ||
PYSIDE_TEST(qcolormap_test.py) | ||
PYSIDE_TEST(reference_count_test.py) | ||
PYSIDE_TEST(signature_test.py) | ||
# --- a/sources/pyside6/tests/QtOpenGL/CMakeLists.txt.ORIG 2021-04-19 18:07:00.000000000 +0200 | ||
# +++ b/sources/pyside6/tests/QtOpenGL/CMakeLists.txt 2021-05-08 20:59:14.970903599 +0200 | ||
# @@ -1,2 +1 @@ | ||
# -PYSIDE_TEST(qopenglbuffer_test.py) | ||
# PYSIDE_TEST(qopenglwindow_test.py) | ||
# --- a/sources/pyside6/tests/Qt3DExtras/CMakeLists.txt.ORIG 2021-04-19 18:07:00.000000000 +0200 | ||
# +++ b/sources/pyside6/tests/Qt3DExtras/CMakeLists.txt 2021-05-09 00:43:00.059103014 +0200 | ||
# @@ -1 +0,0 @@ | ||
# -PYSIDE_TEST(qt3dextras_test.py) |
24 changes: 24 additions & 0 deletions
24
srcpkgs/python3-pyside6/patches/tests-find-python-modules-from-build.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Use pyside python modules from build since they are not installed yet. | ||
Reported upstream: https://bugreports.qt.io/browse/PYSIDE-1430 (pyside2) | ||
Additional fix for pyside6 | ||
|
||
--- a/sources/pyside6/tests/init_paths.py.ORIG 2021-04-19 18:07:00.000000000 +0200 | ||
+++ b/sources/pyside6/tests/init_paths.py 2021-05-08 09:55:33.560511618 +0200 | ||
@@ -48,13 +48,12 @@ | ||
|
||
python_dirs = [os.path.join(src_dir, 'util')] # Helper module | ||
|
||
- pyside_build_dir = os.path.join(get_build_dir(), 'pyside6') | ||
- python_dirs.append(pyside_build_dir) # for PySide6 | ||
- lib_dirs = [os.path.join(pyside_build_dir, 'libpyside'), | ||
- os.path.join(pyside_build_dir, 'libpysideqml')] | ||
+ python_dirs.append(get_build_dir()) # for PySide6 | ||
+ lib_dirs = [os.path.join(get_build_dir(), 'libpyside'), | ||
+ os.path.join(get_build_dir(), 'libpysideqml')] | ||
|
||
if testbindings_module: | ||
- python_dirs.append(os.path.join(pyside_build_dir, | ||
+ python_dirs.append(os.path.join(get_build_dir(), | ||
'tests', 'pysidetest')) | ||
lib_dirs.append(_get_qt_lib_dir()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Reported upstream: https://bugreports.qt.io/browse/PYSIDE-1430 (pyside2) | ||
Additional fix for qt6 | ||
|
||
--- a/sources/pyside6/tests/CMakeLists.txt.ORIG 2021-04-19 18:07:00.000000000 +0200 | ||
+++ b/sources/pyside6/tests/CMakeLists.txt 2021-05-08 10:09:53.745441190 +0200 | ||
@@ -4,8 +4,7 @@ | ||
|
||
# BUILD_DIR and QT_DIR are used by init_paths.py for setting | ||
# the path to the testbinding module | ||
-get_filename_component(BUILD_DIR "${CMAKE_BINARY_DIR}" DIRECTORY) | ||
-get_filename_component(BUILD_DIR "${CMAKE_BINARY_DIR}" DIRECTORY) | ||
-set(QT_DIR "${_qt5Core_install_prefix}") | ||
+set(BUILD_DIR "${CMAKE_BINARY_DIR}") | ||
+set(QT_DIR "${QT6_INSTALL_PREFIX}") | ||
|
||
macro(TEST_QT_MODULE var name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Template file for 'python3-pyside6' | ||
pkgname=python3-pyside6 | ||
version=6.4.2 | ||
revision=1 | ||
_pkgname="pyside-setup-opensource-src-${version}" | ||
wrksrc="${_pkgname}" | ||
build_wrksrc="sources/pyside6" | ||
build_style=cmake | ||
configure_args="-DPYTHON_EXECUTABLE=/usr/bin/python -DQT_HOST_PATH=/usr" | ||
hostmakedepends="python3 shiboken6 qt6-base-devel" | ||
makedepends="libshiboken6-devel python3-devel qt6-base-devel qt6-tools-devel | ||
qt6-declarative-devel qt6-scxml-devel qt6-svg-devel qt6-networkauth-devel | ||
qt6-3d-devel qt6-charts-devel" | ||
checkdepends="tzdata qt6-plugin-sqlite" | ||
short_desc="Python3 bindings for the Qt6 toolkit" | ||
maintainer="fanyx <fanyx+github@posteo.net>" | ||
license="GPL-3.0-only WITH Qt-GPL-exception-1.0, LGPL-3.0-only, GPL-2.0-or-later" | ||
homepage="https://doc.qt.io/qtforpython/" | ||
distfiles="https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-${version}-src/${_pkgname}.tar.xz" | ||
checksum=1ec9d0936332efd229650cf10fed36cadddff7a613a2ea6e897de4d504c1b505 | ||
|
||
# needed by shiboken6 runtime | ||
export CLANG_INSTALL_DIR=/usr | ||
|
||
pre_check() { | ||
export QT_QPA_PLATFORM=offscreen | ||
} | ||
|
||
libpyside6-python3-devel_package() { | ||
depends="${sourcepkg}-${version}_${revision} | ||
libpyside6-python3-${version}_${revision}" | ||
short_desc+=" - shared library (development files)" | ||
pkg_install() { | ||
vmove usr/include | ||
vmove usr/lib/cmake | ||
vmove usr/lib/pkgconfig | ||
vmove "usr/lib/*.so" | ||
vmove usr/share | ||
} | ||
} | ||
|
||
libpyside6-python3_package() { | ||
short_desc+=" - shared library" | ||
pkg_install() { | ||
vmove "usr/lib/*.so.*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pkgname=pyside-setup-opensource-src | ||
vdprefix=PySide6- | ||
vdsuffix=-src |