FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add :native_tls option to Pythonx.uv_init/2 by GenericJam · Pull Request #41 · livebook-dev/pythonx · GitHub

Add :native_tls option to Pythonx.uv_init/2 - #41

Merged
jonatanklosko merged 4 commits into
livebook-dev:mainfrom
GenericJam:add-uv-flags-option
Jan 16, 2026
Merged

Add :native_tls option to Pythonx.uv_init/2#41
jonatanklosko merged 4 commits into
livebook-dev:mainfrom
GenericJam:add-uv-flags-option

Conversation

Copy link
Copy Markdown
Contributor

Added support and a bit of validation and tests.

Let me know if you want something different.

Comment thread lib/pythonx.ex Outdated
Comment on lines +116 to +123
- `["--native-tls"]` - use the system's native TLS implementation instead
of vendored rustls. This is useful in corporate environments where the
system certificate store must be used.
- `["--no-cache"]` - disable the cache, forcing a fresh download of all
packages.
- `["--reinstall"]` - force reinstallation of all packages, even if they
are already present.
- `["--quiet"]` - suppress output from the uv command.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I would prefer to just have an Elixir option :native_tls. This way we have more control over where how and where we pass specific CLI options. Also, we already have :force, so no need to use --no-cache or --reinstall. @josevalim wdyt?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think I agree, as we cannot guarantee all of the options will work with Pythonx...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Are there other options you would want as part of this PR or just limit it to :native_tls?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Let's do native tls for now. We can add more options if someone has a need for it :)

GenericJam left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Are we happy with these changes now?

Comment thread test/pythonx_test.exs Outdated
Comment thread lib/pythonx.ex Outdated
jonatanklosko changed the title Add support and basic validation for uv_flags (#40) Add :native_tls option to Pythonx.uv_init/2 Jan 16, 2026
Comment thread lib/pythonx.ex Outdated
Comment thread lib/pythonx/uv.ex Outdated
jonatanklosko merged commit 12ece41 into livebook-dev:main Jan 16, 2026
9 checks passed
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL