Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Get version into git archives, at least for tags? #48

Open
ceball opened this issue Jun 1, 2018 · 1 comment
Open

Get version into git archives, at least for tags? #48

ceball opened this issue Jun 1, 2018 · 1 comment

Comments

@ceball
Copy link
Contributor

ceball commented Jun 1, 2018

On github release pages, e.g. https://github.com/bokeh/datashader/releases, source archives are quite prominently displayed. But if you install or import from those, you get a version of None. However, it might be possible to get the version into the archive. (Although it'll only be right for tags.)

$Format:%D$ (https://github.com/ceball/ttest/blob/v0.2.6a2/.test123) becomes HEAD -> master, tag: v0.2.6a2 (https://github.com/ceball/ttest/archive/v0.2.6a2.tar.gz, which is the link that appears on https://github.com/ceball/ttest/releases).

Need to investigate, but suggests something could be possible.

(For future reference, the placeholders are described at https://git-scm.com/docs/git-log#_pretty_formats)

@jlstevens
Copy link
Contributor

We looked through the formats before but I think we missed this as you probably need to be on the tagged commit for it to show up like that. Anyway, this is good to know and I don't see why we shouldn't be able to parse those strings to get the necessary tag that way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants