Python script only packages FE support - #48946
Merged
cdcme merged 1 commit intoJul 9, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## feat/41470-python-script-only #48946 +/- ##
=================================================================
- Coverage 68.11% 68.11% -0.01%
=================================================================
Files 3709 3709
Lines 235099 235105 +6
Branches 12352 12355 +3
=================================================================
+ Hits 160129 160133 +4
- Misses 60593 60595 +2
Partials 14377 14377
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
Author
|
@claude review once |
RachelElysia
reviewed
Jul 9, 2026
| isLatestFmaVersion={row.isActive && isLatestFmaVersion} | ||
| isScriptPackage={isScriptPackage} | ||
| source={title.source} | ||
| isTarballPackage={title.source === "tgz_packages"} |
Member
There was a problem hiding this comment.
since we're passing source in directly, I wonder if we can move the isTarballPackage and isIosOrIpadosApp into the library item accordion directly and use the source prop in there, just small cleanup.
RachelElysia
approved these changes
Jul 9, 2026
4 tasks
cdcme
added a commit
that referenced
this pull request
Jul 16, 2026
**Related issue:** Resolves #41470 Adds support for uploading Python (`.py`) script-only software packages — accepted as script-only (the file contents become the install script; advanced options and automatic install follow `.sh`/`.ps1`), assigned the new `py_packages` source, and installable on macOS and Linux hosts across the UI, REST API, and GitOps. Feature branch combining the backend (#48942) and frontend (#48946) sub-PRs. # Checklist for submitter - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. - [x] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements), JS inline code is prevented especially for url redirects, and untrusted data interpolated into shell scripts/commands is validated against shell metacharacters. ## Testing - [x] Added/updated automated tests - [x] QA'd all new/changed functionality manually <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for Python (`.py`) script-only software packages across UI uploads, API/self-service installs, and GitOps parsing. * Python installers now derive metadata correctly and render the proper Python icon, with install eligibility for macOS & Linux. * **Bug Fixes** * Improved installer-script validation and “supported file types” error messages to include `.py` (and consistent handling of related script fields/options). * **Tests** * Expanded unit, integration, and GitOps tests to cover Python package parsing, metadata derivation, platform/host eligibility, and UI rendering. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue: Resolves #48394
Adds
.pyto the custom-package upload form and software details page, accepted and detected as a script-only package (advanced options follow.sh/.ps1), shown with the Python icon and per-platform file-type tooltips, and mapped to thepy_packagessource that renders as "Script-only package (macOS & Linux)".Checklist for submitter
Manual QA