Skip to content

Implemented check of installer Python version vs dependency package#977

Open
kalisp wants to merge 7 commits into
developfrom
enhancement/check_python_version_dep_pack_installer
Open

Implemented check of installer Python version vs dependency package#977
kalisp wants to merge 7 commits into
developfrom
enhancement/check_python_version_dep_pack_installer

Conversation

@kalisp

@kalisp kalisp commented Jun 12, 2026

Copy link
Copy Markdown
Member

Description of changes

As Python version changes in recent installers (launchers) this adds check for compatibility of launcher and dependency package set on a bundle.

(Could be tested by triggering api/bundles/check - requires BundleModel in body though. That could get pulled via api/bundles endpoint.)

image

@kalisp kalisp requested a review from martastain June 12, 2026 14:56
@kalisp kalisp self-assigned this Jun 12, 2026
@kalisp kalisp added the type: enhancement Improvement of existing functionality or minor addition label Jun 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a bundle validation check intended to ensure the selected dependency package’s Python version is compatible with the selected desktop installer (launcher) Python version, and refactors installer listing logic into a shared helper.

Changes:

  • Refactor /desktop/installers listing logic into a reusable get_installers() helper.
  • Add a new compatibility check in api/bundles/check_bundle.py comparing dependency package vs installer Python versions during api/bundles/check.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
api/desktop/installers.py Refactors installer listing/filtering into get_installers() and reuses it from the route handler.
api/bundles/check_bundle.py Adds dependency-package vs installer Python version validation during bundle checks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread api/bundles/check_bundle.py Outdated
Comment thread api/bundles/check_bundle.py
Comment thread api/bundles/check_bundle.py Outdated
Comment thread api/bundles/check_bundle.py Outdated
kalisp and others added 4 commits June 18, 2026 12:48
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@kalisp kalisp requested a review from BigRoy June 18, 2026 11:12
@BigRoy BigRoy requested a review from iLLiCiTiT June 18, 2026 11:17
Comment thread api/bundles/check_bundle.py Outdated
Comment thread api/desktop/installers.py
) -> InstallerListModel:
result: list[Installer] = []

if variant in ["production", "staging"]:

@iLLiCiTiT iLLiCiTiT Jun 19, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like dev bundles are not handled? Well, probably are because the logic didn't change, but I wonder how? 🙂

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement Improvement of existing functionality or minor addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bundles: Compatibility check Python version between Launcher and dependency package

4 participants