Accepting request 1036979 from home:bnavigator:branches:devel:languages:python

- Update to 2.3.0
  * PR 382 - PR: Add QtPdf and QtPdfWidgets, by @jschueller (381)
  * PR 380 - PR: Enable more qt6 tests, by @jschueller
  * PR 379 - PR: Raise error when no bindings are found at
    __init__, by @dalthviz (367)
  * PR 378 - PR: Try PySide6 on conda, by @jschueller
  * PR 376 - PR: Expand the CI test matrix with Qt/bindings 6.4 and
    fix tests with PyQt 5.9, by @CAM-Gerlach (375)
  * PR 374 - Don't re-assign Qt.MouseButton.MiddleButton on
    PySide6, by @astrofrog (373)
  * PR 372 - PR: Add Qsci to the imports, by @dgoeries (134)
- Release 2.2.1
  * PR 368 - PR: Add missing self for QtBindingsNotFoundError
    definition, by @dalthviz
  * PR 366 - PR: Aliased QUndoCommand, provided
    QLineEdit.getTextMargins() and QFontMetricsF.width(), by
    @random-developer (365)
  * PR 363 - PR: Fix typo in Qt flags in Readme, by @Czaki
  * PR 362 - PR: Fix various minor typos found with Codespell, by
    @luzpaz
  * PR 361 - PR: toPython helpers for QDate and QTime, by
    @bob-schumaker
  * PR 360 - CI: Ensure conda-forge channel usage when testing with
    conda, by @dalthviz

OBS-URL: https://build.opensuse.org/request/show/1036979
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=41
This commit is contained in:
Matej Cepl 2022-11-20 21:42:40 +00:00 committed by Git OBS Bridge
parent 130b24138e
commit b625231b9c
4 changed files with 49 additions and 6 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d85f1b121f24a41ad26c55c446e66abdb7c528839f8c4f11f156ec4541903914
size 51573

3
QtPy-2.3.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0603c9c83ccc035a4717a12908bf6bc6cb22509827ea2ec0e94c2da7c9ed57c5
size 53980

View File

@ -1,3 +1,31 @@
-------------------------------------------------------------------
Sun Nov 20 19:55:23 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to 2.3.0
* PR 382 - PR: Add QtPdf and QtPdfWidgets, by @jschueller (381)
* PR 380 - PR: Enable more qt6 tests, by @jschueller
* PR 379 - PR: Raise error when no bindings are found at
__init__, by @dalthviz (367)
* PR 378 - PR: Try PySide6 on conda, by @jschueller
* PR 376 - PR: Expand the CI test matrix with Qt/bindings 6.4 and
fix tests with PyQt 5.9, by @CAM-Gerlach (375)
* PR 374 - Don't re-assign Qt.MouseButton.MiddleButton on
PySide6, by @astrofrog (373)
* PR 372 - PR: Add Qsci to the imports, by @dgoeries (134)
- Release 2.2.1
* PR 368 - PR: Add missing self for QtBindingsNotFoundError
definition, by @dalthviz
* PR 366 - PR: Aliased QUndoCommand, provided
QLineEdit.getTextMargins() and QFontMetricsF.width(), by
@random-developer (365)
* PR 363 - PR: Fix typo in Qt flags in Readme, by @Czaki
* PR 362 - PR: Fix various minor typos found with Codespell, by
@luzpaz
* PR 361 - PR: toPython helpers for QDate and QTime, by
@bob-schumaker
* PR 360 - CI: Ensure conda-forge channel usage when testing with
conda, by @dalthviz
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 18 13:23:53 UTC 2022 - Ben Greiner <code@bnavigator.de> Thu Aug 18 13:23:53 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -35,9 +35,8 @@ BuildArch: noarch
%bcond_with pyside6 %bcond_with pyside6
%endif %endif
%define skip_python2 1
Name: python-QtPy%{psuffix} Name: python-QtPy%{psuffix}
Version: 2.2.0 Version: 2.3.0
Release: 0 Release: 0
Summary: Abstraction layer on top of Qt bindings Summary: Abstraction layer on top of Qt bindings
License: MIT License: MIT
@ -59,7 +58,7 @@ Requires(postun):update-alternatives
# require (e.g. qtwebengine). Note that setup.py does not declare # require (e.g. qtwebengine). Note that setup.py does not declare
# any requirements, in this regard either. # any requirements, in this regard either.
%if %{with test} %if %{with test}
BuildRequires: %{python_module QtPy = %{version}} BuildRequires: %{python_module QtPy-test = %{version}}
BuildRequires: %{python_module pytest >= 6} BuildRequires: %{python_module pytest >= 6}
BuildRequires: %{python_module pytest-qt} BuildRequires: %{python_module pytest-qt}
%if %{with pyqt5} %if %{with pyqt5}
@ -102,6 +101,17 @@ 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, directly, but import Qt modules from qtpy instead of PyQt5, PySide2,
PyQt6 or PySide6. PyQt6 or PySide6.
%package test
Summary: The qtpy.tests module
Requires: %{name} = %{version}
%description test
QtPy is a small abstraction layer that lets you
write applications using a single API call to either PyQt or PySide.
This subpackage separately provides the qtpy.tests module
in order to avoid stupid rpmlint errors.
%prep %prep
%setup -q -n QtPy-%{version} %setup -q -n QtPy-%{version}
# wrong EOL encondig # wrong EOL encondig
@ -177,8 +187,13 @@ popd
%doc AUTHORS.md CHANGELOG.md README.md %doc AUTHORS.md CHANGELOG.md README.md
%license LICENSE.txt %license LICENSE.txt
%{python_sitelib}/qtpy %{python_sitelib}/qtpy
%exclude %{python_sitelib}/qtpy/tests
%{python_sitelib}/QtPy-%{version}*-info %{python_sitelib}/QtPy-%{version}*-info
%python_alternative %{_bindir}/qtpy %python_alternative %{_bindir}/qtpy
%files %{python_files test}
%license LICENSE.txt
%{python_sitelib}/qtpy/tests
%endif %endif
%changelog %changelog