Open Gadgetoid opened 4 months ago
I'll have a look into this later tonight.
I think I've figured it out. And published the package 🥳
Leaving this open in case you get a chance to confirm I'm not barking up the wrong tree, but I fixed up the package - via a bunch of trial and error 😆 - to be compatible with what I assume are recent Poetry versions efforts to be helpful.
Pushed up to PyPI, though I have not taken much care about the version yet.
Would be nice to get the package building in CI here, too!
Gave it a quick test while following the instructions and its working!
Theres a guide here for automatic publishing when pushing a tag: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
Ooooh, Trusted Publishing is new to me. I've got a bunch of PyPI packages that build/test on CI but always avoided automatic publishing for the mentioned security reasons. Knowing me, Trusted Publishing has probably been a thing for 5 years now 😆
Thanks for giving the package a try, I'll look into this when I get a bunch more time!
"poetry" fails with:
It looks like
pyproject.toml
should includepimoroni-pico-stubs
as a package, and thestubs
subfolder should be renamed topimoroni-pico-stubs
. Poetry uses the-stubs
suffix to identify stubs-only packages.Additionally, the
requirements.txt
mentioned in thePUBLISH.md
is missing.