Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLD: Use versioneer to handle version numbers #138

Merged
merged 1 commit into from
Aug 3, 2014

Conversation

nkeim
Copy link
Contributor

@nkeim nkeim commented Aug 3, 2014

Rebase of @leouieda #128 onto v0.2.2. It works:

python
>>> import trackpy
>>> trackpy.__version__
'0.2.2-6-ge1a6913'

git tag v0.2.3rc1

python
>>> import trackpy
>>> trackpy.__version__
'0.2.3rc1'

versioneer (https://github.com/warner/python-versioneer) automatically
creates version strings based on git tags and the latest commit hash.
To create a new version, simply `git tag` and versioneer will update
everything when setup.py is called. When not working from a release (for
development), trackpy.__version__ will have:

* the last version
* the number of commits since the last version
* the latest commit hash
* 'dirty' if the repo has uncommitted modifications

e.g., `0.2.1-8-g608fc6e-dirty` for this specific commit.

This allows better provenance tracking since most research work is
probably done from `master` anyway.
@nkeim nkeim added this to the 0.2.3 milestone Aug 3, 2014
@danielballan
Copy link
Member

I still have some questions about this, but I am convinced it is a step forward from what we have, so I'm merging. More experimentation to follow.

danielballan added a commit that referenced this pull request Aug 3, 2014
BLD: Use versioneer to handle version numbers
@danielballan danielballan merged commit 57fe247 into soft-matter:master Aug 3, 2014
@nkeim nkeim deleted the versioneer branch August 3, 2014 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants