Skip to content

chore!: remove build-api v0#4754

Merged
baszalmstra merged 8 commits intoprefix-dev:mainfrom
baszalmstra:chore/remove-build-api-v0
Oct 17, 2025
Merged

chore!: remove build-api v0#4754
baszalmstra merged 8 commits intoprefix-dev:mainfrom
baszalmstra:chore/remove-build-api-v0

Conversation

@baszalmstra
Copy link
Contributor

@baszalmstra baszalmstra commented Oct 14, 2025

This removes everything related to build-api v0. All recent backends support the newer APIs, and maintaining support for version 0 was challenging. When you encounter an issue like:

├─▶   × failed to extract metadata for package 'python_rich'
      │
      ├─▶   × could not initialize the build-backend
      │
      ├─▶   × failed to solve the environment
      │
      ╰─▶ Cannot solve the request because of: The following packages are
          incompatible
          └─ pixi-build-python ==0.3.2 can be installed with any of the following
          options:
             └─ pixi-build-python 0.3.2 would require
                └─ pixi-build-api-version >=0,<2, which can be installed with any of the following options:
                   └─ pixi-build-api-version 0
                      ├─ the constraint pixi-build-api-version >=1,<3 cannot be fulfilled

Make sure to update the version of your build backend.

AI Disclosure

Most of this was done by Claude.

@ruben-arts
Copy link
Contributor

Can you check if all pixi-build/ examples still work or if we should update the version of the backend.

@baszalmstra baszalmstra mentioned this pull request Oct 14, 2025
3 tasks

[tool.pixi.package.build]
backend = { name = "pixi-build-python", version = "0.1.*" }
backend = { name = "pixi-build-python", version = "0.4.*" }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't any of these create a pixi.lock update?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No they are not stored in the lock-file.

Copy link
Contributor

@ruben-arts ruben-arts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appart from my worry about the examples this seems fine to me, could you make the sister PR on pixi-build-backends?

@baszalmstra baszalmstra added the test:extra_slow Run the extra slow tests label Oct 14, 2025
@baszalmstra baszalmstra mentioned this pull request Oct 17, 2025
3 tasks
@baszalmstra baszalmstra enabled auto-merge (squash) October 17, 2025 12:12
@baszalmstra baszalmstra disabled auto-merge October 17, 2025 12:12
@baszalmstra baszalmstra changed the title chore: remove build-api v0 chore!: remove build-api v0 Oct 17, 2025
@baszalmstra baszalmstra enabled auto-merge (squash) October 17, 2025 12:13
@baszalmstra baszalmstra merged commit e6b8d29 into prefix-dev:main Oct 17, 2025
43 checks passed
@baszalmstra baszalmstra deleted the chore/remove-build-api-v0 branch March 26, 2026 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:extra_slow Run the extra slow tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants