Implement CIBW_SKIP for linux

This commit is contained in:
Joe Rickerby
2017-04-11 22:57:42 +01:00
parent e9bf990fd2
commit ba22589f6f
4 changed files with 53 additions and 6 deletions
+10
View File
@@ -1,3 +1,5 @@
from fnmatch import fnmatch
def prepare_command(command, python, pip):
'''
@@ -9,3 +11,11 @@ def prepare_command(command, python, pip):
it out to python2 or python3 as appropriate.
'''
return command.format(python=python, pip=pip)
class BuildSkipper(object):
def __init__(self, skip_config):
self.patterns = skip_config.split()
def __call__(self, build_id):
return any(fnmatch(build_id, pattern) for pattern in self.patterns)