Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
49393ef2
Commit
49393ef2
authored
6 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
[enh] enhance release.sh to update documentation version
parent
6cefb0b4
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/conf.py
+4
-4
4 additions, 4 deletions
docs/conf.py
release.sh
+6
-1
6 additions, 1 deletion
release.sh
with
10 additions
and
5 deletions
docs/conf.py
+
4
−
4
View file @
49393ef2
...
@@ -64,17 +64,17 @@ master_doc = 'index'
...
@@ -64,17 +64,17 @@ master_doc = 'index'
# General information about the project.
# General information about the project.
project
=
'
duniterpy
'
project
=
'
duniterpy
'
copyright
=
'
201
5
, caner & inso
'
copyright
=
'
201
9
, caner & inso
& vit
'
author
=
'
caner & inso
'
author
=
'
caner & inso
& vit
'
# The version info for the project you're documenting, acts as replacement for
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# |version| and |release|, also used in various other places throughout the
# built documents.
# built documents.
#
#
# The short X.Y version.
# The short X.Y version.
version
=
'
0.5
1
.0
'
version
=
'
0.5
2
.0
'
# The full version, including alpha/beta/rc tags.
# The full version, including alpha/beta/rc tags.
release
=
'
0.5
1
.0
'
release
=
'
0.5
2
.0
'
# The language for content autogenerated by Sphinx. Refer to documentation
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
# for a list of supported languages.
...
...
This diff is collapsed.
Click to expand it.
release.sh
+
6
−
1
View file @
49393ef2
...
@@ -5,8 +5,13 @@ current=`grep -P "__version__ = \'\d+.\d+.\d+(\w*)\'" duniterpy/__init__.py
...
@@ -5,8 +5,13 @@ current=`grep -P "__version__ = \'\d+.\d+.\d+(\w*)\'" duniterpy/__init__.py
echo
"Current version:
$current
"
echo
"Current version:
$current
"
if
[[
$1
=
~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]
*
$
]]
;
then
if
[[
$1
=
~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]
*
$
]]
;
then
# update version in duniterpy
sed
-i
"s/__version__ = '
$current
'/__version__ = '
$1
'/g"
duniterpy/__init__.py
sed
-i
"s/__version__ = '
$current
'/__version__ = '
$1
'/g"
duniterpy/__init__.py
git commit duniterpy/__init__.py
-m
"
$1
"
# update version in documentation configuration
sed
-i
"s/version = '
$current
'/version = '
$1
'/g"
docs/conf.py
sed
-i
"s/release = '
$current
'/release = '
$1
'/g"
docs/conf.py
# commit changes and add version tag
git commit duniterpy/__init__.py docs/conf.py
-m
"
$1
"
git tag
"
$1
"
-a
-m
"
$1
"
git tag
"
$1
"
-a
-m
"
$1
"
else
else
echo
"Wrong version format"
echo
"Wrong version format"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment