# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup python 1.0 PortGroup github 1.0 github.setup spyder-ide qtpy 2.4.1 v github.tarball_from archive revision 0 name py-qtpy categories-append devel supported_archs noarch platforms {darwin any} license MIT maintainers {reneeotten @reneeotten} openmaintainer description Abstraction layer for PyQt5/PyQt6/PySide2/PySide6 long_description Provides an uniform layer to support PyQt5, PyQt6, \ PySide2, and PySide6 with a single codebase. checksums rmd160 0789194dbee98718bd037e54525ebb12510222cc \ sha256 e5f3ceaf3465b453f71cc0248fc85116ae5b3dfd76cbfd491409eb345a9f9df2 \ size 67984 python.versions 38 39 310 311 312 if {${name} ne ${subport}} { depends_lib-append \ port:py${python.version}-packaging depends_test-append \ port:py${python.version}-pytest-qt test.run yes post-destroot { set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} LICENSE.txt ${destroot}${docdir} } notes "QtPy needs one of the following backends to be installed on your\ system: PyQt5, PyQt6, PySide2, or PySide6. If multiple backends are\ available, PyQt5 will be used unless you set the QT_API environment variable." # if no backend is installed, it is impossible to run the tests # also append a warning about this to the notes if {[catch {set installed [lindex [registry_active py${python.version}-pyqt5] 0]}] && [catch {set installed [lindex [registry_active py${python.version}-pyqt6] 0]}] && [catch {set installed [lindex [registry_active py${python.version}-pyside2] 0]}] && [catch {set installed [lindex [registry_active py${python.version}-pyside6] 0]}]} { test.run no notes-append "*** WARNING: currently none of the required backends is installed! ***" } }