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
Merge requests
!81
#107
: Use direclty the version number into setup.py:version
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
#107
: Use direclty the version number into setup.py:version
107
into
dev
Overview
1
Commits
1
Pipelines
1
Changes
2
Merged
Moul
requested to merge
107
into
dev
5 years ago
Overview
1
Commits
1
Pipelines
1
Changes
2
Expand
Put current version into setup.py
Change release script to update this field
1
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
b05c6dec
1 commit,
5 years ago
2 files
+
4
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
release.sh
+
3
−
1
Options
@@ -7,11 +7,13 @@ echo "Current version: $current"
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
# update version in setup.py
sed
-i
"s/version=
\"
$current
\"
,/version=
\"
$1
\"
,/"
setup.py
# 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 commit
setup.py
duniterpy/__init__.py docs/conf.py
-m
"
$1
"
git tag
"
$1
"
-a
-m
"
$1
"
else
echo
"Wrong version format"
Loading