From 1eeef36824dee356bed1f9b8081c12acb8a8ec1c Mon Sep 17 00:00:00 2001 From: "Moritz E. Beber" Date: Tue, 27 Feb 2018 19:33:15 +0100 Subject: [PATCH] fix: make version work for bumpversion * Let's use versioneer in future! --- setup.cfg | 5 ++++- setup.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 04c044e23..e59dcf58f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,7 +13,6 @@ serialize = [metadata] name = memote -version = 0.5.1 url = https://github.com/opencobra/memote download_url = https://pypi.python.org/pypi/memote/ author = Moritz E. Beber @@ -63,6 +62,10 @@ replace = version = {new_version} search = __version__ = "{current_version}" replace = __version__ = "{new_version}" +[bumpversion:file:setup.py] +search = version="{current_version}" +replace = version="{new_version}" + [bumpversion:file:docs/conf.py] search = "{current_version}" replace = "{new_version}" diff --git a/setup.py b/setup.py index e00197990..d3aee620c 100644 --- a/setup.py +++ b/setup.py @@ -43,6 +43,7 @@ # All other keys are defined in setup.cfg under [metadata] and [options]. setup( + version="0.6.0", install_requires=requirements, tests_require=test_requirements, entry_points="""