Skip to content

Commit bd0da17

Browse files
author
llllllllll
committed
BLD: Adds versioneer
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.
1 parent 88a53fb commit bd0da17

File tree

7 files changed

+2186
-10
lines changed

7 files changed

+2186
-10
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
zipline/_version.py export-subst

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ include LICENSE
44
include etc/requirements*.txt
55
recursive-include zipline/resources *.*
66
recursive-include zipline *.pyx
7+
include versioneer.py
8+
include zipline/_version.py

setup.cfg

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,15 @@ with-ignore-docstrings=1
55
with-timer=1
66

77
[metadata]
8-
description-file = README.md
8+
description-file = README.rst
9+
10+
# See the docstring in versioneer.py for instructions. Note that you must
11+
# re-run 'versioneer.py setup' after changing this section, and commit the
12+
# resulting files.
13+
[versioneer]
14+
VCS=git
15+
style=pep440
16+
versionfile_source=zipline/_version.py
17+
versionfile_build=zipline/_version.py
18+
tag_prefix=
19+
parentdir_prefix= zipline-

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
setup,
3131
)
3232

33+
import versioneer
34+
3335

3436
class LazyCythonizingList(list):
3537
cythonized = False
@@ -219,7 +221,8 @@ def pre_setup():
219221

220222
setup(
221223
name='zipline',
222-
version='0.8.3',
224+
version=versioneer.get_version(),
225+
cmdclass=versioneer.get_cmdclass(),
223226
description='A backtester for financial algorithms.',
224227
author='Quantopian Inc.',
225228
author_email='[email protected]',

0 commit comments

Comments
 (0)