Skip to content

Commit

Permalink
BLD: Adds versioneer
Browse files Browse the repository at this point in the history
versioneer let's us track the version using git tags. This prevents
issues like the 0.8.2->0.8.3 push. This also puts the number of commits
from the release and the commit you are on in the version.
  • Loading branch information
llllllllll committed Nov 11, 2015
1 parent 88a53fb commit bd0da17
Show file tree
Hide file tree
Showing 7 changed files with 2,186 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zipline/_version.py export-subst
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ include LICENSE
include etc/requirements*.txt
recursive-include zipline/resources *.*
recursive-include zipline *.pyx
include versioneer.py
include zipline/_version.py
13 changes: 12 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,15 @@ with-ignore-docstrings=1
with-timer=1

[metadata]
description-file = README.md
description-file = README.rst

# See the docstring in versioneer.py for instructions. Note that you must
# re-run 'versioneer.py setup' after changing this section, and commit the
# resulting files.
[versioneer]
VCS=git
style=pep440
versionfile_source=zipline/_version.py
versionfile_build=zipline/_version.py
tag_prefix=
parentdir_prefix= zipline-
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
setup,
)

import versioneer


class LazyCythonizingList(list):
cythonized = False
Expand Down Expand Up @@ -219,7 +221,8 @@ def pre_setup():

setup(
name='zipline',
version='0.8.3',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='A backtester for financial algorithms.',
author='Quantopian Inc.',
author_email='[email protected]',
Expand Down
Loading

0 comments on commit bd0da17

Please sign in to comment.