-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Dev versioning is broken. #4046
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
Comments
Turns out you can do |
i count 22 commits with
|
merge commits are counted. they are commits after all 😄 |
git log --oneline v0.12.0rc1.. | wc -l gives 26 and $ git describe
v0.12.0rc1-26-gd5094df |
we're all used to a pre0.13 rather then a post0.12 style, but I'd go for that Unless there are objections from other commiters. |
personally, i like the git describe style |
👍. no objections from me |
@cpcloud , care to do the honors? |
would this work? import subprocess
version = subprocess.check_output(['git describe'], shell=True).rstrip()
short_version_re = re.compile(r'^v(\d+)\.(\d+)\.(\d+)')
short_version = '.'.join(short_version_re.search(version).groups()) |
@y-p if you've already got an idea of how to do it then u can...now that i'm thinking about it seems like u would need to rewrite the |
o i c that's what you're doing in |
since the current version string contains the commit, setup.py must already be calling out np, I'll do it. |
@y-p i know i said i'd pass but i've got a pr ready should i put it up? |
although it sounds like you hvae something different in mind than just |
currently:
PEP386 details 3 version format conventions extent in the python world and this format is invalid in all of them.
In practice it's caused no problems( I know of), probably because the tooling is lenient, but one real drawback is that lexi. sorting of the version string does not properly order the revisions, which some tools rely on. Something which
would provide, where 234 is the commit count since the last release. We could add a pd.version.commit field to compensate for omitting the commit in the version string.
As always it'll break something for sombody, but being a dev-only thing we're probably entitled.
The text was updated successfully, but these errors were encountered: