Skip to content
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

Merged
merged 1 commit into from
Jun 23, 2017
Merged

Conversation

RonnyPfannschmidt
Copy link
Member

fixes #2474

@RonnyPfannschmidt RonnyPfannschmidt changed the base branch from master to features June 23, 2017 18:51
Copy link
Member

@nicoddemus nicoddemus left a 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.

@@ -0,0 +1 @@
create invoke tasks for updating the vendored packages
Copy link
Member

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")
Copy link
Member

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.

Copy link
Member Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops completely missed that. 😅

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")
Copy link
Member

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"')

@RonnyPfannschmidt RonnyPfannschmidt force-pushed the vendoring-tasks branch 2 times, most recently from 4c785f1 to 68811f5 Compare June 23, 2017 19:25
@RonnyPfannschmidt RonnyPfannschmidt changed the base branch from features to master June 23, 2017 19:27
@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.14% when pulling 2469527 on RonnyPfannschmidt:vendoring-tasks into bab18e1 on pytest-dev:features.

@nicoddemus nicoddemus merged commit 6e2b5a3 into pytest-dev:master Jun 23, 2017
@nicoddemus
Copy link
Member

Thanks! 👍

@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.14% when pulling 2469527 on RonnyPfannschmidt:vendoring-tasks into bab18e1 on pytest-dev:features.

@RonnyPfannschmidt RonnyPfannschmidt deleted the vendoring-tasks branch July 14, 2017 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

task for vendoring pluggy
3 participants