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

How to get "no distance and clean" version ? #4

Closed
LuisBL opened this issue Oct 6, 2016 · 2 comments
Closed

How to get "no distance and clean" version ? #4

LuisBL opened this issue Oct 6, 2016 · 2 comments

Comments

@LuisBL
Copy link

LuisBL commented Oct 6, 2016

I try to release a new version: 5.0:
so I tag:

git tag -a -m 'test tag' 5.0

git describe is:

$ git describe --long
5.0-0-g0386a2c
$

I'm expecting as explain in : setuptools_scm
to get:
no distance and clean: {tag}
but I get:

distance and clean:
    {next_version}.dev{distance}+n{revision hash}

As you can see::

$ python setup.py install
...
$ ls dist/
Ble-5.1.dev0+ng0386a2c.d20161006-py2.7.egg
$ 
@LuisBL
Copy link
Author

LuisBL commented Oct 6, 2016

Same with a x.y.z version:

$ git tag -a -m 'test' 5.0.0
$ python setup.py install
...
$ ls dist/
dist/Ble-5.0.1.dev0+ng0386a2c.d20161006-py2.7.egg
$

@LuisBL
Copy link
Author

LuisBL commented Oct 7, 2016

My branch was dirty:

git describe --dirty --long

@LuisBL LuisBL closed this as completed Oct 7, 2016
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

1 participant