build icon indicating copy to clipboard operation
build copied to clipboard

Add Github action

Open FFY00 opened this issue 1 year ago • 5 comments

Similar to https://github.com/pypa/gh-action-pypi-publish but to build packages.

FFY00 avatar May 28 '24 15:05 FFY00

I think this would basically be https://github.com/hynek/build-and-inspect-python-package except without the validation? Edit: also no auto archive uploads.

henryiii avatar May 28 '24 15:05 henryiii

Yes, I wasn't aware of that, maybe it doesn't make much sense then though.

FFY00 avatar May 28 '24 16:05 FFY00

Build uses it. :) It also uses uv and our --installer=uv option, so it's really fast. Not sure we could do better. If we could provide an action that was flexible enough that action could use, though, I think that might be worth while.

(Actually, I use it in so many of my repos that I spent 10 minutes looking for an example of someone learning recently to find one that didn't use it)

henryiii avatar May 28 '24 17:05 henryiii

Okay, today I ran into a use-case where that action is a bit undesirable. I want to build a wheel as an intermediary step, and hynek's action always uploads the artifact, which is not needed.

FFY00 avatar May 29 '24 14:05 FFY00

This reminds me of a repo w/ reusable workflows I wanted to suggest. I even talked to @henryiii about it but never got to post on the ML. It would be a good place to host something for build, cibuildwheel and pypi-publish. I think that having a wrapper action for just build is probably not something to entertain really. But a reusable workflow could be integrated way better.

webknjaz avatar Oct 22 '25 15:10 webknjaz