Skip to content

KrusnikViers/PyQtTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyQtTemplate

codecov Maintainability

Template for Python projects using Qt as GUI.
Other files: License file (MIT), Features tracker

Setting up the project

  1. Update base/info.py with your project data.
  2. Update badge links in README
  3. Add CODECOV_TOKEN from codecov.io to Repository Action secrets.
  4. Update .github/workflows/build.yml if necessary

Suggested Workflows / Run Configurations

  • Gen UI
    • Python script $ProjectFileDir$/build_tools/qt_gen_ui_files.py
    • Add this step as a pre-requisite for all the next steps
  • Run App
    • Python script $ProjectFileDir$/main.py
  • Run Tests
    • Unittests in project root directory, pattern *_test.py
  • Build Binary
    • Python Module PyInstaller
    • Arguments: $ProjectFileDir$/build_tools/pyinstaller/binary.spec

Adding Qt Designer in PyCharm

Settings ⇒ Tools ⇒ External Tools
Program: $ProjectFileDir$\.venv\Lib\site-packages\PySide6\designer.exe
Arguments: $FilePath$
Directory: $ProjectFileDir$

Versions and release process

Project has two hardcoded version numbers. Updating major version resets minor one to zero.

  1. PROJECT_COMPATIBILITY_VERSION
    Increased when changes make new version incompatible with the previous one in any way.
  2. PROJECT_FEATURE_PACK_VERSION
    Increased with significant changes from the user point of view.

Separately, all builds from GitHub Actions will bake "branch:commit" as part of the version info, to simplify finding the exact build. All local builds will have "local:unknown" stated there.

About

Template for Python projects using Qt as GUI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages