Skip to content

Conversation

jherland
Copy link
Member

Issue #494 highlights the use of "-e ./" (i.e. an editable
self-dependency) in environment.yml files.

We already work around these kinds of self-dependencies in
pyproject.toml and pixi.toml files, and our requirements.txt parser
automatically ignores any lines with pip options, hence environment.yml
is the only(?) remaining dependency file format where we're not yet
handling this.

Fix that, by recognizing this case before we emit an unnecessary error
message about it. In either case we continue parsing the remaining
lines, so the actual behavior (except for the error message) does not
need to change.

Fixes #494.

@jherland jherland added this to the FawltyDeps 1.0 milestone Jun 11, 2025
@jherland jherland self-assigned this Jun 11, 2025
Issue #494 highlights the use of "-e ./" (i.e. an editable
self-dependency) in environment.yml files.

We already work around these kinds of self-dependencies in
pyproject.toml and pixi.toml files, and our requirements.txt parser
automatically ignores any lines with pip options, hence environment.yml
is the only(?) remaining dependency file format where we're not yet
handling this.

Fix that, by recognizing this case before we emit an unnecessary error
message about it. In either case we continue parsing the remaining
lines, so the actual behavior (except for the error message) does not
need to change.

Fixes #494.
@jherland jherland force-pushed the jherland/ignore-editable-self-deps branch from 90bcaa2 to f11fd28 Compare June 11, 2025 15:58
Copy link
Collaborator

@layus layus left a comment

Choose a reason for hiding this comment

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

The change makes sense, the code too. Ready to ship as-is.

@jherland jherland merged commit fe7ee21 into main Jun 13, 2025
60 checks passed
@jherland jherland deleted the jherland/ignore-editable-self-deps branch June 13, 2025 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

environment.yml with pip and -e .

2 participants