Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using a different package index #833

Closed
cnpryer opened this issue Nov 8, 2023 · 1 comment
Closed

Using a different package index #833

cnpryer opened this issue Nov 8, 2023 · 1 comment
Milestone

Comments

@cnpryer
Copy link
Owner

cnpryer commented Nov 8, 2023

Summary

The solution for #482 was to allow (--) args to be passed to pip (the installer). Currently if a package index url is passed to pip it isn't persisted anywhere. So the user will have to know to use that package index url to reproduce the environment.

Motivation

Until better environment reproducibility can be implemented, there needs to be a way to reproduce installs that pass --index-url to pip. --index-url will always be configuration a future Huak will support, so a form of this can be added sooner rather than later.

Requirements

  • Support --index-url in CLI
  • If --index-url is used then packages added from that repository should be persisted with that information
  • Allow for future package installer implementations (pip-agnostic)
  • Securely use credentials for a package index

Questions

  • If more than one package index is used per-project how are dependencies managed between them?
  • Should --no-dependencies be implemented prior to this?
  • Should this be persisted to pyproject.toml or entered to Huak's home directory?

Details

Per-project package index configuration

In the project's pyproject.toml file:

# ...

[tool.huak.package-index."my-index"]
url = "url to index"
dependencies = [
    "some-package",
]

Package index credentials management

In Huak's credentials.toml located in Huak's home directory:

[package-index."my-index"]
token = "encrypted authentication token"
@cnpryer cnpryer added this to the General-use release milestone Nov 8, 2023
@cnpryer cnpryer changed the title Installing packages from configurable repositories (registries) Using a different package index Nov 21, 2023
@cnpryer cnpryer assigned cnpryer and unassigned cnpryer Nov 21, 2023
@cnpryer
Copy link
Owner Author

cnpryer commented Feb 17, 2024

Will be using uv

@cnpryer cnpryer closed this as completed Feb 17, 2024
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

No branches or pull requests

1 participant