Skip to content

Version bump #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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