Commit f135f99 1 parent bab18e1 commit f135f99 Copy full SHA for f135f99
File tree 2 files changed +27
-2
lines changed
2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import invoke
6
6
7
- from . import generate
7
+ from . import generate , vendoring
8
8
9
- ns = invoke .Collection (generate )
9
+
10
+ ns = invoke .Collection (
11
+ generate ,
12
+ vendoring
13
+ )
Original file line number Diff line number Diff line change
1
+ from __future__ import absolute_import , print_function
2
+ import py
3
+ import invoke
4
+
5
+ VENDOR_TARGET = py .path .local ("_pytest/vendored_packages" )
6
+ GOOD_FILES = 'README.md' , '__init__.py'
7
+
8
+ @invoke .task ()
9
+ def remove_libs (ctx ):
10
+ print ("removing vendored libs" )
11
+ for path in VENDOR_TARGET .listdir ():
12
+ if path .basename not in GOOD_FILES :
13
+ print (" " , path )
14
+ path .remove ()
15
+
16
+ @invoke .task (pre = [remove_libs ])
17
+ def update_libs (ctx ):
18
+ print ("installing libs" )
19
+ ctx .run ("pip install -t {target} pluggy" .format (target = VENDOR_TARGET ))
20
+ ctx .run ("git add {target}" .format (target = VENDOR_TARGET ))
21
+ print ("please commit to finish the updae after running the tests" )
You can’t perform that action at this time.
0 commit comments