setuptools_scm_git_archive
setuptools_scm_git_archive copied to clipboard
Only catch tags with x.y
trafficstars
I've been following the documentation about .git_archival.txt and .gitattributes:
$ git ls-files | grep git
.git_archival.txt
.gitattributes
.gitignore
$ more .git_archival.txt
ref-names: $Format:%D$
$ more .gitattributes
.git_archival.txt export-subst
use_scm_version is set in setup.py
setup(name='Ble',
use_scm_version=True,
I have a tag 5 on master branch seen by git describe:
$ git describe
5-2-g0386a2c
$ git branch
* master
$ git tag
4.0
4.2
4.2.3
5
$
But python setup.py install still create a 4.2.4 package and version number !
~/venv/lib/python2.7/site-packages/Ble-4.2.4.dev377+ng0386a2c-py2.7.egg
What version of setuptools_scm are you using? What happens if you remove the .git_archival.txt file? I'm 99% sure that your problem is not due to the git_archive plugin.
here it is:
$ pip freeze | grep setuptools
setuptools-scm==1.11.1
setuptools-scm-git-archive==1.0
$
I'm continue testing it look like that if version is "5.0" it works better than "5"
I've updated the title