Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.extension
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
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.extension
Merge requests
!14
Issues 23 and 24
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Issues 23 and 24
issues_23_24
into
master
Overview
0
Commits
2
Pipelines
1
Changes
1
Merged
Issues 23 and 24
André Anjos
requested to merge
issues_23_24
into
master
Sep 21, 2016
Overview
0
Commits
2
Pipelines
1
Changes
1
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
645835c9
2 commits,
Sep 21, 2016
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
bob/extension/scripts/new_version.py
+
2
−
1
View file @ 645835c9
Edit in single-file editor
Open in Web IDE
Show full file
@@ -84,6 +84,7 @@ logger = logging.getLogger("bob.extension")
def
_update_readme
(
version
=
None
):
# replace the travis badge in the README.rst with the given version
BRANCH_RE
=
re
.
compile
(
r
'
/(master|(v\d+\.\d+\.\d+([abc]\d+)?))
'
)
with
open
(
"
README.rst
"
)
as
read
:
with
open
(
"
.README.rst
"
,
'
w
'
)
as
write
:
for
line
in
read
:
@@ -234,7 +235,7 @@ def main(command_line_options = None):
if
'
pypi
'
in
args
.
steps
:
print
(
"
\n
Uploading version
'
%s
'
to PyPI
"
%
args
.
stable_version
)
# update version on git and add a tag
run_commands
(
None
,
[
python_cmd
,
'
setup.py
'
,
'
register
'
],
[
python_cmd
,
'
setup.py
'
,
'
sdist
'
,
'
--formats
'
,
'
zip
'
,
'
upload
'
])
run_commands
(
None
,
[
python_cmd
,
'
setup.py
'
,
'
sdist
'
,
'
--formats
'
,
'
zip
'
,
'
upload
'
])
if
'
docs
'
in
args
.
steps
:
Loading