本文整理匯總了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()