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
f128ccb9
Unverified
Commit
f128ccb9
authored
Jun 02, 2022
by
Sylvain Gugger
Committed by
GitHub
Jun 02, 2022
Browse files
Clean README in post release job as well. (#17519)
parent
216499bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
setup.py
setup.py
+1
-1
utils/release.py
utils/release.py
+3
-1
No files found.
setup.py
View file @
f128ccb9
...
@@ -63,7 +63,7 @@ To create the package for pypi.
...
@@ -63,7 +63,7 @@ To create the package for pypi.
10. Copy the release notes from RELEASE.md to the tag in github once everything is looking hunky-dory.
10. Copy the release notes from RELEASE.md to the tag in github once everything is looking hunky-dory.
11. Run `make post-release`
(or, for a patch release, `make post-patch`)
. If you were on a branch for the release,
11. Run `make post-release`
then run `make fix-copies`
. If you were on a branch for the release,
you need to go back to main before executing this.
you need to go back to main before executing this.
"""
"""
...
...
utils/release.py
View file @
f128ccb9
...
@@ -123,7 +123,7 @@ def pre_release_work(patch=False):
...
@@ -123,7 +123,7 @@ def pre_release_work(patch=False):
print
(
f
"Updating version to
{
version
}
."
)
print
(
f
"Updating version to
{
version
}
."
)
global_version_update
(
version
,
patch
=
patch
)
global_version_update
(
version
,
patch
=
patch
)
if
not
patch
:
if
not
patch
:
print
(
"Cleaning main README"
)
print
(
"Cleaning main README
, don't forget to run `make fix-copies`.
"
)
clean_main_ref_in_model_list
()
clean_main_ref_in_model_list
()
...
@@ -141,6 +141,8 @@ def post_release_work():
...
@@ -141,6 +141,8 @@ def post_release_work():
print
(
f
"Updating version to
{
version
}
."
)
print
(
f
"Updating version to
{
version
}
."
)
global_version_update
(
version
)
global_version_update
(
version
)
print
(
"Cleaning main README, don't forget to run `make fix-copies`."
)
clean_main_ref_in_model_list
()
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
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