A setuptools plugin for converting Qt .ui and .qrc files to Python files with Qt.py.
Project description
A setuptools plugin for converting Qt .ui and .qrc files to Python files with Qt.py.
Installation
setuptools-qt.py can be installed through pip:
pip install setuptools-qt.py
Usage
Add setuptools-qt.py to the requires list in your project’s pyproject.toml file.
[build-system]
requires = ["setuptools>=44.1", "setuptools-qt.py"]
build-backend = "setuptools.build_meta"
The plugin will automatically find and compile .ui and .qrc file in your packages’ directories. Compiled files are output with the same name as the source .ui or .qrc file, with the file extension replaced with a suffix of _ui.py and _rc.py respectively.
myrepo
└── src
└── mypackage
├── myui.ui
├── myui_ui.py
├── myresources.ui
├── myresources_rc.py
└── __init__.py
The output filename can be configured in the pyproject.toml file.
[tool."setuptools-qt.py"]
filename-ui = "{stem}.py"
filename-qrc = "{stem}.py"
myrepo
└── src
└── mypackage
├── myui.ui
├── myui.py
├── myresources.ui
├── myrrsources.py
└── __init__.py
Contributing
Running the tests
Tests are executed through tox.
tox
Code Style
Code is formatted using ruff format.
You can check your formatting using ruff’s check mode:
tox -e format
You can also get ruff to format your changes for you:
.tox/format/bin/ruff format src/ tests/
Release Notes
Release notes are managed through towncrier. When making a pull request you will need to create a news fragment to document your change:
tox -e release_notes -- create --help
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
License
This project is licensed under the MIT License. See the LICENSE.rst file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file setuptools_qt_py-1.0.0.tar.gz.
File metadata
- Download URL: setuptools_qt_py-1.0.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d16c1348d7badd6babfb59dc1b0120be106478c283e840ed8d2e47a04b4b2107
|
|
| MD5 |
f3042d3784b32a561ed4200ac37a3904
|
|
| BLAKE2b-256 |
107ccbefa1a4040a26b1c9d448933b30f351d467ddd650dee858fad571f6f117
|
Provenance
The following attestation bundles were made for setuptools_qt_py-1.0.0.tar.gz:
Publisher:
release.yml on AWhetter/setuptools-qt.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
setuptools_qt_py-1.0.0.tar.gz -
Subject digest:
d16c1348d7badd6babfb59dc1b0120be106478c283e840ed8d2e47a04b4b2107 - Sigstore transparency entry: 390005777
- Sigstore integration time:
-
Permalink:
AWhetter/setuptools-qt.py@c9d14167408726c27b2c0d502eb84d8e3cf05d93 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/AWhetter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c9d14167408726c27b2c0d502eb84d8e3cf05d93 -
Trigger Event:
push
-
Statement type:
File details
Details for the file setuptools_qt_py-1.0.0-py3-none-any.whl.
File metadata
- Download URL: setuptools_qt_py-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f97b9fbd8a728178e5266363d23aeb2e233168a75db0935e7af81e7441e75966
|
|
| MD5 |
1d410cc5604323ad903d60ff0da70e2e
|
|
| BLAKE2b-256 |
187874b0f48afe75de46ceab32e213115b6f88344aa5d0fd20809c3918976e27
|
Provenance
The following attestation bundles were made for setuptools_qt_py-1.0.0-py3-none-any.whl:
Publisher:
release.yml on AWhetter/setuptools-qt.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
setuptools_qt_py-1.0.0-py3-none-any.whl -
Subject digest:
f97b9fbd8a728178e5266363d23aeb2e233168a75db0935e7af81e7441e75966 - Sigstore transparency entry: 390005811
- Sigstore integration time:
-
Permalink:
AWhetter/setuptools-qt.py@c9d14167408726c27b2c0d502eb84d8e3cf05d93 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/AWhetter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c9d14167408726c27b2c0d502eb84d8e3cf05d93 -
Trigger Event:
push
-
Statement type: