Open
Conversation
Member
|
is there not a more secure way to get 'uv' installed ? E.g. from some managed environment ? That:
curl -LsSf https://astral.sh/uv/install.sh | sh
looks scary as hell; and seeing that this curl script contains base64 opaque binaries that it then runs:
ignore base64 -d > "$_tmp" <<EOF
f0VMRgIBAQAAAAAAAAAAAAIAAgEBAAAAeAAgAAAAAABAAAAAAAAAAAAAAAAAAAAAQQAAAEAAOAAB
AAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAACAAAAAAAAAAIAAAAAAAJAAAAAAAAAAkAAAAAAAAAAAA
AQAAAAAABCiAAwUAFQAGABUAByCAAwsYggMAACsAC3iBAwAAKwAxen0n
EOF
....
chmod u+x "$_tmp"
....
"$_tmp"
Feels really rather scary ?
Dw.
|
Member
|
Yeah I agree on that. We could either manually fetch and verify the artefacts or use ubuntu's snap, https://snapcraft.io/install/astral-uv/ubuntu. Although I am less familiar with that tool.
`sudo snap install astral-uv --classic`
Cheers,
Luke
…-------- Original Message --------
On 14/06/2025 16:13, Dirk-Willem van Gulik - dirkx at webweaving.org ***@***.***> wrote:
This email failed anti-phishing checks when it was received by SimpleLogin, be careful with its content.
More info on https://simplelogin.io/docs/getting-started/anti-phishing/
------------------------------
is there not a more secure way to get 'uv' installed ? E.g. from some managed environment ? That:
curl -LsSf https://astral.sh/uv/install.sh | sh
looks scary as hell; and seeing that this curl script contains base64 opaque binaries that it then runs:
ignore base64 -d > "$_tmp" <<EOF
f0VMRgIBAQAAAAAAAAAAAAIAAgEBAAAAeAAgAAAAAABAAAAAAAAAAAAAAAAAAAAAQQAAAEAAOAAB
AAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAACAAAAAAAAAAIAAAAAAAJAAAAAAAAAAkAAAAAAAAAAAA
AQAAAAAABCiAAwUAFQAGABUAByCAAwsYggMAACsAC3iBAwAAKwAxen0n
EOF
....
chmod u+x "$_tmp"
....
"$_tmp"
Feels really rather scary ?
Dw.
|
|
In the installation instructions of uv they suggest using pip to install it, would there be a downside to doing that? |
Author
|
I've put together a script here which can be used to run upgrades of uv. @stormeuh, do you have any recommended reading around the snaps? I haven't worked with them too much before so unsure of the trade-offs they introduce. |
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.
This PR migrates the Master node from using
requirements.txtwith pip to usingpyproject.tomlwith uv for modern, faster dependency management.Changes
requirements.txtwithpyproject.tomlfor dependency managementpycryptowithpycryptodomefor better compatibilitymaster.shto useuv runinstead of direct Python callsREADME.mdto reflect uv usage__init__.py(not needed for standalone scripts)Key Benefits
Usage
uv sync(instead ofpip install -r requirements.txt)uv run python master.py --debug --dbfile sample-keydb.txtuv run python master.pyoruv shellBreaking Changes
curl -LsSf https://astral.sh/uv/install.sh | shFiles Changed
Master/pyproject.toml(new)Master/master.sh(updated)README.md(minimal updates)Master/requirements.txt(deleted)Master/__init__.py(deleted)This PR modernizes the dependency management while maintaining backward compatibility and improving the overall development experience.