Skip to content

Conversation

@MickLesk
Copy link
Member

✍️ Description

What does this PR do?

  • Introduces a new function setup_uv() that automates the installation and updating of the uv package manager.
  • It fetches the latest uv release from GitHub, installs or updates it, and ensures /usr/local/bin is included in the $PATH.
  • Supports x86_64 and aarch64 architectures.

Why is this necessary?

  • uv is a fast and modern Python package manager that improves script performance and avoids system-wide pip modifications.
  • Manual installation of uv can be error-prone, especially in minimal or containerized environments where /usr/local/bin might not be in $PATH.

What are the benefits?

  • Ensures uv is installed and available without manual intervention.
  • Automatically keeps uv updated to the latest GitHub release.
  • Increases script reliability across Debian, Ubuntu, Alpine, and minimal Linux environments.

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

@MickLesk MickLesk requested a review from a team as a code owner April 29, 2025 13:17
@github-actions github-actions bot added core maintenance Code maintenance or general upkeep of the project update script A change that updates a script labels Apr 29, 2025
@MickLesk MickLesk requested a review from tremor021 April 29, 2025 13:51
@MickLesk MickLesk mentioned this pull request Apr 29, 2025
10 tasks
@tremor021 tremor021 merged commit e09b216 into main Apr 29, 2025
1 check passed
@MickLesk MickLesk added feature and removed update script A change that updates a script labels Apr 29, 2025
@MickLesk MickLesk deleted the MickLesk-patch-1 branch May 6, 2025 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core feature maintenance Code maintenance or general upkeep of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants