Skip to content

Commit c002ab0

Browse files
committed
Merge remote-tracking branch 'pyqt5-stubs/master' into qscrollarea-widgetresizeable
2 parents 6af75a4 + e4839c4 commit c002ab0

File tree

273 files changed

+65226
-2241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+65226
-2241
lines changed

.github/workflows/ci.yml

+12-11
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ jobs:
2424
os:
2525
- name: Linux
2626
runs-on: ubuntu-latest
27-
matrix: linux
28-
# https://github.com/python-qt-tools/PyQt5-stubs/issues/122
29-
# - name: Windows
30-
# runs-on: windows-latest
31-
# matrix: windows
32-
# https://github.com/python-qt-tools/PyQt5-stubs/issues/122
33-
# - name: macOS
34-
# runs-on: macos-latest
35-
# matrix: macos
27+
tox: linux
28+
- name: macOS
29+
runs-on: macos-latest
30+
tox: macos
31+
- name: Windows
32+
runs-on: windows-latest
33+
tox: windows
3634
python:
3735
- name: CPython 3.6
3836
tox: py36
@@ -46,6 +44,9 @@ jobs:
4644
- name: CPython 3.9
4745
tox: py39
4846
action: 3.9
47+
- name: CPython 3.10
48+
tox: py310
49+
action: '3.10'
4950
steps:
5051
- uses: actions/checkout@v2
5152
- name: Set up ${{ matrix.python.name }}
@@ -55,7 +56,7 @@ jobs:
5556
architecture: x64
5657
- uses: twisted/python-info-action@v1.0.1
5758
- name: Install Linux Qt5 dependencies
58-
if: matrix.os.matrix == 'linux'
59+
if: matrix.os.name == 'Linux'
5960
run: |
6061
sudo apt-get update --yes
6162
sudo apt-get install --yes libgl1 libgl1-mesa-dev xvfb x11-utils libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0
@@ -67,7 +68,7 @@ jobs:
6768
pip install tox
6869
- name: Test
6970
run: |
70-
tox -v -e ${{ matrix.python.tox }}
71+
tox -v -e ${{ matrix.python.tox }}-${{ matrix.os.tox }}
7172
7273
all:
7374
name: All

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,25 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
77
## [unreleased]
88

99
### Added
10+
* [#179](https://github.com/python-qt-tools/PyQt5-stubs/pull/179) update to PyQt5 5.15.6
11+
* [#176](https://github.com/python-qt-tools/PyQt5-stubs/pull/176) update to PyQt5 5.15.5
12+
* [#175](https://github.com/python-qt-tools/PyQt5-stubs/pull/175) catch up PyQtNetworkAuth with the 5.15.4 release
13+
* [#149](https://github.com/python-qt-tools/PyQt5-stubs/pull/149) update to PyQt5 5.15.4
1014
* [#138](https://github.com/python-qt-tools/PyQt5-stubs/pull/138) update to PyQt5 5.15.3
15+
* [#145](https://github.com/python-qt-tools/PyQt5-stubs/pull/145) Support all implemented arithmetic operations between Qt.WindowType and Qt.WindowFlags and int
1116
* [#144](https://github.com/python-qt-tools/PyQt5-stubs/pull/144) add `QTreeWidgetItem.__lt__()` to allow sorting of items in a QTreeWidget
17+
* [#143](https://github.com/python-qt-tools/PyQt5-stubs/pull/143) make `bytes(QByteArray())` valid by incorrectly adding `.__bytes__()` until a proper solution is developed upstream
18+
* [#152](https://github.com/python-qt-tools/PyQt5-stubs/pull/152) add `.__or__()` for `QDialogButtonBox.StandardButton` and `QDialogButtonBox.StandardButtons`
19+
* [#156](https://github.com/python-qt-tools/PyQt5-stubs/pull/156) add operators to `QSize` and `QSizeF`
20+
* [#153](https://github.com/python-qt-tools/PyQt5-stubs/pull/153) Support all implemented arithmetic operations for QFlags
21+
based classes in modules QtCore, QtWidgets, QtGui, QtNetwork, QtDBus, QtOpenGL, QtPrintsupport, QtSql, QtTest, QtXml
22+
* [#162](https://github.com/python-qt-tools/PyQt5-stubs/pull/162) fixes all method not declared as signals
23+
* [#184](https://github.com/python-qt-tools/PyQt5-stubs/pull/184) Fix missing module variable
24+
detected by latest mypy 0.930
25+
* [#183](https://github.com/python-qt-tools/PyQt5-stubs/pull/183) Add missing operations on QSize
1226
* [#148](https://github.com/python-qt-tools/PyQt5-stubs/pull/148) add `widgetResizable` parameter to `QScrollArea.__init__()`
1327

28+
1429
## 5.15.2.0
1530

1631
### Added

Dockerfile

+47-12
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@
22
# https://hub.docker.com/_/archlinux?tab=tags&page=1&ordering=last_updated
33
# BUILD_DATE is a path from:
44
# https://archive.archlinux.org/repos/
5-
ARG ARCH_VERSION="base-20210221.0.15908"
6-
ARG BUILD_DATE="2021/02/25"
7-
8-
ARG SIP_VERSION="6.0.2"
9-
# Also the major.minor of PyQt5-sip
10-
ARG SIP_ABI_VERSION="12.8"
11-
ARG PYQT_VERSION="5.15.3"
12-
ARG PYQT_3D_VERSION="5.15.3"
13-
ARG PYQT_CHART_VERSION="5.15.3"
14-
ARG PYQT_DATA_VISUALIZATION_VERSION="5.15.3"
15-
ARG PYQT_PURCHASING_VERSION="5.15.3"
16-
ARG PYQT_WEB_ENGINE_VERSION="5.15.3"
5+
ARG ARCH_VERSION="base-20211121.0.39613"
6+
ARG BUILD_DATE="2021/11/29"
7+
8+
ARG SIP_VERSION="6.4.0"
9+
# Also the major of PyQt5-sip
10+
ARG SIP_ABI_VERSION="12"
11+
ARG PYQT_VERSION="5.15.6"
12+
ARG PYQT_3D_VERSION="5.15.5"
13+
ARG PYQT_CHART_VERSION="5.15.5"
14+
ARG PYQT_DATA_VISUALIZATION_VERSION="5.15.5"
15+
ARG PYQT_PURCHASING_VERSION="5.15.5"
16+
ARG PYQT_WEB_ENGINE_VERSION="5.15.5"
17+
ARG PYQT_NETWORK_AUTH_VERSION="5.15.5"
1718

1819
ARG MAKEFLAGS=""
1920

@@ -301,6 +302,39 @@ RUN sip-install \
301302
WORKDIR /output/
302303
RUN find /upstream/ -name \*.pyi -exec cp {} . \;
303304

305+
################################################################################
306+
# PyQtNetworkAuth
307+
################################################################################
308+
309+
FROM build-dep AS pyqt-network-auth
310+
311+
# Reuse arguments from previous build scope
312+
ARG MAKEFLAGS
313+
ARG PYQT_NETWORK_AUTH_VERSION
314+
315+
# Download source tar
316+
RUN wget --no-verbose \
317+
--output-document upstream.tar.gz \
318+
https://pypi.io/packages/source/p/pyqtnetworkauth/PyQtNetworkAuth-${PYQT_NETWORK_AUTH_VERSION}.tar.gz
319+
RUN mkdir /upstream/ && \
320+
tar -xf \
321+
upstream.tar.gz \
322+
--directory /upstream/ \
323+
--strip-components 1
324+
325+
# Build PyQtNetworkAuth with stubs
326+
# TODO: Find way to build only stubs
327+
WORKDIR /upstream/
328+
RUN sip-install \
329+
--qmake /usr/bin/qmake-qt5 \
330+
--pep484-pyi \
331+
--build-dir ./build \
332+
--verbose
333+
334+
# Copy all .pyi files to output dir
335+
WORKDIR /output/
336+
RUN find /upstream/ -name \*.pyi -exec cp {} . \;
337+
304338
################################################################################
305339
# Output
306340
################################################################################
@@ -316,6 +350,7 @@ COPY --from=pyqt-chart /output/* ./
316350
COPY --from=pyqt-data-visualization /output/* ./
317351
COPY --from=pyqt-purchasing /output/* ./
318352
COPY --from=pyqt-web-engine /output/* ./
353+
COPY --from=pyqt-network-auth /output/* ./
319354

320355
# Required to run the image (which we need to do to get the files)
321356
CMD /bin/true

0 commit comments

Comments
 (0)