Package python3-module-qtpy: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | %define _unpackaged_files_terminate_build 1 %define oname qtpy %def_with check Name: python3-module-%oname Version: 2.4.1 Release: alt2 Summary: Provides an uniform layer to support PyQt5, PySide2, PyQt6, PySide6 with a single codebase License: MIT Group: Development/Python3 Url: https://pypi.org/project/QtPy/ Vcs: https://github.com/spyder-ide/qtpy.git BuildArch: noarch Source: %name-%version.tar Patch0: qt6.6-deprecations.patch BuildRequires(pre): rpm-build-python3 BuildRequires: python3-module-setuptools BuildRequires: python3-module-wheel %if_with check BuildRequires: xvfb-run BuildRequires: python3-module-pytest BuildRequires: python3-module-pytest-qt BuildRequires: python3-module-pyside6 %endif %description QtPy is a small abstraction layer that lets you write applications using a single API call to either PyQt or PySide. It provides support for PyQt5, PyQt6, PySide6, PySide2 using the Qt5 layout (where the QtGui module has been split into QtGui and QtWidgets). Basically, you can write your code as if you were using PyQt or PySide directly, but import Qt modules from qtpy instead of PyQt5, PySide2, PyQt6 or PySide6. %package tests Summary: Tests for %oname Group: Development/Python3 Requires: %name = %EVR %description tests QtPy is a small abstraction layer that lets you write applications using a single API call to either PyQt or PySide. It provides support for PyQt5, PyQt4, PySide2 and PySide using the Qt5 layout (where the QtGui module has been split into QtGui and QtWidgets). Basically, you can write your code as if you were using PySide2 but import Qt modules from qtpy instead of PySide2 (or PyQt5) This package contains tests for %oname. %prep %setup %patch0 -p1 %build %pyproject_build %install %pyproject_install %check sed -i 's/--cov=qtpy --cov-report=term-missing//' pytest.ini sed -i 's/--color=yes//' pytest.ini %pyproject_run -- xvfb-run pytest qtpy -k "\ not test_qttexttospeech \ and not test_load_ui_type" %files %doc LICENSE.txt %doc AUTHORS.md CHANGELOG.md README.md %_bindir/%oname %python3_sitelibdir/QtPy-%version.dist-info %python3_sitelibdir/%oname %exclude %python3_sitelibdir/%oname/tests %files tests %python3_sitelibdir/%oname/tests %changelog * Fri Nov 24 2023 Anton Vyatkin <toni@altlinux.org> 2.4.1-alt2 - Fixed FTBFS. * Tue Oct 24 2023 Anton Vyatkin <toni@altlinux.org> 2.4.1-alt1 - New version 2.4.1. * Wed Aug 30 2023 Anton Vyatkin <toni@altlinux.org> 2.4.0-alt1 - New version 2.4.0. * Tue Jul 11 2023 Anton Vyatkin <toni@altlinux.org> 2.3.1-alt1 - New version 2.3.1. * Tue Aug 24 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 1.10.0-alt1 - Updated to upstream version 1.10.0. * Tue Aug 10 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 1.9.0-alt1 - Updated to upstream version 1.9.0. - Enabled tests. * Wed Apr 10 2019 Aleksei Nikiforov <darktemplar@altlinux.org> 1.7.0-alt1 - Initial build for ALT. |