# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
import argparse import configparser import os import re import subprocess import sys
# This can break if we start using more features of tox for dep in deps.splitlines():
m = dep_re.match(dep) if m:
rv.append(m.group(1).replace("{toxinidir}", self.tox_path)) return rv
def replace_path(self, requirements_path):
lines = [] with open(requirements_path, "rb") as f:
self.file_cache[requirements_path] = f.read()
f.seek(0) for line in f:
m = requirements_re.match(line) ifnot m:
lines.append(line) else:
key = m.group(1)
path = local_requirements[key]
lines.append(
b"-e %s\n"
% (os.path.join(self.top_src_path, path).encode("utf8"),)
)
with open(requirements_path, "wb") as f: for line in lines:
f.write(line)
with open(requirements_path, "rb") as f:
print(f.read())
def get_parser():
parser = argparse.ArgumentParser()
parser.add_argument( "--no-tools",
dest="tools",
action="store_false",
default=True,
help="Don't run the tools unittests",
)
parser.add_argument( "--no-wptrunner",
dest="wptrunner",
action="store_false",
default=True,
help="Don't run the wptrunner unittests",
)
parser.add_argument( "tox_kwargs", nargs=argparse.REMAINDER, help="Arguments to pass through to tox"
) return parser
if __name__ == "__main__": ifnot main():
sys.exit(1)
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.20Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.