Closed jbbarth closed 1 month ago
Nice! I was about to suggest trying
hatch publish -r test
but can't add you to the project (no verified primary email)
Edit: ran the command successfully π
π Hi @jbbarth π
I had forgotten about this branch and redid one using build
(Joachim noticed the presence of other unwanted artifacts in the previous versions I pushed, but feel free to merge them
I managed yet again to push a broken rc π; let's use your work
Description
This PR introduces the "hatch" library to build eggs/wheels, publish, increment versions. It works a lot better (imho) than setuptools so we should use it π
Details
I was polluted on my computer by weird behaviours (probably related to my PYTHONPATH pyenv setup, previously installed simpleflow, etc. etc.). So I tested on a docker containers, see below.
Installing from git (first commit)
Basically this is enough:
Test:
=> we can import simpleflow => no extra directory (default config of hatchling is nice!) => we have the subdirectories
Building an egg or wheel (second commit)
We need to add this so the resulting tarball egg (tar.gz) or wheel (whl) only contain the "simpleflow" folder.
Test:
=> we get simpleflow installed, with no extra directory.
Releasing (third commit)
I adapted the "script/release" script and tested the best I could, but didn't get to the "publish" step yet. I'm curious @ybastide if this could work for you: the version now doesn't preview an automated increment, but you can provide a specific version or rely on hatch goodies to update the number you want ("minor", "patch", etc.).
I think it will work. If you're OK with the rest I can test further of course.