From 57dfc04040fead3ecad11456dead344c7bbc3700 Mon Sep 17 00:00:00 2001 From: Bryant Date: Mon, 7 Aug 2017 14:05:42 -0700 Subject: [PATCH] Added bump version utility with baseline version 0.0.1 --- setup.cfg | 8 ++++++++ setup.py | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 11a6dac6b6..ca3a7d30fd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,11 @@ +[bumpversion] +current_version = 0.0.1 +commit = True +tag = True + +[bumpversion:file:setup.py] +search = version = "{current_version}" + [aliases] test=pytest diff --git a/setup.py b/setup.py index 0639625d24..e8aa037d2a 100644 --- a/setup.py +++ b/setup.py @@ -9,9 +9,12 @@ with open('LICENSE') as f: license = f.read() +# *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility. +version = '0.0.1' + setup( name='viper', - version='0.0.1', + version=version, description='Viper Programming Language for Ethereum', long_description=readme, author='Vitalik Buterin', @@ -21,6 +24,7 @@ packages=find_packages(exclude=('tests', 'docs')), install_requires=[ 'ethereum==2.0.4', + 'bumpversion', 'pytest-cov', 'pytest-runner', # Must be after pytest-cov or it will not work # due to https://github.com/pypa/setuptools/issues/196