From c370ac99377c1661c072c68392c1e048d6467fde Mon Sep 17 00:00:00 2001 From: hhsecond Date: Wed, 29 Apr 2020 08:19:02 +0530 Subject: [PATCH 1/2] versioning through version bump --- .bumpversion.cfg | 20 ++++++++++++++++++++ docs/conf.py | 4 +--- redisai/__init__.py | 3 ++- redisai/version.py | 5 ----- setup.py | 7 +------ 5 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 .bumpversion.cfg delete mode 100644 redisai/version.py diff --git a/.bumpversion.cfg b/.bumpversion.cfg new file mode 100644 index 0000000..f73a069 --- /dev/null +++ b/.bumpversion.cfg @@ -0,0 +1,20 @@ +[bumpversion] +current_version = 0.5.0 +commit = True +tag = False +parse = (?P\d+)\.(?P\d+)\.(?P\d+)(\.(?P[a-z]+)(?P\d+))? +serialize = + {major}.{minor}.{patch} + +[bumpversion:file:setup.py] +search = version='{current_version}' +replace = version='{new_version}' + +[bumpversion:file:redisai/__init__.py] +search = __version__ = '{current_version}' +replace = __version__ = '{new_version}' + +[bumpversion:file:docs/conf.py] +search = release = '{current_version}' +replace = release = '{new_version}' + diff --git a/docs/conf.py b/docs/conf.py index c5018bb..6b7908f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,9 +1,7 @@ -import redisai - project = 'redisai-py' copyright = '2020, RedisLabs' author = 'RedisLabs' -release = redisai.__version__ +release = '0.5.0' extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.extlinks', diff --git a/redisai/__init__.py b/redisai/__init__.py index 05e5e6c..0d84863 100644 --- a/redisai/__init__.py +++ b/redisai/__init__.py @@ -1,2 +1,3 @@ -from .version import __version__ from .client import Client + +__version__ = '0.5.0' diff --git a/redisai/version.py b/redisai/version.py deleted file mode 100644 index 23bc90e..0000000 --- a/redisai/version.py +++ /dev/null @@ -1,5 +0,0 @@ -# Store the version here so: -# 1) we don't load dependencies by storing it in __init__.py -# 2) we can import it in setup.py for the same reason -# 3) we can import it into your module module -__version__ = '0.9.0' diff --git a/setup.py b/setup.py index 6c9a277..be219b7 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,13 @@ #!/usr/bin/env python from setuptools import setup, find_packages -try: - exec(open('redisai/version.py', encoding='utf-8').read()) -except TypeError: - exec(open('redisai/version.py').read()) with open('README.rst') as f: long_description = f.read() - setup( name='redisai', - version=__version__, # comes from redisai/version.py + version='0.5.0', description='RedisAI Python Client', long_description=long_description, long_description_content_type='text/markdown', From 7c559de259a1c365184fe8c7bb3337167ab149c2 Mon Sep 17 00:00:00 2001 From: hhsecond Date: Wed, 29 Apr 2020 08:24:32 +0530 Subject: [PATCH 2/2] =?UTF-8?q?Bump=20version:=200.5.0=20=E2=86=92=201.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion.cfg | 2 +- docs/conf.py | 2 +- redisai/__init__.py | 2 +- setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index f73a069..0a78c46 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.5.0 +current_version = 1.0.0 commit = True tag = False parse = (?P\d+)\.(?P\d+)\.(?P\d+)(\.(?P[a-z]+)(?P\d+))? diff --git a/docs/conf.py b/docs/conf.py index 6b7908f..e137356 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,7 +1,7 @@ project = 'redisai-py' copyright = '2020, RedisLabs' author = 'RedisLabs' -release = '0.5.0' +release = '1.0.0' extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.extlinks', diff --git a/redisai/__init__.py b/redisai/__init__.py index 0d84863..876a974 100644 --- a/redisai/__init__.py +++ b/redisai/__init__.py @@ -1,3 +1,3 @@ from .client import Client -__version__ = '0.5.0' +__version__ = '1.0.0' diff --git a/setup.py b/setup.py index be219b7..f6f651e 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name='redisai', - version='0.5.0', + version='1.0.0', description='RedisAI Python Client', long_description=long_description, long_description_content_type='text/markdown',