-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: parse console scripts #31
Conversation
@@ -204,6 +206,19 @@ impl PythonBuildBackend { | |||
NoArchType::none() | |||
}; | |||
|
|||
// Determine the entry points from the pyproject.toml | |||
// which would be passed into recipe | |||
let python = if self.manifest.document.is_pyproject_toml() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I wonder if we should just re-parse the file as pyproject.toml?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean? I thought that entry points are necessary only in case of pyproject.toml
, so I'm explicitly avoiding the case when it is pixi.toml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah for sure, but we could parse the pyproject toml with pyproject-toml instead of through pixi. But doesn't really matter either!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah got it now! you meant with the pyproject-toml library
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One tiny suggestion. Apart from that it looks great @nichmor!
Overview
This fix/feature is necessary for windows pipeline failure : prefix-dev/pixi#2638
I've added some unit tests for parsing console scripts. Integration test itself will be this PR: prefix-dev/pixi#2638
Before merging this need to land:
prefix-dev/pixi#2643