Skip to content

uvx package: Use platform.uname().machine#139

Merged
paulgb merged 1 commit intojamsocket:mainfrom
exurd:main
Apr 17, 2025
Merged

uvx package: Use platform.uname().machine#139
paulgb merged 1 commit intojamsocket:mainfrom
exurd:main

Conversation

@exurd
Copy link
Contributor

@exurd exurd commented Apr 10, 2025

Closes #118.

@paulgb
Copy link
Member

paulgb commented Apr 17, 2025

Thanks for this!

Looks like the github action failure is just an issue of the secret not being set for an external PR, so I'm ok to ship this without the test passing (this PR doesn't touch the library code that gets tested anyway).

@paulgb paulgb requested review from Copilot and paulgb and removed request for paulgb April 17, 2025 06:58
Copy link

Copilot AI left a comment

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 updates the forevervm package to use platform.uname().machine for determining the system architecture, in order to improve accuracy in binary suffix selection.

  • Import the platform module and extract uname machine information
  • Update Windows architecture mapping from "x86_64" to "AMD64"
  • Adjust binary file path and URL generation to use the new variables
Comments suppressed due to low confidence (1)

python/forevervm/forevervm/init.py:21

  • Verify that platform.uname().machine consistently returns 'AMD64' on all Windows systems; inconsistency may cause the binary URL mapping to fail. If returns vary, consider implementing normalization for Windows architecture values.
        ("win32", "AMD64"): "win-x64.exe.gz",

@paulgb paulgb merged commit 8eecb47 into jamsocket:main Apr 17, 2025
1 of 2 checks passed
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.

Windows uvx forevervm signup: module 'os' has no attribute 'uname'.

2 participants