diff --git a/setup.py b/setup.py index 5db9b91..37216a3 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ import re import sys -from setuptools import find_packages, setup +from setuptools import setup def get_version(*file_paths): @@ -22,8 +22,10 @@ def get_version(*file_paths): return version_match.group(1) raise RuntimeError("Unable to find version string.") + VERSION = get_version("theming", "__init__.py") + if sys.argv[-1] == "tag": print("Tagging the version on GitHub:") os.system("git tag -a %s -m 'version %s'" % (VERSION, VERSION)) diff --git a/theming/__init__.py b/theming/__init__.py index 66d4248..b4a71aa 100644 --- a/theming/__init__.py +++ b/theming/__init__.py @@ -5,7 +5,7 @@ from .core import get_base_dir, get_themes, is_enabled -__version__ = "0.1.0" +__version__ = "2.0.1" default_app_config = "theming.apps.ThemingConfig" # pylint: disable=invalid-name