Skip to content

Bundle Lib directory in GitHub releases#6497

Merged
youknowone merged 5 commits intomainfrom
copilot/update-releases-to-include-lib
Dec 25, 2025
Merged

Bundle Lib directory in GitHub releases#6497
youknowone merged 5 commits intomainfrom
copilot/update-releases-to-include-lib

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 25, 2025

RustPython binaries require the Lib directory (Python standard library) to run, but it was missing from release artifacts.

Changes

  • Add repository checkout to release job to access Lib directory
  • Create compressed zip archive of Lib directory (~8.8MB) for cross-platform compatibility
  • Archive automatically included in release assets via existing bin/rustpython-release-* glob pattern
  • Add custom release notes explaining users must download both the binary and Lib archive, with instructions on how to extract and use them

Result

Users can now download pre-built binaries with the required standard library instead of cloning the repository or manually configuring RUSTPYTHONPATH. Each release will include prominent instructions at the top of the release notes explaining the need to download both artifacts.

Original prompt

This section details on the original issue you should resolve

<issue_title>Python library is not bundled to github releases</issue_title>
<issue_description>Python binary requires Lib directory to run. But it is not included in the releases

We have to update weekly update to include an archive of Lib directory.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Dec 25, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Lib directory to GitHub releases Bundle Lib directory in GitHub releases Dec 25, 2025
Copilot AI requested a review from youknowone December 25, 2025 00:35
Copy link
Copy Markdown
Member

@youknowone youknowone left a comment

Choose a reason for hiding this comment

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

Also add a comment to release note that user must download both the binary and python lib to have /Lib

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Dec 25, 2025

Also add a comment to release note that user must download both the binary and python lib to have /Lib

Added release notes in commit 5e8e0b1. The notes will appear at the top of each release informing users they need to download both the binary and the Lib archive, with instructions on how to use them.

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
Copy link
Copy Markdown
Member

@youknowone youknowone left a comment

Choose a reason for hiding this comment

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

Let's only provide .zip. It is hard to imagine any environment without unzip with rustpython

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Dec 25, 2025

Let's only provide .zip. It is hard to imagine any environment without unzip with rustpython

Removed tar.gz archive in commit c6b3284. Now only creating rustpython-lib.zip for releases. Updated release notes accordingly.

@youknowone youknowone marked this pull request as ready for review December 25, 2025 00:48
@youknowone youknowone merged commit ebdc033 into main Dec 25, 2025
1 check passed
@youknowone youknowone deleted the copilot/update-releases-to-include-lib branch December 25, 2025 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python library is not bundled to github releases

2 participants