Skip to content

Commit 482acd0

Browse files
Justin Kigginsneuromusic
authored andcommitted
implements PEP440 in bumpversion
1 parent b99a537 commit 482acd0

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

setup.cfg

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
[bumpversion]
22
current_version = 0.4.0
33
commit = True
4-
tag = True
4+
tag = False
5+
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<n>\d+))?
6+
serialize =
7+
{major}.{minor}.{patch}.{release}{n}
8+
{major}.{minor}.{patch}
9+
10+
[bumpversion:part:release]
11+
optional_value = gamma
12+
values =
13+
a
14+
b
15+
rc
16+
gamma
17+
18+
[bumpversion:part:n]
519

620
[bumpversion:file:visual_behavior/__init__.py]
721
search = __version__ = "{current_version}"
@@ -22,4 +36,3 @@ exclude = git/*, notebooks/*, tests/*, scripts/*
2236
[coverage:run]
2337
omit = tests/*, visual_behavior/cohorts/*, visual_behavior/inscopix/*, scripts/*,
2438
notebooks/*, circleci/*, .git/*, .tox/*, .cache/*, visual_behavior/pizza/*
25-

0 commit comments

Comments
 (0)