-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vendoring tasks #2523
Vendoring tasks #2523
Conversation
f135f99
to
2469527
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job! Just some small nits in general.
I think this should target master
instead... it is an internal tool which we might need for patch releases.
changelog/2474.trivial
Outdated
@@ -0,0 +1 @@ | |||
create invoke tasks for updating the vendored packages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use proper grammar here. 😉
Create invoke tasks for updating the vendored packages.
|
||
@invoke.task(pre=[remove_libs]) | ||
def update_libs(ctx): | ||
print("installing libs") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense to call remove_libs
automatically first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is ^^ - as pre task
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops completely missed that. 😅
tasks/vendoring.py
Outdated
print("installing libs") | ||
ctx.run("pip install -t {target} pluggy".format(target=VENDOR_TARGET)) | ||
ctx.run("git add {target}".format(target=VENDOR_TARGET)) | ||
print("please commit to finish the updae after running the tests") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest also outputting a suggestion for the commit message, so it is standardized:
print("Please commit to finish the updae after running the tests:")
print()
print(' git commit -am "Updated vendored libs"')
4c785f1
to
68811f5
Compare
68811f5
to
b3bf7fc
Compare
Thanks! 👍 |
fixes #2474