Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
154 changes: 131 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

jobs:
build:
name: Build ${{ matrix.os.name }} Qt ${{ matrix.qt.qt_version }}-${{ matrix.bitness.name }}
name: Build ${{ matrix.os.name }} Qt ${{ matrix.qt.name }}-${{ matrix.bitness.name }}
runs-on: ${{ matrix.os.runs-on }}
container: ${{ format(matrix.os.container, matrix.python.docker) }}
strategy:
Expand All @@ -37,12 +37,54 @@ jobs:
action: 3.8
docker: 3.8
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
- qt_version: 5.15.2
- name: 5.14.0
env: 5.14.0
matrix: 5.14.0
major: 5
- name: 5.14.1
env: 5.14.1
matrix: 5.14.1
major: 5
- name: 5.14.2
env: 5.14.2
matrix: 5.14.2
major: 5
- name: 5.15.0
env: 5.15.0
matrix: 5.15.0
major: 5
- name: 5.15.1
env: 5.15.1
matrix: 5.15.1
major: 5
- name: 5.15.2
env: 5.15.2
matrix: 5.15.2
major: 5
- name: 6.0.0
env: 6.0.0
matrix: 6.0.0
major: 6
- name: 6.0.1
env: 6.0.1
matrix: 6.0.1
major: 6
- name: 6.0.2
env: 6.0.2
matrix: 6.0.2
major: 6
- name: 6.0.3
env: 6.0.3
matrix: 6.0.3
major: 6
- name: 6.0.4
env: 6.0.4
matrix: 6.0.4
major: 6
- name: 6.1.0
env: 6.1.0
matrix: 6.1.0
major: 6
bitness:
- name: x32
action: x86
Expand All @@ -60,15 +102,21 @@ jobs:
os:
name: macOS
- qt:
qt_version: 5.14.0
matrix: 5.14.0
os:
name: macOS
- qt:
qt_version: 5.14.1
matrix: 5.14.1
os:
name: macOS
- bitness:
name: x32
os:
name: Windows
qt:
major: 6
env:
QT_VERSION: ${{ matrix.qt.qt_version }}
QT_VERSION: ${{ matrix.qt.env }}

steps:
- name: Checkout
Expand Down Expand Up @@ -124,15 +172,15 @@ jobs:
- name: Archive individual wheel
uses: actions/upload-artifact@v1
with:
name: ${{ matrix.os.name }} Qt ${{ matrix.qt.qt_version }}-${{ matrix.bitness.name }}
name: ${{ matrix.os.name }} Qt ${{ matrix.qt.name }}-${{ 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 }}
name: Test ${{ matrix.os.name }} ${{ matrix.python.name }}-${{ matrix.bitness.name }} ${{ matrix.qt.name }}
runs-on: ${{ matrix.os.runs-on }}
container: ${{ format(matrix.os.container, matrix.python.docker) }}
needs:
Expand Down Expand Up @@ -174,12 +222,66 @@ jobs:
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
- qt_version: 5.15.2
- name: 5.14.0
env: 5.14.0
matrix: 5.14.0
major: 5
tox: qt5
- name: 5.14.1
env: 5.14.1
matrix: 5.14.1
major: 5
tox: qt5
- name: 5.14.2
env: 5.14.2
matrix: 5.14.2
major: 5
tox: qt5
- name: 5.15.0
env: 5.15.0
matrix: 5.15.0
major: 5
tox: qt5
- name: 5.15.1
env: 5.15.1
matrix: 5.15.1
major: 5
tox: qt5
- name: 5.15.2
env: 5.15.2
matrix: 5.15.2
major: 5
tox: qt5
- name: 6.0.0
env: 6.0.0
matrix: 6.0.0
major: 6
tox: qt6
- name: 6.0.1
env: 6.0.1
matrix: 6.0.1
major: 6
tox: qt6
- name: 6.0.2
env: 6.0.2
matrix: 6.0.2
major: 6
tox: qt6
- name: 6.0.3
env: 6.0.3
matrix: 6.0.3
major: 6
tox: qt6
- name: 6.0.4
env: 6.0.4
matrix: 6.0.4
major: 6
tox: qt6
- name: 6.1.0
env: 6.1.0
matrix: 6.1.0
major: 6
tox: qt6
bitness:
- name: x32
action: x86
Expand All @@ -197,23 +299,29 @@ jobs:
os:
name: macOS
- qt:
qt_version: 5.14.0
matrix: 5.14.0
os:
name: macOS
- qt:
qt_version: 5.14.1
matrix: 5.14.1
os:
name: macOS
- bitness:
name: x32
os:
name: Windows
qt:
major: 6
env:
QT_VERSION: ${{ matrix.qt.qt_version }}
QT_VERSION: ${{ matrix.qt.env }}

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 }}
name: ${{ matrix.os.name }} Qt ${{ matrix.qt.name }}-${{ matrix.bitness.name }}
path: dist/
- name: Set up Python ${{ matrix.python.name }}-${{ matrix.bitness.name }}
if: matrix.os.python_platform != 'linux'
Expand Down Expand Up @@ -257,7 +365,7 @@ jobs:
- uses: altendky/QTBUG-88688-libxcb-util@v3
- name: Test
run: |
tox -e ${{ matrix.python.tox }} --installpkg ${{ env['WHEEL_PATH'] }}
tox -e ${{ matrix.python.tox }}-${{ matrix.qt.tox }} --installpkg ${{ env['WHEEL_PATH'] }}
maybe_publish:
name: Maybe Publish
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
recursive-include src/qt5_applications *
recursive-include src/qt_applications *
include versioneer.py
include src/qt5_applications/_version.py
include src/qt_applications/_version.py
24 changes: 15 additions & 9 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,19 @@ def create_script_function_name(path: pathlib.Path):
def linuxdeployqt_substitute_list_source(
target,
) -> typing.List[pathlib.Path]:
paths = [
dependency.path
for dependency in lddwrap.list_dependencies(
path=target,
)
if dependency.path is not None
]
try:
paths = [
dependency.path
for dependency in lddwrap.list_dependencies(
path=target,
)
if dependency.path is not None
]
except RuntimeError as e:
if "Failed to ldd external" not in str(e):
raise

paths = []

return paths

Expand Down Expand Up @@ -959,7 +965,7 @@ def main(package_path, build_base_path):
# TODO: uhhh.... i'm trying to use an existing directory i thought
build_base_path.mkdir(parents=True, exist_ok=True)
build_path = tempfile.mkdtemp(
prefix='qt5_applications-',
prefix='qt_applications-',
dir=fspath(build_base_path),
)
print('after ---!!!', file=sys.stderr)
Expand Down Expand Up @@ -1187,7 +1193,7 @@ def windeployqt_list_source(
for line in process.stdout.decode('utf-8').splitlines()
]

return paths
return [path for path in paths if path.name != "qt_en.qm"]


def install_qt(configuration):
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
[build-system]
requires = [
"attrs",
"aqtinstall",
# >= 1.0.0b1 for Qt6 support
"aqtinstall >= 1.0.0b1; python_version >= '3.6'",
"aqtinstall; python_version < '3.6'",
# != 0.10.0 for https://github.com/miurahr/py7zr/issues/252
"py7zr != 0.10.0",
"importlib-metadata",
"hyperlink",
"macholib",
"msvc-runtime; sys_platform == 'win32'",
"pip",
"pylddwrap",
"pylddwrap~=1.2",
"requests",
"setuptools",
"versioneer-518 == 0.18",
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versioneer]
VCS = git
style = pep440-post
versionfile_source = src/qt5_applications/_version.py
versionfile_build = qt5_applications/_version.py
versionfile_source = src/qt_applications/_version.py
versionfile_build = qt_applications/_version.py
tag_prefix = v
19 changes: 12 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ def pad_version(v, segment_count=3):

# TODO: really doesn't seem quite proper here and probably should come
# in some other way?
qt_version = pad_version(os.environ.setdefault('QT_VERSION', '5.15.1'))
qt_version = pad_version(os.environ.setdefault('QT_VERSION', '6.1.0'))
qt_major_version = qt_version.partition('.')[0]

qt5_applications_wrapper_version = versioneer.get_versions()['version']
qt5_applications_version = '{}.{}'.format(qt_version, qt5_applications_wrapper_version)
qt_applications_wrapper_version = versioneer.get_versions()['version']
qt_applications_version = '{}.{}'.format(qt_version, qt_applications_wrapper_version)


with open('README.rst') as f:
Expand All @@ -73,8 +74,12 @@ def has_ext_modules(self):
return True


distribution_name = "qt{}-applications".format(qt_major_version)
import_name = distribution_name.replace('-', '_')


setuptools.setup(
name="qt5-applications",
name=distribution_name,
description="The collection of Qt tools easily installable in Python",
long_description=readme,
long_description_content_type='text/x-rst',
Expand Down Expand Up @@ -102,9 +107,9 @@ def has_ext_modules(self):
],
cmdclass={'bdist_wheel': BdistWheel, 'build_py': build.BuildPy},
distclass=Dist,
packages=setuptools.find_packages('src'),
package_dir={'': 'src'},
version=qt5_applications_version,
packages=[package.replace('qt_applications', import_name) for package in setuptools.find_packages('src')],
package_dir={import_name: 'src/qt_applications'},
version=qt_applications_version,
include_package_data=True,
python_requires=">=3.5",
)
21 changes: 0 additions & 21 deletions src/qt5_applications/__init__.py

This file was deleted.

Loading