pixi icon indicating copy to clipboard operation
pixi copied to clipboard

Installing pypi-dependency from private repo: `git` works but `url` .whl fails

Open jardol321 opened this issue 8 months ago • 4 comments

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)

jardol321 avatar Apr 16 '25 15:04 jardol321

Maybe @tdejager or @wolfv have an idea on why this might not work correctly?

ruben-arts avatar Apr 22 '25 12:04 ruben-arts

It seems like that package is just not available at that url.

tdejager avatar Apr 22 '25 12:04 tdejager

Does curl work?

tdejager avatar Apr 22 '25 12:04 tdejager

This URL also looks strange (notice pnone: private_package-0.1.0-py3pnone-any.whl)

wolfv avatar Apr 22 '25 12:04 wolfv