Skip to content

Commit

Permalink
Merge pull request #36 from RedisAI/version+
Browse files Browse the repository at this point in the history
Version bump
  • Loading branch information
Sherin Thomas authored Apr 29, 2020
2 parents 5901bc7 + 7c559de commit 8cfd097
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 15 deletions.
20 changes: 20 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[bumpversion]
current_version = 1.0.0
commit = True
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<build>\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}'

4 changes: 1 addition & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import redisai

project = 'redisai-py'
copyright = '2020, RedisLabs'
author = 'RedisLabs'
release = redisai.__version__
release = '1.0.0'
extensions = ['sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.extlinks',
Expand Down
3 changes: 2 additions & 1 deletion redisai/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from .version import __version__
from .client import Client

__version__ = '1.0.0'
5 changes: 0 additions & 5 deletions redisai/version.py

This file was deleted.

7 changes: 1 addition & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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='1.0.0',
description='RedisAI Python Client',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 8cfd097

Please sign in to comment.