本文整理汇总了Python中rez.tests.util.TempdirMixin.setUpClass方法的典型用法代码示例。如果您正苦于以下问题:Python TempdirMixin.setUpClass方法的具体用法?Python TempdirMixin.setUpClass怎么用?Python TempdirMixin.setUpClass使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rez.tests.util.TempdirMixin
的用法示例。
在下文中一共展示了TempdirMixin.setUpClass方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUpClass
# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
def setUpClass(cls):
TempdirMixin.setUpClass()
path = os.path.dirname(__file__)
packages_path = os.path.join(path, "data", "suites", "packages")
cls.settings = dict(
packages_path=[packages_path],
package_filter=None,
implicit_packages=[],
warn_untimestamped=False,
resolve_caching=False)
示例2: setUpClass
# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
def setUpClass(cls):
TempdirMixin.setUpClass()
packages_path = os.path.join(cls.root, "packages")
os.makedirs(packages_path)
hello_world.bind(packages_path)
cls.settings = dict(
packages_path=[packages_path],
package_filter=None,
implicit_packages=[],
warn_untimestamped=False)
示例3: setUpClass
# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
def setUpClass(cls):
TempdirMixin.setUpClass()
path = os.path.realpath(os.path.dirname(__file__))
cls.solver_packages_path = os.path.join(path, "data", "solver", "packages")
cls.packages_base_path = os.path.join(path, "data", "packages")
cls.yaml_packages_path = os.path.join(cls.packages_base_path, "yaml_packages")
cls.py_packages_path = os.path.join(cls.packages_base_path, "py_packages")
cls.settings = dict(
packages_path=[cls.solver_packages_path,
cls.yaml_packages_path,
cls.py_packages_path],
package_filter=None)
示例4: setUpClass
# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
def setUpClass(cls):
TempdirMixin.setUpClass()
path = os.path.dirname(__file__)
cls.src_path = os.path.join(path, "data", "release")
cls.src_root = os.path.join(cls.root, "src")
cls.install_root = os.path.join(cls.root, "packages")
cls.settings = dict(
packages_path=[cls.install_root],
package_filter=None,
release_packages_path=cls.install_root,
resolve_caching=False,
warn_untimestamped=False,
implicit_packages=[])
示例5: setUpClass
# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
def setUpClass(cls):
TempdirMixin.setUpClass()
path = os.path.dirname(__file__)
packages_path = os.path.join(path, "data", "builds", "packages")
cls.src_root = os.path.join(cls.root, "src", "packages")
cls.install_root = os.path.join(cls.root, "packages")
shutil.copytree(packages_path, cls.src_root)
cls.settings = dict(
packages_path=[cls.install_root],
package_filter=None,
resolve_caching=False,
warn_untimestamped=False,
warn_old_commands=False,
implicit_packages=[])
示例6: setUpClass
# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
def setUpClass(cls):
TempdirMixin.setUpClass()
path = os.path.realpath(os.path.dirname(__file__))
cls.solver_packages_path = os.path.join(path, "data", "solver", "packages")
cls.packages_base_path = os.path.join(path, "data", "packages")
cls.yaml_packages_path = os.path.join(cls.packages_base_path, "yaml_packages")
cls.py_packages_path = os.path.join(cls.packages_base_path, "py_packages")
cls.package_definition_build_python_paths = [
os.path.join(path, "data", "python", "early_bind")
]
cls.settings = dict(
packages_path=[cls.solver_packages_path,
cls.yaml_packages_path,
cls.py_packages_path],
package_definition_build_python_paths=cls.package_definition_build_python_paths,
package_filter=None)
示例7: setUpClass
# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
def setUpClass(cls):
TempdirMixin.setUpClass()
path = os.path.dirname(__file__)
packages_path = os.path.join(path, "data", "builds", "packages")
cls.src_root = os.path.join(cls.root, "src", "packages")
cls.install_root = os.path.join(cls.root, "packages")
shutil.copytree(packages_path, cls.src_root)
# repo we will copy packages into
cls.dest_install_root = os.path.join(cls.root, "dest_packages")
# include modules
pypath = os.path.join(path, "data", "python", "late_bind")
cls.settings = dict(
packages_path=[cls.install_root],
package_filter=None,
package_definition_python_path=pypath,
resolve_caching=False,
warn_untimestamped=False,
warn_old_commands=False,
implicit_packages=[])
示例8: setUpClass
# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
def setUpClass(cls):
TempdirMixin.setUpClass()
cls.settings = dict()