setuptools_scm_git_archive icon indicating copy to clipboard operation
setuptools_scm_git_archive copied to clipboard

Only catch tags with x.y

Open LuisBL opened this issue 9 years ago • 3 comments
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

LuisBL avatar Oct 06 '16 11:10 LuisBL

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.

Changaco avatar Oct 06 '16 15:10 Changaco

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"

LuisBL avatar Oct 06 '16 15:10 LuisBL

I've updated the title

LuisBL avatar Oct 06 '16 15:10 LuisBL