Skip to content

Add support of source dependencies ( direct references of dependency )  #879

@nichmor

Description

@nichmor

Problem description

This feature aim to allow to specify source dependencies ( direct reference of a dependency) in pixi.toml

this is how pixi.toml will look like

[pypi-dependencies]
# relative path
numpy = {path = "../numpy_repo"}
# editable install of relative path
numpy = {path = "../numpy_repo", editable = true}

# URLs
tensorflow = {url = "https://mytensorflow.com/tf.tar.gz" }

# reference by branch
boltons = {git = "https://github.com/mahmoud/boltons" ,   branch = "next"}
# reference by rev
boltons = {git = "https://github.com/mahmoud/boltons" ,   rev = "38eb5d3b"}
# reference by tag
boltons = {git = "https://github.com/mahmoud/boltons" ,   tag = "v0.13.2"}
# using subdirectory
boltons = {git = "https://github.com/mahmoud/boltons" ,   subdirectory = "subdir"}
# by ssh
requests = { git = "git@github.com:requests/requests.git" }

CLI commands

also we will extend pixi add command:

pixi add https://github.com/mahmoud/boltons/archive/refs/tags/23.0.0.tar.gz

which should produce this in pixi.toml

[pypi-dependencies]
boltons = {url = "https://github.com/mahmoud/boltons/archive/refs/tags/23.0.0.tar.gz" }

Metadata

Metadata

Assignees

Labels

enhancementNew featurespypiIssue related to PyPI dependencies

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions