Skip to content

natorsc/py-pyside-qml

Repository files navigation

Python - PySide - Qt - QML

Python - PySide - Qt - QML

Initial template for projects with Python and Qt framework.

🤓 Author

Repository created with 💙 by Renato Cruz 🤜🤛 Feel free to reach out!

Email

Check out programming and technology content on:

justcode.com.br

swift.dev.br

A playlist I often listen to while studying or coding 😁:

Spotify


💝 Donations

Thank you for your donation, it's through your support that I can maintain this content 😊.

Github

https://github.com/sponsors/natorsc/

Pix (Brazil)

Key: b1839493-2afe-484d-9272-82a3e402b36f


Publishing

Wheels

Build:

uv build

The above command will generate a folder with the name dist and the files *.whl and *.tar.gz will be inside it.

Flatpak

Dependencies

KDE:

flatpak install \
flathub \
org.kde.Platform/x86_64/6.8 \
org.kde.Sdk/x86_64/6.8

PySide:

flatpak install \
flathub \
io.qt.PySide.BaseApp/x86_64/6.8

Flatpak pip generator

Tool assists in creating project dependencies.

wget \
https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/master/pip/flatpak-pip-generator \
--directory-prefix .venv/bin

Or:

curl --create-dirs -O \
--output-dir .venv/bin/ \
https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/master/pip/flatpak-pip-generator

Example:

python \
.venv/bin/flatpak-pip-generator \
markdown

Finally add the *.json file generated in the modules key.

Example:

"modules": [
  "modules/package-name-01.json",
  "modules/package-name-02.json"
]

Packaging

Build:

flatpak-builder \
--force-clean \
flatpak-build-dir \
br.com.justcode.Qt.json

Test the flatpak build::

flatpak-builder \
--run \
flatpak-build-dir \
br.com.justcode.Qt.json \
app-name

Test the translation:

flatpak-builder \
--run \
--env=LC_ALL=pt_BR.UTF-8 \
flatpak-build-dir \
br.com.justcode.Qt.json \
app-name

Build a distributable nightly flatpak bundle:

flatpak-builder \
--repo app-name-master \
--force-clean \
--ccache \
flatpak-build-dir \
br.com.justcode.Qt.json
flatpak \
build-bundle \
app-name-master \
app-name.flatpak \
br.com.justcode.Qt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published