-
Notifications
You must be signed in to change notification settings - Fork 391
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 git commit to version command #239
Conversation
Marshall-Hallenbeck
commented
Mar 30, 2024
- add git commit to version command so we know exactly what code is being ran during issue triage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to install the |
Hmm I will try again, but I just did poetry install and then poetry run |
@Marshall-Hallenbeck fresh installation: |
74844a9
to
4f24b11
Compare
When I pull down a fresh repo and run it via poetry, this all works for me. @zblurx @XiaoliChan could you guys test this as well? pull down this branch/a new repo, then run:
|
Did you try to reinstall poetry? My guess is still that this is set in poetry |
No, I'll try it on another host, too. |
Hmm so yeah it looks like this doesn't work for normal I'll have to figure out how to hook it into that process if I can... |
this works for pip/pipx since its respects the build-system, but poetry unfortunately doesn't (at least that's what it appears like: python-poetry/poetry#6154) |
@NeffIsBack so right now, pip/pipx will properly use the versioning, but poetry doesn't respect the build-system section, which is annoying. Luckily most people just install via pipx, and we really care about this for them when users report issues, so I think it's in a current state to help us out in that sense. I reverted to define the version # in the pyproject, so we will continue to update that with the latest tag, but we also get the bonus of getting the actual commit when someone uses pip/pipx. |
…ly what code is being ran during issue triage
…esnt leverage build-system
…al versioning (only happens with poetry)
c03a00e
to
ecf5772
Compare
Imo "" is fine, although its bothering if you know, most of the people will probably never notice it :D |
I also opened an issue on the plugin repository: mtkennerly/poetry-dynamic-versioning#176 |
@Marshall-Hallenbeck how about we add it also to the debug output, so we know which commit people are running when they open up issues? |
@NeffIsBack I've updated how we parse the args a bit, to parse debug and verbose early, so we can now properly debug log in the parsing of other CLI args. I also functionized/moved some stuff to logging to better fit our needs. Now we can output info like this: or even just if someone wants to debug the |
… debug log during cli_arg generation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.