Skip to content

Commit 567e680

Browse files
committed
bumped version to 0.4.10
1 parent c7acd72 commit 567e680

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ Under BSD license. See [LICENSE](LICENSE).
7575

7676
## Release a new version
7777

78-
- Install those packages: `conda install twine rever`
78+
- Install [rever](https://regro.github.io/rever-docs/index.html): `conda install rever`
7979
- Run: `rever <VERSION>`

jupyter_archive/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Copyright (c) Project Jupyter.
22
# Distributed under the terms of the Modified BSD License.
33

4-
__version__ = '0.4.9'
4+
__version__ = '0.4.10'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hadim/jupyter-archive",
3-
"version": "0.4.9",
3+
"version": "0.4.10",
44
"description": "Make, download and extract archive files.",
55
"keywords": [
66
"jupyter",

rever.xsh

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ command('publish_npm', 'yarn publish --access=public --new-version $VERSION', ''
55

66
$PROJECT = 'jupyter-archive'
77

8-
$ACTIVITIES = ['run_tests', 'version_bump', 'tag', 'push_tag', 'pypi', 'publish_npm', 'ghrelease']
8+
$ACTIVITIES = ['run_tests', 'version_bump', 'tag', 'push_tag', 'pypi', 'publish_npm', 'ghrelease', 'bump_to_dev']
99

1010
$VERSION_BUMP_PATTERNS = [('jupyter_archive/_version.py', '__version__\s*=.*', "__version__ = '$VERSION'"),
1111
('package.json', '"version"\s*:.*,', '"version": "$VERSION",')]
@@ -14,4 +14,25 @@ $PUSH_TAG_REMOTE = '[email protected]:hadim/jupyter-archive.git'
1414
$GITHUB_ORG = 'hadim'
1515
$GITHUB_REPO = 'jupyter-archive'
1616

17-
# git commit -am "Bump to dev"
17+
from rever.activity import activity
18+
from rever.tools import eval_version, replace_in_file
19+
from rever import vcsutils
20+
21+
22+
@activity
23+
def bump_to_dev():
24+
def increment_version(version):
25+
"""Increment a version by 0.0.1"""
26+
version = version.split('.')
27+
version[2] = str(int(version[2]) + 1)
28+
return '.'.join(version)
29+
30+
# Increment to a new version and add '-dev' flag.
31+
new_version = increment_version($VERSION)
32+
new_version += "-dev"
33+
34+
for f, p, n in $VERSION_BUMP_PATTERNS:
35+
n = n.replace("$VERSION", new_version)
36+
n = eval_version(n)
37+
replace_in_file(p, n, f)
38+
vcsutils.commit('Bump to dev')

0 commit comments

Comments
 (0)