Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
4fc8a2a
First attempt to cut down to just the Qt applications and entry points
altendky Oct 12, 2020
21778a8
matrix names based on Qt versions, not PyQt
altendky Oct 12, 2020
88e2c02
add build and test to the matrix names
altendky Oct 12, 2020
6a955f7
another super()
altendky Oct 12, 2020
80f206a
os.fspath() for sys.path
altendky Oct 12, 2020
1ccf756
adjust tests to not use plugins
altendky Oct 12, 2020
ac31118
more
altendky Oct 12, 2020
af04c1f
Update ci.yml
altendky Oct 12, 2020
6d6d3bf
Update ci.yml
altendky Oct 12, 2020
7a64d17
some newlines
altendky Oct 12, 2020
5c5be22
no "s
altendky Oct 12, 2020
a5b86da
back to upload-artifact@v1
altendky Oct 12, 2020
b427f40
just use the all-wheels artifact i guess
altendky Oct 12, 2020
2324aec
*-artifact@v2
altendky Oct 12, 2020
6d5845f
ugh
altendky Oct 12, 2020
bbe1f61
v2 again
altendky Oct 13, 2020
8b04a28
back to v1 to match
altendky Oct 13, 2020
450eb42
Download v1 too
altendky Oct 13, 2020
dac9081
no more gha specific env setting in the python build
altendky Oct 13, 2020
333c5f1
try to upload and test just single file artifacts
altendky Oct 15, 2020
2c217c4
Update ci.yml
altendky Oct 15, 2020
e479881
Cut down the matrixing for now
altendky Oct 15, 2020
85fbbcb
.format() and -PYQT_VERSION
altendky Oct 15, 2020
830e492
we will get back to publishing later
altendky Oct 15, 2020
e2403b1
try uploading all again
altendky Oct 15, 2020
e0be2bd
*sigh*
altendky Oct 15, 2020
42c8114
still need pyqt version for dependency
altendky Oct 16, 2020
fd00dab
reinstate the maybe publish job steps
altendky Oct 16, 2020
1994515
stop installing linux build dependencies for tests
altendky Oct 16, 2020
bd2ecf6
trailing slashes
altendky Oct 16, 2020
d574bdf
apt deps
altendky Oct 16, 2020
d0f17c7
remove msvc for testing
altendky Oct 16, 2020
edd71b6
big changes
altendky Oct 16, 2020
d6bf3d6
gee golly
altendky Oct 16, 2020
8a445da
get all translations regardless
altendky Oct 19, 2020
edf3454
fixup previous translation changes
altendky Oct 19, 2020
bce8663
add test for translations being present
altendky Oct 19, 2020
17589b7
-> qttools
altendky Oct 19, 2020
965dfcc
more
altendky Oct 19, 2020
8f86e08
translation test hangs somehow so just oh well for now
altendky Oct 19, 2020
35e0369
it's late
altendky Oct 23, 2020
8551b41
Update entrypoints.py
altendky Oct 23, 2020
de24ecf
Update build.py
altendky Oct 23, 2020
400551b
stop generating and repeating the main entry point logic
altendky Oct 24, 2020
ef95a68
accept custom environment in qttools.entrypoints.run()
altendky Oct 24, 2020
fc84c45
versioneer
altendky Oct 28, 2020
40579d4
qt-applications
altendky Nov 1, 2020
789ea4b
qt5-applications
altendky Nov 1, 2020
73e93e6
and setup.cfg
altendky Nov 1, 2020
8baabf5
and some more
altendky Nov 1, 2020
0d3b4e0
more commonality
altendky Nov 1, 2020
df2573d
hmm
altendky Nov 1, 2020
016d1fd
stop stripping post version stuff
altendky Nov 1, 2020
6918f98
make readme just link to pyqt5-tools
altendky Nov 2, 2020
e73802c
explain purpose in readme
altendky Nov 2, 2020
39f0cac
Update README.rst
altendky Nov 2, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/qttools/_version.py export-subst
228 changes: 126 additions & 102 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ env:
PIP_NO_PYTHON_VERSION_WARNING: 1

jobs:
ci:
name: ${{ matrix.os.name }} ${{ matrix.python.name }}-${{ matrix.bitness.name }} ${{ matrix.qt.pyqt_version }}
build:
name: Build ${{ matrix.os.name }} Qt ${{ matrix.qt.qt_version }}-${{ matrix.bitness.name }}
runs-on: ${{ matrix.os.runs-on }}
container: ${{ format(matrix.os.container, matrix.python.docker) }}
strategy:
Expand All @@ -24,7 +24,6 @@ jobs:
runs-on: ubuntu-latest
python_platform: linux
container: docker://python:{0}-buster
cibuildwheel_before: yum install mesa-libGL-devel
- name: Windows
runs-on: windows-latest
python_platform: win32
Expand All @@ -33,50 +32,22 @@ jobs:
# runs-on: macos-latest
# python_platform: darwin
python:
- name: 3.5
tox: py35
action: 3.5
docker: 3.5
cibuildwheel: cp38
- name: 3.6
tox: py36
action: 3.6
docker: 3.6
cibuildwheel: cp36
- name: 3.7
tox: py37
action: 3.7
docker: 3.7
cibuildwheel: cp37
- name: 3.8
tox: py38
action: 3.8
docker: 3.8
cibuildwheel: cp38
- name: 3.9
tox: py39
action: 3.9
docker: 3.9
cibuildwheel: cp39
qt:
- pyqt_version: 5.14.0
qt_version: 5.14.0
- pyqt_version: 5.14.1
qt_version: 5.14.1
- pyqt_version: 5.14.2
qt_version: 5.14.2
- pyqt_version: 5.15.0
qt_version: 5.15.0
- pyqt_version: 5.15.1
qt_version: 5.15.1
# - qt_version: 5.14.0
# - qt_version: 5.14.1
- qt_version: 5.14.2
# - qt_version: 5.15.0
- qt_version: 5.15.1
bitness:
- name: x32
action: x86
cibuildwheel: '*32*'
ilammy: x86
# - name: x32
# action: x86
# ilammy: x86
- name: x64
action: x64
cibuildwheel: '*64*'
ilammy: x64
exclude:
- bitness:
Expand All @@ -87,25 +58,8 @@ jobs:
# name: x32
# os:
# name: macOS
- python:
name: 3.9
qt:
pyqt_version: 5.14.0
- python:
name: 3.9
qt:
pyqt_version: 5.14.1
- python:
name: 3.9
qt:
pyqt_version: 5.14.2
- python:
name: 3.9
qt:
pyqt_version: 5.15.0
env:
QT_VERSION: ${{ matrix.qt.qt_version }}
PYQT_VERSION: ${{ matrix.qt.pyqt_version }}

steps:
- name: Checkout
Expand All @@ -116,10 +70,10 @@ jobs:
with:
python-version: ${{ matrix.python.action }}
architecture: ${{ matrix.bitness.action }}
- name: pip/setuptools/tox/cibuildwheel
- name: pip/setuptools/tox
run: |
python -m pip install --upgrade pip setuptools
pip install tox cibuildwheel
pip install tox
- name: Report info
shell: bash
run: |
Expand All @@ -129,26 +83,11 @@ jobs:
pip list
pip freeze --all
python -c "import sysconfig; print('Py_ENABLE_SHARED -> {}'.format(sysconfig.get_config_var('Py_ENABLE_SHARED')))"
# - name: Install Linux Docker dependencies
# if: matrix.os.python_platform == 'linux'
# run: |
# apt-get update --yes
# apt-get install --yes docker.io
# - name: Build wheel
# run: |
# cibuildwheel --output-dir dist/
# env:
# CIBW_BUILD: ${{ matrix.python.cibuildwheel }}-${{ matrix.bitness.cibuildwheel }}
# CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
# CIBW_MANYLINUX_I686_IMAGE: manylinux2014
# CIBW_BEFORE_BUILD: ${{ matrix.os.cibuildwheel_before }}
# CIBW_ENVIRONMENT: QT_VERSION=${{ matrix.qt.qt_version }} QT_COMPILER=${{ matrix.os.qt_compiler }} QT_ARCHITECTURE=${{ matrix.os.aqt_architecture }} PYQT_VERSION=${{ matrix.qt.pyqt_version }}
- name: Install Linux build dependencies
if: matrix.os.python_platform == 'linux'
run: |
apt-get update --yes
apt-get install --yes libgl1-mesa-dev
apt-get install --yes libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0
apt-get install --yes libgl1-mesa-dev libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0
- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
if: matrix.os.python_platform == 'win32'
Expand All @@ -171,6 +110,110 @@ jobs:
# this is cheap...
retagged = wheel.parent / wheel.name.replace('linux', 'manylinux2014')
wheel.rename(retagged)
- name: Archive individual wheel
uses: actions/upload-artifact@v1
with:
name: ${{ matrix.os.name }} Qt ${{ matrix.qt.qt_version }}-${{ matrix.bitness.name }}
path: dist/
- name: Archive all wheels
uses: actions/upload-artifact@v1
with:
name: all_wheels
path: dist/
test:
name: Test ${{ matrix.os.name }} ${{ matrix.python.name }}-${{ matrix.bitness.name }} ${{ matrix.qt.qt_version }}
runs-on: ${{ matrix.os.runs-on }}
container: ${{ format(matrix.os.container, matrix.python.docker) }}
needs:
- build
strategy:
fail-fast: false
matrix:
os:
- name: Linux
runs-on: ubuntu-latest
python_platform: linux
container: docker://python:{0}-buster
- name: Windows
runs-on: windows-latest
python_platform: win32
vs_path: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat
# - name: macOS
# runs-on: macos-latest
# python_platform: darwin
python:
- name: 3.5
tox: py35
action: 3.5
docker: 3.5
# - name: 3.6
# tox: py36
# action: 3.6
# docker: 3.6
# - name: 3.7
# tox: py37
# action: 3.7
# docker: 3.7
- name: 3.8
tox: py38
action: 3.8
docker: 3.8
# - name: 3.9
# tox: py39
# action: 3.9
# docker: 3.9
qt:
# - qt_version: 5.14.0
# - qt_version: 5.14.1
- qt_version: 5.14.2
# - qt_version: 5.15.0
- qt_version: 5.15.1
bitness:
# - name: x32
# action: x86
# ilammy: x86
- name: x64
action: x64
ilammy: x64
exclude:
- bitness:
name: x32
os:
name: Linux
# - bitness:
# name: x32
# os:
# name: macOS
env:
QT_VERSION: ${{ matrix.qt.qt_version }}

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Download
uses: actions/download-artifact@v1
with:
name: ${{ matrix.os.name }} Qt ${{ matrix.qt.qt_version }}-${{ matrix.bitness.name }}
path: dist/
- name: Set up Python ${{ matrix.python.name }}-${{ matrix.bitness.name }}
if: matrix.os.python_platform != 'linux'
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python.action }}
architecture: ${{ matrix.bitness.action }}
- name: pip/setuptools/tox
run: |
python -m pip install --upgrade pip setuptools
pip install tox
- name: Report info
shell: bash
run: |
git show --quiet HEAD
python --version --version
pip --version
pip list
pip freeze --all
python -c "import sysconfig; print('Py_ENABLE_SHARED -> {}'.format(sysconfig.get_config_var('Py_ENABLE_SHARED')))"
- name: Set WHEEL_PATH
shell: python
run: |
Expand All @@ -182,51 +225,31 @@ jobs:
dist = pathlib.Path.cwd() / 'dist'
[wheel] = dist.glob('*.whl')

print('::set-env name=WHEEL_PATH::{}'.format(fspath(wheel)))
print('::set-env name=WHEEL_STEM::{}'.format(wheel.stem))
- name: Archive individual wheel
uses: actions/upload-artifact@v1
with:
name: ${{ env['WHEEL_STEM'] }}
path: dist
- name: Archive all wheels
uses: actions/upload-artifact@v1
with:
name: pyqt5_tools-all_wheels
path: dist
with open(os.environ['GITHUB_ENV'], 'a') as github_env:
github_env.write('WHEEL_PATH={}\n'.format(fspath(wheel)))
github_env.write('WHEEL_STEM={}\n'.format(wheel.stem))
- name: Install Linux test dependencies
if: matrix.os.python_platform == 'linux'
run: |
apt-get update --yes
apt-get install --yes libgl1-mesa-dev libxkbcommon-x11-0 xvfb
apt-get install --yes x11-utils libdbus-1-3
# let's guess here...
# apt-get install --yes mesa-utils linux-generic xserver-xorg-core xserver-xorg xserver-xorg-video-all xserver-xorg-input-all libwayland-egl1-mesa
apt-get install --yes libgl1-mesa-dev libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 xvfb x11-utils
- name: Test
run: |
tox -e ${{ matrix.python.tox }} --installpkg ${{ env['WHEEL_PATH'] }}
# - name: prep
# if: always()
# run: |
# apt install --yes xvfb
# Xvfb :1 -screen 0 1600x1200x24&
# - name: Setup tmate session
# if: always()
# uses: mxschmitt/action-tmate@v2
maybe_publish:
name: Maybe Publish
runs-on: ubuntu-latest
container: docker://python:3.8-buster
needs:
- ci
- test
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Download all wheels
uses: actions/download-artifact@v1
with:
name: pyqt5_tools-all_wheels
path: dist
name: all_wheels
path: dist/
- name: Install Python packages
run: |
pip install --upgrade twine
Expand All @@ -240,7 +263,8 @@ jobs:
name: All
runs-on: ubuntu-latest
needs:
- ci
- build
- test
- maybe_publish
steps:
- name: This
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/venv/
/activate
/activate.bat
PyQt5-tools
/setup.cfg

# https://github.com/github/gitignore/blob/da00310ccba9de9a988cc973ef5238ad2c1460e9/Python.gitignore
Expand Down
Loading