diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 11:06:12 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 11:06:12 +0000 |
| commit | 2e20d25df95b610eb17bf088da19a500550c9682 (patch) | |
| tree | 93a37a7b9155fde6935a331e636619f53bef0dac /python-pyqt5-stubs.spec | |
| parent | 0e7d2148e6611ca28c6579fb074f2dea3d0c6de6 (diff) | |
automatic import of python-pyqt5-stubs
Diffstat (limited to 'python-pyqt5-stubs.spec')
| -rw-r--r-- | python-pyqt5-stubs.spec | 372 |
1 files changed, 372 insertions, 0 deletions
diff --git a/python-pyqt5-stubs.spec b/python-pyqt5-stubs.spec new file mode 100644 index 0000000..96b9c85 --- /dev/null +++ b/python-pyqt5-stubs.spec @@ -0,0 +1,372 @@ +%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 +<img src="http://mypy-lang.org/static/mypy_light.svg" alt="mypy logo" width="300px"/> + +[](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 +<img src="http://mypy-lang.org/static/mypy_light.svg" alt="mypy logo" width="300px"/> + +[](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 +<img src="http://mypy-lang.org/static/mypy_light.svg" alt="mypy logo" width="300px"/> + +[](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 <Python_Bot@openeuler.org> - 5.15.6.0-1 +- Package Spec generated |
