How to use rez - 10 common examples

To help you get started, we’ve selected a few rez examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nerdvegas / rez / tests / test_rex.py View on Github external
def get_reference_commands(self, version):
        commands = []
        commands.append(rex.Comment(''))
        commands.append(rex.Comment('Commands from package rextest-%s' % version))
        commands.append(rex.Setenv('REZ_REXTEST_VERSION', version))
        commands.append(rex.Setenv('REZ_REXTEST_BASE', '%s/rextest/%s' % (self.release_path, version)))
        commands.append(rex.Setenv('REZ_REXTEST_ROOT', '%s/rextest/%s' % (self.release_path, version)))
        commands.append(rex.Setenv('REXTEST_ROOT', '%s/rextest/%s' % (self.release_path, version)))
        commands.append(rex.Setenv('REXTEST_VERSION', version))
        commands.append(rex.Setenv('REXTEST_MAJOR_VERSION', version.split('.')[0]))
        commands.append(rex.Setenv('REXTEST_DIRS', '%s/rextest/%s/%s/bin' % (self.release_path, version, version)))
        commands.append(rex.Alias('rextest', 'foobar'))
        return commands
github nerdvegas / rez / tests / test_rex.py View on Github external
def get_reference_commands(self, version):
        commands = []
        commands.append(rex.Comment(''))
        commands.append(rex.Comment('Commands from package rextest-%s' % version))
        commands.append(rex.Setenv('REZ_REXTEST_VERSION', version))
        commands.append(rex.Setenv('REZ_REXTEST_BASE', '%s/rextest/%s' % (self.release_path, version)))
        commands.append(rex.Setenv('REZ_REXTEST_ROOT', '%s/rextest/%s' % (self.release_path, version)))
        commands.append(rex.Setenv('REXTEST_ROOT', '%s/rextest/%s' % (self.release_path, version)))
        commands.append(rex.Setenv('REXTEST_VERSION', version))
        commands.append(rex.Setenv('REXTEST_MAJOR_VERSION', version.split('.')[0]))
        commands.append(rex.Setenv('REXTEST_DIRS', '%s/rextest/%s/%s/bin' % (self.release_path, version, version)))
        commands.append(rex.Alias('rextest', 'foobar'))
        return commands
github nerdvegas / rez / tests / test_rex.py View on Github external
def get_reference_commands(self, version):
        commands = []
        commands.append(rex.Comment(''))
        commands.append(rex.Comment('Commands from package rextest-%s' % version))
        commands.append(rex.Setenv('REZ_REXTEST_VERSION', version))
        commands.append(rex.Setenv('REZ_REXTEST_BASE', '%s/rextest/%s' % (self.release_path, version)))
        commands.append(rex.Setenv('REZ_REXTEST_ROOT', '%s/rextest/%s' % (self.release_path, version)))
        commands.append(rex.Setenv('REXTEST_ROOT', '%s/rextest/%s' % (self.release_path, version)))
        commands.append(rex.Setenv('REXTEST_VERSION', version))
        commands.append(rex.Setenv('REXTEST_MAJOR_VERSION', version.split('.')[0]))
        commands.append(rex.Setenv('REXTEST_DIRS', '%s/rextest/%s/%s/bin' % (self.release_path, version, version)))
        commands.append(rex.Alias('rextest', 'foobar'))
        return commands
github nerdvegas / rez / tests / test_rex.py View on Github external
def get_reference_commands(self, version):
        commands = []
        commands.append(rex.Comment(''))
        commands.append(rex.Comment('Commands from package rextest-%s' % version))
        commands.append(rex.Setenv('REZ_REXTEST_VERSION', version))
        commands.append(rex.Setenv('REZ_REXTEST_BASE', '%s/rextest/%s' % (self.release_path, version)))
        commands.append(rex.Setenv('REZ_REXTEST_ROOT', '%s/rextest/%s' % (self.release_path, version)))
        commands.append(rex.Setenv('REXTEST_ROOT', '%s/rextest/%s' % (self.release_path, version)))
        commands.append(rex.Setenv('REXTEST_VERSION', version))
        commands.append(rex.Setenv('REXTEST_MAJOR_VERSION', version.split('.')[0]))
        commands.append(rex.Setenv('REXTEST_DIRS', '%s/rextest/%s/%s/bin' % (self.release_path, version, version)))
        commands.append(rex.Alias('rextest', 'foobar'))
        return commands
github nerdvegas / rez / tests / test_rex.py View on Github external
def get_reference_commands(self, version):
        commands = []
        commands.append(rex.Comment(''))
        commands.append(rex.Comment('Commands from package rextest-%s' % version))
        commands.append(rex.Setenv('REZ_REXTEST_VERSION', version))
        commands.append(rex.Setenv('REZ_REXTEST_BASE', '%s/rextest/%s' % (self.release_path, version)))
        commands.append(rex.Setenv('REZ_REXTEST_ROOT', '%s/rextest/%s' % (self.release_path, version)))
        commands.append(rex.Setenv('REXTEST_ROOT', '%s/rextest/%s' % (self.release_path, version)))
        commands.append(rex.Setenv('REXTEST_VERSION', version))
        commands.append(rex.Setenv('REXTEST_MAJOR_VERSION', version.split('.')[0]))
        commands.append(rex.Setenv('REXTEST_DIRS', '%s/rextest/%s/%s/bin' % (self.release_path, version, version)))
        commands.append(rex.Alias('rextest', 'foobar'))
        return commands
github nerdvegas / rez / src / rez / vendor / unittest2 / case.py View on Github external
def assertNotIn(self, member, container, msg=None):
        """Just like self.assertTrue(a not in b), but with a nicer default message."""
        if member in container:
            standardMsg = '%s unexpectedly found in %s' % (safe_repr(member), 
                                                            safe_repr(container))
            self.fail(self._formatMessage(msg, standardMsg))
github nerdvegas / rez / src / rez / vendor / unittest2 / case.py View on Github external
as significant digits (measured from the most signficant digit).

           If the two objects compare equal then they will automatically
           compare almost equal.
        """
        if first == second:
            # shortcut
            return
        if delta is not None and places is not None:
            raise TypeError("specify delta or places not both")
        
        if delta is not None:
            if abs(first - second) <= delta:
                return
        
            standardMsg = '%s != %s within %s delta' % (safe_repr(first), 
                                                        safe_repr(second), 
                                                        safe_repr(delta))
        else:
            if places is None:
                places = 7
                
            if round(abs(second-first), places) == 0:
                return
        
            standardMsg = '%s != %s within %r places' % (safe_repr(first), 
                                                          safe_repr(second), 
                                                          places)
        msg = self._formatMessage(msg, standardMsg)
        raise self.failureException(msg)
github nerdvegas / rez / src / rez / vendor / unittest2 / case.py View on Github external
If the two objects compare equal then they will automatically
           compare almost equal.
        """
        if first == second:
            # shortcut
            return
        if delta is not None and places is not None:
            raise TypeError("specify delta or places not both")
        
        if delta is not None:
            if abs(first - second) <= delta:
                return
        
            standardMsg = '%s != %s within %s delta' % (safe_repr(first), 
                                                        safe_repr(second), 
                                                        safe_repr(delta))
        else:
            if places is None:
                places = 7
                
            if round(abs(second-first), places) == 0:
                return
        
            standardMsg = '%s != %s within %r places' % (safe_repr(first), 
                                                          safe_repr(second), 
                                                          places)
        msg = self._formatMessage(msg, standardMsg)
        raise self.failureException(msg)
github nerdvegas / rez / src / rez / vendor / unittest2 / case.py View on Github external
def assertLess(self, a, b, msg=None):
        """Just like self.assertTrue(a < b), but with a nicer default message."""
        if not a < b:
            standardMsg = '%s not less than %s' % (safe_repr(a), safe_repr(b))
            self.fail(self._formatMessage(msg, standardMsg))
github nerdvegas / rez / src / rez / vendor / unittest2 / case.py View on Github external
def assertGreaterEqual(self, a, b, msg=None):
        """Just like self.assertTrue(a >= b), but with a nicer default message."""
        if not a >= b:
            standardMsg = '%s not greater than or equal to %s' % (safe_repr(a), safe_repr(b))
            self.fail(self._formatMessage(msg, standardMsg))