File tree 4 files changed +61
-1
lines changed
4 files changed +61
-1
lines changed Original file line number Diff line number Diff line change
1
+ [bumpversion]
2
+ current_version = 0.0.1
3
+ commit = True
4
+ tag = True
5
+
6
+ [bumpversion:file:setup.py]
7
+ search = version =' {current_version}'
8
+ replace = version =' {new_version}'
9
+
10
+ [bumpversion:file:convex_api/__init__.py]
11
+ search = __version__ = ' {current_version}'
12
+ replace = __version__ = ' {new_version}'
13
+
14
+ [bumpversion:file:docs/source/conf.py]
15
+ search = {current_version}
16
+ replace = {new_version}
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ usage (){
4
+ echo " Usage: $0 {major|minor|patch} [--tag]"
5
+ exit 1
6
+ }
7
+
8
+ if ! [ -x " $( command -v bumpversion) " ]; then
9
+ echo ' Error: bumpversion is not installed.' >&2
10
+ exit 1
11
+ elif ! git diff-index --quiet HEAD -- > /dev/null 2>&1 ; then
12
+ echo ' There are local changes in your the git repository. Please commit or stash them before bumping version.' >&2
13
+ exit 1
14
+ fi
15
+
16
+ if [ " $# " -lt 1 ]; then
17
+ echo " Illegal number of parameters"
18
+ usage
19
+ elif [[ $1 != ' major' && $1 != ' minor' && $1 != ' patch' ]]; then
20
+ echo ' First argument must be {major|minor|patch}'
21
+ usage
22
+ fi
23
+
24
+ if [[ $2 == ' --tag' ]]; then
25
+ if git branch --contains $( git rev-parse --verify HEAD) | grep -E ' master' ; then
26
+ bumpversion --tag --commit $1
27
+ else
28
+ echo " Only master tags can be tagged"
29
+ exit 1
30
+ fi
31
+ else
32
+ bumpversion --no-tag $1
33
+ fi
Original file line number Diff line number Diff line change
1
+ """
2
+
3
+ Convex API Python Library
4
+
5
+ """
6
+
7
+ from convex_api .account import Account
8
+ from convex_api .convex_api import ConvexAPI
9
+
10
+
11
+ __version__ = "0.0.1"
Original file line number Diff line number Diff line change 27
27
author = 'convex-api-py contributors'
28
28
29
29
# The full version, including alpha/beta/rc tags
30
- release = '0.12.9 '
30
+ release = '0.0.1 '
31
31
# The short X.Y version
32
32
release_parts = release .split ('.' ) # a list
33
33
version = release_parts [0 ] + '.' + release_parts [1 ] + '.' + release_parts [2 ]
You can’t perform that action at this time.
0 commit comments