Skip to content

pixi build doesn't include dependencies and incorrect version #2598

@pavelzw

Description

@pavelzw

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

Quantco/polarify#81

Issue description

i'm currently playing around with pixi build and found that the package generated with pixi build doesn't include polars >=0.14.24,<0.21 in its dependencies, even though it's specified in pyproject.toml as well as pixi.toml.

Currently, index.json looks like this:

{
  "build": "pyhbf21a9e_0",
  "build_number": 0,
  "depends": [
    "python"
  ],
  "name": "polarify",
  "noarch": "python",
  "subdir": "noarch",
  "timestamp": 1732885543257,
  "version": "0.1.0"
}

Expected behavior

I would expect it to look more like this:

{
  "build": "pyhbf21a9e_0",
  "build_number": 0,
  "depends": [
    "python >=3.9", // from pyproject.toml requires-python or pixi.toml dependencies?
    "polars >=0.14.24,<0.21" // from pyproject.toml or pixi.toml?
  ],
  "name": "polarify",
  "noarch": "python",
  "subdir": "noarch",
  "timestamp": 1732885543257,
  "version": "0.2.0" // <- should be 0.2.0, from pixi.toml's package.version
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions