Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
4701a1a1
Commit
4701a1a1
authored
Dec 09, 2021
by
Lysandre
Browse files
Patch release script
parent
ab31b3e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
utils/release.py
utils/release.py
+5
-5
No files found.
utils/release.py
View file @
4701a1a1
...
@@ -31,11 +31,11 @@ REPLACE_PATTERNS = {
...
@@ -31,11 +31,11 @@ REPLACE_PATTERNS = {
REPLACE_FILES
=
{
REPLACE_FILES
=
{
"init"
:
"src/transformers/__init__.py"
,
"init"
:
"src/transformers/__init__.py"
,
"setup"
:
"setup.py"
,
"setup"
:
"setup.py"
,
#
"doc": "docs/source/conf.py",
"doc"
:
"docs/source/conf.py"
,
}
}
README_FILE
=
"README.md"
README_FILE
=
"README.md"
#
CUSTOM_JS_FILE = "docs/source/_static/js/custom.js"
CUSTOM_JS_FILE
=
"docs/source/_static/js/custom.js"
#
DEPLOY_SH_FILE = ".circleci/deploy.sh"
DEPLOY_SH_FILE
=
".circleci/deploy.sh"
def
update_version_in_file
(
fname
,
version
,
pattern
):
def
update_version_in_file
(
fname
,
version
,
pattern
):
...
@@ -205,8 +205,8 @@ def post_release_work():
...
@@ -205,8 +205,8 @@ def post_release_work():
global_version_update
(
version
)
global_version_update
(
version
)
print
(
"Updating doc deployment and version navbar in the source documentation."
)
print
(
"Updating doc deployment and version navbar in the source documentation."
)
#
update_custom_js(current_version)
update_custom_js
(
current_version
)
#
update_deploy_sh(current_version, commit)
update_deploy_sh
(
current_version
,
commit
)
def
post_patch_work
():
def
post_patch_work
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment