%global _empty_manifest_terminate_build 0
Name: python-PyQt5-stubs
Version: 5.15.6.0
Release: 1
Summary: PEP561 stub files for the PyQt5 framework
License: GNU General Public License v3 (GPLv3)
URL: https://github.com/python-qt-tools/PyQt5-stubs
Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e7/5b/f96312e01661dff7320366fc948f7597d3e3e28ff7116e9e77dbf41ab937/PyQt5-stubs-5.15.6.0.tar.gz
BuildArch: noarch
Requires: python3-mypy
Requires: python3-pytest
Requires: python3-pytest-xvfb
%description
[](https://badge.fury.io/py/PyQt5-stubs)
[](http://mypy-lang.org/)
[](https://github.com/python-qt-tools/PyQt5-stubs/actions/workflows/ci.yml?query=branch%3Amaster)
[](https://pepy.tech/project/pyqt5-stubs)
[](https://pepy.tech/project/pyqt5-stubs/week)
# Mypy stubs for the PyQt5 framework
This repository holds the stubs of the PyQt5 framework. The stub files released
within the PyQt5 packages have been modified to allow using them for type-checking via mypy.
Improvements over the default stubs include:
* Signals are properly typed as signals and not as methods
* QFlags derived classes correctly support all combination operations
* Many methods accepting an optional None have been annotated so
* and more...
This repository can always be improved and the authors will
appreciate any PRs or Issues that help making this stub-repository more reliable.
# Installation
Simply install PyQt5-stubs with pip:
$ pip install PyQt5-stubs
Or clone the latest version from Github and install it via Python setuptools:
$ git clone https://github.com/python-qt-tools/PyQt5-stubs
$ python setup.py install
# Supported Modules
The modules supported by PyQt5-stubs include modules from the PyQt5 package as well as modules from the other
packages released by Riverbank Computing (PyQt3D, PyQtCharts, ...). Here is the full list
of packages and modules:
* package PyQt5:
* QtBluetooth
* QtCore
* QtDBus
* QtGui
* QtLocation
* QtMultimedia
* QtNetwork
* QtNfc
* QtOpenGL
* QtPositioning
* QtPrintSupport
* QtQml
* QtQuick
* QtQuickWidgets
* QtRemoteObjects
* QtSensors
* QtSerialPort
* QtSql
* QtSvg
* QtTest
* QtWebChannel
* QtWebSockets
* QtWidgets
* QtX11Extras
* QtXml
* QtXmlPatterns
* sip
* package PyQt3D:
* Qt3DAnimation
* Qt3DCore
* Qt3DExtras
* Qt3DInput
* Qt3DLogic
* Qt3DRender
* package PyQtChart:
* QtChart
* package PyQtDataVisualization:
* QtDataVisualization
* package PyQtNetworkAuth:
* QtNetworkAuth
* package PyQtPurchasing:
* QtPurchasing
* package PyQtWebEngine:
* QtWebEngine
* QtWebEngineCore
* QtWebEngineWidgets
* package PyQtWebkit:
* QtWebKit
* QtWebKitWidgets
# Authors
* Stefan Lehmann
* Kyle Altendorf
* Bryce Beagle
* Florian Bruhin
* Philippe Fremy
%package -n python3-PyQt5-stubs
Summary: PEP561 stub files for the PyQt5 framework
Provides: python-PyQt5-stubs
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-PyQt5-stubs
[](https://badge.fury.io/py/PyQt5-stubs)
[](http://mypy-lang.org/)
[](https://github.com/python-qt-tools/PyQt5-stubs/actions/workflows/ci.yml?query=branch%3Amaster)
[](https://pepy.tech/project/pyqt5-stubs)
[](https://pepy.tech/project/pyqt5-stubs/week)
# Mypy stubs for the PyQt5 framework
This repository holds the stubs of the PyQt5 framework. The stub files released
within the PyQt5 packages have been modified to allow using them for type-checking via mypy.
Improvements over the default stubs include:
* Signals are properly typed as signals and not as methods
* QFlags derived classes correctly support all combination operations
* Many methods accepting an optional None have been annotated so
* and more...
This repository can always be improved and the authors will
appreciate any PRs or Issues that help making this stub-repository more reliable.
# Installation
Simply install PyQt5-stubs with pip:
$ pip install PyQt5-stubs
Or clone the latest version from Github and install it via Python setuptools:
$ git clone https://github.com/python-qt-tools/PyQt5-stubs
$ python setup.py install
# Supported Modules
The modules supported by PyQt5-stubs include modules from the PyQt5 package as well as modules from the other
packages released by Riverbank Computing (PyQt3D, PyQtCharts, ...). Here is the full list
of packages and modules:
* package PyQt5:
* QtBluetooth
* QtCore
* QtDBus
* QtGui
* QtLocation
* QtMultimedia
* QtNetwork
* QtNfc
* QtOpenGL
* QtPositioning
* QtPrintSupport
* QtQml
* QtQuick
* QtQuickWidgets
* QtRemoteObjects
* QtSensors
* QtSerialPort
* QtSql
* QtSvg
* QtTest
* QtWebChannel
* QtWebSockets
* QtWidgets
* QtX11Extras
* QtXml
* QtXmlPatterns
* sip
* package PyQt3D:
* Qt3DAnimation
* Qt3DCore
* Qt3DExtras
* Qt3DInput
* Qt3DLogic
* Qt3DRender
* package PyQtChart:
* QtChart
* package PyQtDataVisualization:
* QtDataVisualization
* package PyQtNetworkAuth:
* QtNetworkAuth
* package PyQtPurchasing:
* QtPurchasing
* package PyQtWebEngine:
* QtWebEngine
* QtWebEngineCore
* QtWebEngineWidgets
* package PyQtWebkit:
* QtWebKit
* QtWebKitWidgets
# Authors
* Stefan Lehmann
* Kyle Altendorf
* Bryce Beagle
* Florian Bruhin
* Philippe Fremy
%package help
Summary: Development documents and examples for PyQt5-stubs
Provides: python3-PyQt5-stubs-doc
%description help
[](https://badge.fury.io/py/PyQt5-stubs)
[](http://mypy-lang.org/)
[](https://github.com/python-qt-tools/PyQt5-stubs/actions/workflows/ci.yml?query=branch%3Amaster)
[](https://pepy.tech/project/pyqt5-stubs)
[](https://pepy.tech/project/pyqt5-stubs/week)
# Mypy stubs for the PyQt5 framework
This repository holds the stubs of the PyQt5 framework. The stub files released
within the PyQt5 packages have been modified to allow using them for type-checking via mypy.
Improvements over the default stubs include:
* Signals are properly typed as signals and not as methods
* QFlags derived classes correctly support all combination operations
* Many methods accepting an optional None have been annotated so
* and more...
This repository can always be improved and the authors will
appreciate any PRs or Issues that help making this stub-repository more reliable.
# Installation
Simply install PyQt5-stubs with pip:
$ pip install PyQt5-stubs
Or clone the latest version from Github and install it via Python setuptools:
$ git clone https://github.com/python-qt-tools/PyQt5-stubs
$ python setup.py install
# Supported Modules
The modules supported by PyQt5-stubs include modules from the PyQt5 package as well as modules from the other
packages released by Riverbank Computing (PyQt3D, PyQtCharts, ...). Here is the full list
of packages and modules:
* package PyQt5:
* QtBluetooth
* QtCore
* QtDBus
* QtGui
* QtLocation
* QtMultimedia
* QtNetwork
* QtNfc
* QtOpenGL
* QtPositioning
* QtPrintSupport
* QtQml
* QtQuick
* QtQuickWidgets
* QtRemoteObjects
* QtSensors
* QtSerialPort
* QtSql
* QtSvg
* QtTest
* QtWebChannel
* QtWebSockets
* QtWidgets
* QtX11Extras
* QtXml
* QtXmlPatterns
* sip
* package PyQt3D:
* Qt3DAnimation
* Qt3DCore
* Qt3DExtras
* Qt3DInput
* Qt3DLogic
* Qt3DRender
* package PyQtChart:
* QtChart
* package PyQtDataVisualization:
* QtDataVisualization
* package PyQtNetworkAuth:
* QtNetworkAuth
* package PyQtPurchasing:
* QtPurchasing
* package PyQtWebEngine:
* QtWebEngine
* QtWebEngineCore
* QtWebEngineWidgets
* package PyQtWebkit:
* QtWebKit
* QtWebKitWidgets
# Authors
* Stefan Lehmann
* Kyle Altendorf
* Bryce Beagle
* Florian Bruhin
* Philippe Fremy
%prep
%autosetup -n PyQt5-stubs-5.15.6.0
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-PyQt5-stubs -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Apr 11 2023 Python_Bot - 5.15.6.0-1
- Package Spec generated