Skip to content

Commit b0391fe

Browse files
author
Guillaume Lemaitre
committed
Add support with bumpversion
1 parent 071c13c commit b0391fe

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

doc/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@
8787
# built documents.
8888
#
8989
# The short X.Y version.
90-
version = '0.1'
90+
__version__ = '0.1.1'
91+
version = __version__
9192
# The full version, including alpha/beta/rc tags.
92-
release = '0.1'
93+
release = __version__
9394

9495
# The language for content autogenerated by Sphinx. Refer to documentation
9596
# for a list of supported languages.

imblearn/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# Dev branch marker is: 'X.Y.dev' or 'X.Y.devN' where N is an integer.
2222
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
2323
#
24-
__version__ = '0.1.2.dev0'
24+
__version__ = '0.1.1'
2525

2626
_IMBALANCED_DATASET_INSTALL_MSG = 'See %s for installation information.' % (
2727
'glemaitre.github.io/UnbalancedDataset/install.html')

setup.cfg

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
[bumpversion]
2-
current_version = 0.1.2.dev0
2+
current_version = 0.1.1
33
commit = True
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))?
66
serialize =
77
{major}.{minor}.{patch}.{release}{dev}
88
{major}.{minor}.{patch}
99

10+
[bumpversion:part:release]
11+
optional_value = gamma
12+
values =
13+
dev
14+
gamma
15+
16+
[bumpversion:part:dev]
17+
18+
[bumpversion:file:imblearn/version.py]
19+
[bumpversion:file:doc/conf.py]
20+
1021
[aliases]
1122
test = nosetests
1223

@@ -20,14 +31,3 @@ with-doctest = 1
2031
doctest-tests = 1
2132
doctest-extension = rst
2233
doctest-fixtures = _fixture
23-
24-
[bumpversion:part:release]
25-
optional_value = gamma
26-
values =
27-
dev
28-
gamma
29-
30-
[bumpversion:part:dev]
31-
32-
[bumpversion:file:imblearn/version.py]
33-

0 commit comments

Comments
 (0)