From cb700208e8aea49f94266f3bd08a38e5dcc88950 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 24 Aug 2017 16:48:54 -0400 Subject: [PATCH] Drop vendoring task --- tasks/vendoring.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 tasks/vendoring.py diff --git a/tasks/vendoring.py b/tasks/vendoring.py deleted file mode 100644 index 867f2946b..000000000 --- a/tasks/vendoring.py +++ /dev/null @@ -1,23 +0,0 @@ -from __future__ import absolute_import, print_function -import py -import invoke - -VENDOR_TARGET = py.path.local("_pytest/vendored_packages") -GOOD_FILES = 'README.md', '__init__.py' - -@invoke.task() -def remove_libs(ctx): - print("removing vendored libs") - for path in VENDOR_TARGET.listdir(): - if path.basename not in GOOD_FILES: - print(" ", path) - path.remove() - -@invoke.task(pre=[remove_libs]) -def update_libs(ctx): - 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 update after running the tests:") - print() - print(' git commit -am "Updated vendored libs"')