Skip to content

feat: Relative path support in LockFile - #4788

Closed
hunger wants to merge 3 commits into
prefix-dev:feature/lockfile-v7from
hunger:push-wmptuwstlsln
Closed

hunger wants to merge 3 commits into
prefix-dev:feature/lockfile-v7from
hunger:push-wmptuwstlsln

Conversation

@hunger

@hunger hunger commented Oct 19, 2025 •

Copy link
Copy Markdown
Contributor

Description

Make pixi handle relative paths to pypi dependencies in the LockFile. This helps when checking in pixi.lock files that reference local python packages. Instead of ending up with a machine specific path in the lock file we have a relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760

The PR consists of several changes:

Note: This only works with pixi.log, not when storing the pixi configuration inline in pyproject.toml. Pyproject.toml will need to get an update to enable it to handle relative paths (like accept a work directory when parsing the file as well as non-pep508-extension support). I did not want to complicate this PR by requiring another PR to yet another crate.

Relates to: #4680

@hunger

hunger commented Oct 19, 2025

Copy link
Copy Markdown
Contributor Author

CI fails right now since rattler_lock does not have the required version.

* New `Verbatim` around some of the `UrlOrPath`
* Handle base_dir on file open

No behavior change is intended here.
@hunger
hunger force-pushed the push-wmptuwstlsln branch from 9367042 to 48c5dd8 Compare October 20, 2025 16:42
@hunger

hunger commented Oct 20, 2025

Copy link
Copy Markdown
Contributor Author

Updated the change about adapting to rattler API changes.

@tdejager

Copy link
Copy Markdown
Contributor

Maybe we can patch the rattler versions in this PR? So we can see if CI runs and then change it back after a rattler release?

hunger added a commit to hunger/pixi that referenced this pull request Feb 9, 2026
This PR replaces prefix-dev#4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over prefix-dev#4788.

Relates to: prefix-dev#4680
hunger added a commit to hunger/pixi that referenced this pull request Feb 9, 2026
This PR replaces prefix-dev#4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over prefix-dev#4788.

Relates to: prefix-dev#4680
hunger added a commit to hunger/pixi that referenced this pull request Feb 10, 2026
This PR replaces prefix-dev#4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over prefix-dev#4788.

Relates to: prefix-dev#4680
hunger added a commit to hunger/pixi that referenced this pull request Feb 11, 2026
This PR replaces prefix-dev#4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over prefix-dev#4788.

Relates to: prefix-dev#4680
hunger added a commit to hunger/pixi that referenced this pull request Feb 16, 2026
This PR replaces prefix-dev#4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over prefix-dev#4788.

Relates to: prefix-dev#4680
hunger added a commit to hunger/pixi that referenced this pull request Mar 3, 2026
This PR replaces prefix-dev#4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over prefix-dev#4788.

Relates to: prefix-dev#4680
baszalmstra pushed a commit that referenced this pull request Mar 4, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit that referenced this pull request Mar 4, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit that referenced this pull request Mar 5, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit that referenced this pull request Mar 5, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit that referenced this pull request Mar 5, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit that referenced this pull request Mar 5, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit that referenced this pull request Mar 6, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit that referenced this pull request Mar 10, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit that referenced this pull request Mar 10, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit that referenced this pull request Mar 10, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit that referenced this pull request Mar 10, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
hunger added a commit to hunger/pixi that referenced this pull request Mar 11, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: prefix-dev#5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces prefix-dev#4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over prefix-dev#4788.

Relates to: prefix-dev#4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit that referenced this pull request Mar 12, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit to baszalmstra/pixi that referenced this pull request Mar 12, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: prefix-dev#5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces prefix-dev#4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over prefix-dev#4788.

Relates to: prefix-dev#4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
hunger added a commit to hunger/pixi that referenced this pull request Mar 18, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: prefix-dev#5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces prefix-dev#4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over prefix-dev#4788.

Relates to: prefix-dev#4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit that referenced this pull request Mar 20, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit that referenced this pull request Mar 20, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit that referenced this pull request Apr 9, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
baszalmstra pushed a commit that referenced this pull request Apr 10, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
@hunger
hunger changed the base branch from main to feature/lockfile-v7 April 11, 2026 22:08
@hunger

hunger commented Apr 11, 2026

Copy link
Copy Markdown
Contributor Author

I think I'll close this: It's part of lockfile-v7.

@hunger hunger closed this Apr 11, 2026
hunger added a commit that referenced this pull request Apr 13, 2026
When using `pixi list`, use data from the cached index data
that we have stored. Fall back to leaving the data blank
if nothing is cached.

We do run into the blank data case occasionally:
* Some repositories are to not get cached and uv accepts that
* Some are not "simple"

The `pytorch` index falls into both of those categories.

Fixes: #5114

WIP: rattler-overrides, ABANDON THIS

chore: Remove jlap support

Rattler removed this, so it needs to go here as well.

feat: Relative path support for pypi deps in Lockfile

This PR replaces #4788!

Make pixi handle relative paths to pypi dependencies in the LockFile. This
helps when checking in pixi.lock files that reference local python packages.
Instead of ending up with a machine specific path in the lock file we have
relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760 -- as
seen in the feature/lockfile-v7 branch in the `conda/rattler` repository!

The PR consists of several changes:

 - Update to the rattler_lock API changes made in feat: Relative path
   support in LockFile conda/rattler#1760
 - Make sure the non-pep508-extensions are enabled in pixi as well
   Convert between uv relative paths and pixi relative paths
 - It adapts pyproject.toml parsing to preserve relative path in
   python requirements and in the `tool.pixi.pypi-dependencies` section

The last is the big improvement over #4788.

Relates to: #4680

chore: Handle rattler removing the editable flag from PyPiSourced

chore: update to CondaSourceData having lost its input field

chore: update to new errors being raised by rattler

chore: Add initial platform support to pixi

Simplistic approach: It just creates platforms based
on conda's `Platform` without any virtual packages.

Handle pypi-prerelease-mode no longer being an Option

chore_ Update to pypi environment not being in the lockfile anymore

chore: Handle optional version in pypi source dependencies

We do not want to store the version number in case it is dynamic.

chore: Implement support for index_url in pypi packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants