monome / druid

terminal interface for crow
GNU General Public License v3.0
35 stars 16 forks source link

druid --version shows wrong version when in a git repository directory #61

Open simonvanderveldt opened 5 years ago

simonvanderveldt commented 5 years ago
~/s/monome ❯ druid --version
druid, version 0.2.0
~/s/monome ❯ cd bowery 
~/s/m/bowery:master ❯ git remote -v
origin  git@github.com:monome/bowery.git (fetch)
origin  git@github.com:monome/bowery.git (push)
~/s/m/bowery:master ❯ git rev-parse --short HEAD  
ca0859e
~/s/m/bowery:master ❯ druid --version
druid, version 0.1.dev18+gca0859e

Well, thank you druid, but that isn't really the druid version now, is it? :P

I'm starting to think this whole dynamic version thing is too much effort to get working properly. Will probably drop it in favor of letting setuptools scm write a file with the version in it so it's still enough to just git tag but we lose the dev version info.