Skip to main content

A hatch plugin to build Pyside6 elements

Project description

hatch-pyside

PyPI - Version PyPI - Python Version


Table Of Contents

Goal

This is a hatch plugin able to automatically build the required Python files from their associated Qt source file. For example, it will build a ui_MainWindow.py file from a MainWindow.ui one.

Additionally, it installs a GUI tool to manage the proj_name.pyproject file that is used by pyside6-project (which is internally called by hatch-pyside).

Status

The plugin and the GUI are currently beta quality. They still lack real world tests and a decent documentation.

Installation

The installation only makes sense if you want to use the GUI script. For a simple plugin usage, the hatchling build backend will automatically install the plugin.

pip install hatch-pyside

Usage

Plugin

You only have to declare the plugin as a build dependency, and configure it to declare the directories that contain the Qt source files to compile.

If they contain a configured .pyproject file you are done:

[build-system]
requires = ["hatchling", "hatch-pyside"]
build-backend = "hatchling.build"
#...
# Declare the source folder(s) to the pyside plugin
[tool.hatch.build.targets.wheel.hooks.pyside]
folders = ["src/foo"]

GUI

If you install the package in your environment, you will gain access to the hatch-pyside GUI tool. It uses the plugin configuration to know what are the directories of interest, and allow you to easily populate a .pyproject file

Developer

If you want to modify hatch-pyside, you can either grab the source package from PyPI, or better clone the GitHub repository:

git clone https://github.com/s-ball/hatch-pyside.git

Contributing

I shall always be glad to receive issues or Pull Requests on GitHub. But as I am the only maintainer, I cannot guarantee to react quickly to them. Please feel free to contact me by mail if I do not answer quickly enough...

License

hatch-pyside is distributed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hatch_pyside-0.5.4.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hatch_pyside-0.5.4-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file hatch_pyside-0.5.4.tar.gz.

File metadata

  • Download URL: hatch_pyside-0.5.4.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for hatch_pyside-0.5.4.tar.gz
Algorithm Hash digest
SHA256 3f4e1ead2a3c51f66bfb0a13b38964977704ab03ddf87a1d54058dcdc9cdb9fc
MD5 f00b6ef9a123b3ed9ccace3cf20da8ae
BLAKE2b-256 d277c0e1d7f50d68840be4017c38582f29477fe7622c22ea3773db6744b09c9b

See more details on using hashes here.

File details

Details for the file hatch_pyside-0.5.4-py3-none-any.whl.

File metadata

  • Download URL: hatch_pyside-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for hatch_pyside-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fd38b8cc8bd8f2ba5ed19168e5ddcf8e3df5cb26c447b55d33aae39eb900d6b3
MD5 4fdf7609fe8a10b03f249362756a633e
BLAKE2b-256 9f509b9041ea1aecf47653095600dd2ce25224e64a9d1937e21fdc2ea0b62451

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page