Skip to content

Conversation

@GenericJam
Copy link
Contributor

Added support and a bit of validation and tests.

Let me know if you want something different.

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
Member

Choose a reason for hiding this comment

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

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
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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

Copy link
Member

Choose a reason for hiding this comment

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

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

Copy link
Contributor Author

@GenericJam GenericJam left a comment

Choose a reason for hiding this comment

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

Are we happy with these changes now?

@jonatanklosko 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
@jonatanklosko jonatanklosko merged commit 12ece41 into livebook-dev:main Jan 16, 2026
9 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.

3 participants