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

MAINT Subclass recipe builders #36

Merged
merged 10 commits into from
Dec 23, 2024
Merged

Conversation

ryanking13
Copy link
Member

@ryanking13 ryanking13 commented Sep 25, 2024

Subclasses RecipeBuilder based on the package type. This is to make it easier to distinguish between behavior that varies by package type. No functional changes intended.

I'll update the buildall.py as a follow-up.

I also removed prettier from the pre-commit, which I don't think is very useful for pyodide-build.

@@ -412,6 +375,105 @@ def _compile(
self.src_extract_dir, self.src_dist_dir, build_env, config_settings
)

def _patch(self) -> None:
Copy link
Member Author

Choose a reason for hiding this comment

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

There is no change in _patch or other functions. It seems git diff is not smart enough to create a small diff.

Copy link
Member

@agriyakhetarpal agriyakhetarpal left a comment

Choose a reason for hiding this comment

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

Thanks, @ryanking13, looks like nice maintenance!

@agriyakhetarpal
Copy link
Member

Prettier was quite helpful for me when linting YAML files for GitHub Actions, but I have no objections to removing it. We can use the VS Code extension for that.

@ryanking13
Copy link
Member Author

Thanks for the review!

Prettier was quite helpful for me when linting YAML files for GitHub Actions, but I have no objections to removing it. We can use the VS Code extension for that.

Yeah, it is. But mirrors-prettier is deprecated, so I think we should drop it. There aren't much yaml files in this repository so I think it is okay

@ryanking13 ryanking13 merged commit 51fe634 into pyodide:main Dec 23, 2024
4 checks passed
ryanking13 added a commit that referenced this pull request Dec 23, 2024
#36 had a bug not supporting `cpython_module` type recipes.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@ryanking13 ryanking13 deleted the subclass-builder branch January 11, 2025 08:07
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.

2 participants