File tree Expand file tree Collapse file tree 1 file changed +29
-5
lines changed Expand file tree Collapse file tree 1 file changed +29
-5
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,8 @@ markers = [
103
103
minversion = " 6.0"
104
104
xfail_strict = true
105
105
106
+ [tool .coverage ]
107
+
106
108
[tool .coverage .paths ]
107
109
source = [
108
110
" src/bidsschematools" ,
@@ -112,10 +114,32 @@ source = [
112
114
[tool .coverage .run ]
113
115
parallel = true
114
116
115
- [tool .bumpver ]
117
+ # Release process:
118
+ # cd tools/schemacode
119
+ # uvx bump-my-version bump pre_label --tag
120
+ # [inspect result]
121
+ # git push upstream <current-branch> --tags
122
+ # uvx bump-my-version bump <patch|minor|major>
123
+ # git push upstream <current-branch>
124
+ [tool .bumpversion ]
116
125
current_version = " 1.1.0-dev"
117
- version_pattern = " MAJOR.MINOR.PATCH[-TAG]"
118
- commit = false
126
+ parse = """ (?x)
127
+ (?P<major>[0-9]+)
128
+ \\ .(?P<minor>[0-9]+)
129
+ \\ .(?P<patch>[0-9]+)
130
+ (?:-(?P<pre_label>dev))?
131
+ """
132
+ serialize = [" {major}.{minor}.{patch}-{pre_label}" , " {major}.{minor}.{patch}" ]
133
+ commit = true
134
+ message = " chore: Bump schema package to {new_version}"
135
+ # Use --tag on releases
136
+ tag = false
137
+ tag_name = " schema-{new_version}"
138
+ tag_message = " Schema release {new_version}"
139
+
140
+ [tool .bumpversion .parts .pre_label ]
141
+ values = [" dev" , " final" ]
142
+ optional_value = " final"
119
143
120
- [tool .bumpver . file_patterns ]
121
- "src/bidsschematools/data /schema/SCHEMA_VERSION" = [ ' {version} ' ]
144
+ [[ tool .bumpversion . files ] ]
145
+ filename = " ../../src /schema/SCHEMA_VERSION"
You can’t perform that action at this time.
0 commit comments