GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add :native_tls option to Pythonx.uv_init/2 by GenericJam · Pull Request #41 · livebook-dev/pythonx

Conversation

@GenericJam

@GenericJam GenericJam commented Jan 16, 2026

Copy link
Copy Markdown
Contributor

Added support and a bit of validation and tests.

Let me know if you want something different.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
jonatanklosko
jonatanklosko reviewed Jan 16, 2026
View reviewed changes
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.

@jonatanklosko jonatanklosko Jan 16, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

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?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@josevalim josevalim Jan 16, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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...

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@GenericJam GenericJam Jan 16, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

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?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@jonatanklosko jonatanklosko Jan 16, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

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 :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@GenericJam
Add native_tls option to Pythonx.uv_init/2 (livebook-dev#40)
8c0b692
@GenericJam
GenericJam force-pushed the add-uv-flags-option branch from b690e95 to 8c0b692 Compare January 16, 2026 16:29
GenericJam
GenericJam commented Jan 16, 2026
View reviewed changes

@GenericJam GenericJam left a comment

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this 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?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
jonatanklosko
jonatanklosko reviewed Jan 16, 2026
View reviewed changes
Comment thread test/pythonx_test.exs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread lib/pythonx.ex Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jonatanklosko
Apply suggestions from code review
b48697c
jonatanklosko
jonatanklosko approved these changes Jan 16, 2026
View reviewed changes
@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 reviewed Jan 16, 2026
View reviewed changes
Comment thread lib/pythonx.ex Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jonatanklosko
Update lib/pythonx.ex
20897d3
jonatanklosko
jonatanklosko reviewed Jan 16, 2026
View reviewed changes
Comment thread lib/pythonx/uv.ex Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jonatanklosko
Update lib/pythonx/uv.ex
b677310
@jonatanklosko
jonatanklosko merged commit 12ece41 into livebook-dev:main Jan 16, 2026
9 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@nyo16 nyo16 mentioned this pull request Feb 14, 2026
Add :python option to uv_init/2 for free-threaded Python support #45
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@josevalim josevalim josevalim left review comments
@jonatanklosko jonatanklosko jonatanklosko approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@GenericJam @josevalim @jonatanklosko
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.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.