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

Add build-gpep517 pipeline for Python #663

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Dentrax
Copy link
Contributor

@Dentrax Dentrax commented Sep 6, 2023

This PR adds a new Python pipeline called: python/build-gpep517.

In case if upstream project does not provide neither pyproject.toml or setup.py, so python/build and python/build-wheel pipelines does not work as expected since both pipelines uses build module and depends on aforementioned files to run correctly. Invoking the python-build with -m gpep517 rather than -m build, resolves this issue.

Signed-off-by: Furkan Türkal <furkan.turkal@chainguard.dev>
@Dentrax Dentrax requested a review from a team as a code owner September 6, 2023 20:00
@Dentrax Dentrax requested review from joshrwolf and removed request for a team September 6, 2023 20:00
joshrwolf
joshrwolf previously approved these changes Sep 6, 2023
Signed-off-by: Batuhan Apaydin <batuhan.apaydin@chainguard.dev>
@kaniini
Copy link
Contributor

kaniini commented Sep 7, 2023

Why not just use gpep517 directly in python/build? As far as I can tell gpep517 does handle legacy setup.py scripts?

@Dentrax
Copy link
Contributor Author

Dentrax commented Sep 11, 2023

As far as I can tell gpep517 does handle legacy setup.py scripts?

Hmmm, how can we be sure that it won't break the existing as-is flow? I was thinking to invoke gpep517 module if there isn't any setup.py.

@Dentrax
Copy link
Contributor Author

Dentrax commented Sep 18, 2023

Any thoughts? @kaniini

Does it make sense to check pyproject.toml and setup.py files whether exist, if so use as-is, otherwise fallback to gpep517 way?

@Dentrax
Copy link
Contributor Author

Dentrax commented Oct 19, 2023

How should we proceed here?

cc @imjasonh

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.

None yet

4 participants