pixi
pixi copied to clipboard
Installing pypi-dependency from private repo: `git` works but `url` .whl fails
Authentication fails when installing .whl from a private github/release but works when using git link. Is there any way to config pixi to use github PAT?
pyproject.toml
[project]
authors = [{name = "jardol321", email = "XXX"}]
name = "mypackage"
requires-python = ">= 3.10"
version = "0.1.0"
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64"]
[tool.pixi.pypi-dependencies]
mypackage = { path = ".", editable = true }
# this works
private_package = { git = "https://github.com/org/private_package.git" }
# this fails
private_package = { url = "https://github.com/org/private_package/releases/download/v0.1.0/private_package-0.1.0-py3pnone-any.whl" }
error:
Error: × failed to solve the pypi requirements of 'default' 'linux-64'
├─▶ Failed to download `private_package @ https://github.com/org/private_package/releases/download/v0.1.0/private_package-0.1.0-py3-none-any.whl`
├─▶ Failed to fetch: `https://github.com/org/private_package/releases/download/v0.1.0/private_package-0.1.0-py3-none-any.whl`
╰─▶ HTTP status client error (404 Not Found) for url (https://github.com/org/private_package/releases/download/v0.1.0/private_package-0.1.0-py3-none-any.whl)
Maybe @tdejager or @wolfv have an idea on why this might not work correctly?
It seems like that package is just not available at that url.
Does curl work?
This URL also looks strange (notice pnone: private_package-0.1.0-py3pnone-any.whl)