Skip to content

Commit 8cfd097

Browse files
author
Sherin Thomas
authored
Merge pull request #36 from RedisAI/version+
Version bump
2 parents 5901bc7 + 7c559de commit 8cfd097

File tree

5 files changed

+24
-15
lines changed

5 files changed

+24
-15
lines changed

.bumpversion.cfg

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[bumpversion]
2+
current_version = 1.0.0
3+
commit = True
4+
tag = False
5+
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<build>\d+))?
6+
serialize =
7+
{major}.{minor}.{patch}
8+
9+
[bumpversion:file:setup.py]
10+
search = version='{current_version}'
11+
replace = version='{new_version}'
12+
13+
[bumpversion:file:redisai/__init__.py]
14+
search = __version__ = '{current_version}'
15+
replace = __version__ = '{new_version}'
16+
17+
[bumpversion:file:docs/conf.py]
18+
search = release = '{current_version}'
19+
replace = release = '{new_version}'
20+

docs/conf.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import redisai
2-
31
project = 'redisai-py'
42
copyright = '2020, RedisLabs'
53
author = 'RedisLabs'
6-
release = redisai.__version__
4+
release = '1.0.0'
75
extensions = ['sphinx.ext.autodoc',
86
'sphinx.ext.autosummary',
97
'sphinx.ext.extlinks',

redisai/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
from .version import __version__
21
from .client import Client
2+
3+
__version__ = '1.0.0'

redisai/version.py

-5
This file was deleted.

setup.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
#!/usr/bin/env python
22
from setuptools import setup, find_packages
33

4-
try:
5-
exec(open('redisai/version.py', encoding='utf-8').read())
6-
except TypeError:
7-
exec(open('redisai/version.py').read())
84

95
with open('README.rst') as f:
106
long_description = f.read()
117

12-
138
setup(
149
name='redisai',
15-
version=__version__, # comes from redisai/version.py
10+
version='1.0.0',
1611
description='RedisAI Python Client',
1712
long_description=long_description,
1813
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)