-
Notifications
You must be signed in to change notification settings - Fork 0
Minor: autover could report branch name for pip/git archive #42
Comments
I think this could be done but only f the directory name from the unpacked archive preserves the branch name. In other words, it wouldn't work with Definitely a valid feature request, the only question is whether it is worth the trouble... |
Doesn't seem particularly useful to me, given that the version number is unavailable anyway. |
Agreed. I don't see any scenario where we would ask/instruct users to install from a branch using git archive. |
I noticed this because I had some mystery with my conda-build behavior, and when I asked for conda-build's version, I was surprised to find it was a branch name. That immediately made me realize I'd previously pip installed a branch of conda-build (via pip install https://github.com/.../branch.zip). So I found it quite helpful. But I agree it's minor. |
Would it be worth doing something for situations like holoviz/datashader#610, which if holoviz/datashader#611 is merged (i.e. if autover is used as intended) will turn into some bug that won't immediately be obviously related to versioning? pip install https://github.com...zip appears to be quite common. One reason for this might be historical. Another reason is that pip install https://github.com...zip is usually much faster than pip install git+https://github..., particularly for repositories with a large history. Some people doing pip install https://... will discover a problem, which might result in a bug report, but others may never become aware that it's causing a problem (e.g. a version check to be effectively inverted, resulting in some kind of degradation). Although I suggested above "at least getting the branch name into the version string" (e.g.
(It would be up to the library developer to allow installation without a version number, by turning off the default 'fail to install if no version available' behavior.) |
Sounds like a message that would save a lot of people from having problems, and/or from thinking our packages have a problem. |
I happened to notice that
pip install https://github.com/org/repo/archive/branch.zip
for versioneer-using projects seems to result in a version ofbranch
. Although I wouldn't want autover to report a version like that, i indicates the branch name is available.I believe autover would currently report
0.0.0+gSHA.gitarchive
, but if we wanted, this could maybe be something like0.0.0+gSHA.branch.gitarchive
instead.Seems like a minor issue.
The text was updated successfully, but these errors were encountered: