Skip to content
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

Merged
merged 4 commits into from
Dec 4, 2024

Conversation

nichmor
Copy link
Contributor

@nichmor nichmor commented Dec 4, 2024

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

Cargo.toml Outdated Show resolved Hide resolved
@@ -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() {
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

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!

Copy link
Contributor Author

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

@wolfv wolfv merged commit 18279f7 into prefix-dev:main Dec 4, 2024
6 checks passed
Copy link
Contributor

@Hofer-Julian Hofer-Julian left a 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!

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.

3 participants