rezplugins.package_repository.filesystem

Filesystem-based package repository

class rezplugins.package_repository.filesystem.FileSystemCombinedPackageFamilyResource(variables=None)[source]

Bases: rez.package_resources.PackageFamilyResource

property ext
property filepath
get_last_release_time()[source]
iter_packages()[source]
key = 'filesystem.family.combined'
repository_type = 'filesystem'
schema = Schema({Optional('versions'): [And(<class 'str'>, Use(<class 'rez.vendor.version.version.Version'>))], Optional('version_overrides'): {And(<class 'str'>, Use(<class 'rez.vendor.version.version.VersionRange'>)): <class 'dict'>}})
validate_data()
validated_data()
version_overrides

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
versions

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
class rezplugins.package_repository.filesystem.FileSystemCombinedPackageResource(variables=None)[source]

Bases: rez.package_resources.PackageResourceHelper

authors

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
property base
build_requires

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
cachable

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
changelog

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
config

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
description

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
has_plugins

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
hashed_variants

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
help

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
iter_variants()[source]
key = 'filesystem.package.combined'
parent

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
plugin_for

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
pre_build_commands

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
pre_test_commands

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
previous_revision

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
previous_version

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
private_build_requires

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
release_message

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
relocatable

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
repository_type = 'filesystem'
requires

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
revision

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
schema = Schema({Schema('name'): <class 'str'>, Optional('base'): <class 'str'>, Optional('version'): And(<class 'str'>, Use(<class 'rez.vendor.version.version.Version'>)), Optional('description'): And(<class 'str'>, Use(<function <lambda>>)), Optional('authors'): [<class 'str'>], Optional('requires'): Or(<class 'rez.utils.sourcecode.SourceCode'>, [And(<class 'str'>, Use(<class 'rez.utils.formatting.PackageRequest'>))]), Optional('build_requires'): Or(<class 'rez.utils.sourcecode.SourceCode'>, [And(<class 'str'>, Use(<class 'rez.utils.formatting.PackageRequest'>))]), Optional('private_build_requires'): Or(<class 'rez.utils.sourcecode.SourceCode'>, [And(<class 'str'>, Use(<class 'rez.utils.formatting.PackageRequest'>))]), Optional('variants'): [[And(<class 'str'>, Use(<class 'rez.utils.formatting.PackageRequest'>))]], Optional('has_plugins'): Or(<class 'rez.utils.sourcecode.SourceCode'>, <class 'bool'>), Optional('plugin_for'): Or(<class 'rez.utils.sourcecode.SourceCode'>, [<class 'str'>]), Optional('uuid'): <class 'str'>, Optional('config'): And(<class 'dict'>, Use(<function <lambda>>)), Optional('tools'): Or(<class 'rez.utils.sourcecode.SourceCode'>, [<class 'str'>]), Optional('help'): Or(<class 'rez.utils.sourcecode.SourceCode'>, Or(<class 'str'>, [[<class 'str'>]])), Optional('hashed_variants'): <class 'bool'>, Optional('relocatable'): Or(<class 'rez.utils.sourcecode.SourceCode'>, Or(None, <class 'bool'>)), Optional('cachable'): Or(<class 'rez.utils.sourcecode.SourceCode'>, Or(None, <class 'bool'>)), Optional('tests'): Or(<class 'rez.utils.sourcecode.SourceCode'>, Schema({Optional(<class 'str'>): Or(Or(<class 'str'>, [<class 'str'>]), {Optional(<class 'str'>): <class 'object'>, 'command': Or(<class 'str'>, [<class 'str'>]), Optional('requires'): [Or(<class 'rez.utils.formatting.PackageRequest'>, And(<class 'str'>, Use(<class 'rez.utils.formatting.PackageRequest'>)))], Optional('run_on'): Or(<class 'str'>, [<class 'str'>]), Optional('on_variants'): Or(<class 'bool'>, {'type': 'requires', 'value': [Or(<class 'rez.utils.formatting.PackageRequest'>, And(<class 'str'>, Use(<class 'rez.utils.formatting.PackageRequest'>)))]})})})), Optional('pre_commands'): Or(<class 'rez.utils.sourcecode.SourceCode'>, <built-in function callable>, <class 'str'>, [<class 'str'>]), Optional('commands'): Or(<class 'rez.utils.sourcecode.SourceCode'>, <built-in function callable>, <class 'str'>, [<class 'str'>]), Optional('post_commands'): Or(<class 'rez.utils.sourcecode.SourceCode'>, <built-in function callable>, <class 'str'>, [<class 'str'>]), Optional('pre_build_commands'): Or(<class 'rez.utils.sourcecode.SourceCode'>, <built-in function callable>, <class 'str'>, [<class 'str'>]), Optional('pre_test_commands'): Or(<class 'rez.utils.sourcecode.SourceCode'>, <built-in function callable>, <class 'str'>, [<class 'str'>]), Optional('timestamp'): <class 'int'>, Optional('revision'): <class 'object'>, Optional('changelog'): And(<class 'str'>, Use(<function <lambda>>)), Optional('release_message'): Or(None, <class 'str'>), Optional('previous_version'): And(<class 'str'>, Use(<class 'rez.vendor.version.version.Version'>)), Optional('previous_revision'): <class 'object'>, Optional('vcs'): <class 'str'>, Optional(<class 'str'>): Or(<class 'rez.utils.sourcecode.SourceCode'>, <class 'object'>)})
state_handle

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
tests

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
timestamp

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
tools

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
uuid

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
validate_data()
validated_data()
variant_key = 'filesystem.variant.combined'
variants

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
vcs

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
class rezplugins.package_repository.filesystem.FileSystemCombinedVariantResource(variables=None)[source]

Bases: rez.package_resources.VariantResourceHelper

key = 'filesystem.variant.combined'
parent

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
repository_type = 'filesystem'
class rezplugins.package_repository.filesystem.FileSystemPackageFamilyResource(variables=None)[source]

Bases: rez.package_resources.PackageFamilyResource

get_last_release_time()[source]
iter_packages()[source]
key = 'filesystem.family'
path

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
repository_type = 'filesystem'
class rezplugins.package_repository.filesystem.FileSystemPackageRepository(location, resource_pool, disable_memcache=None, disable_pkg_ignore=False)[source]

Bases: rez.package_repository.PackageRepository

A filesystem-based package repository.

Packages are stored on disk, in either ‘package.yaml’ or ‘package.py’ files. These files are stored into an organised directory structure like so:

/LOCATION/pkgA/1.0.0/package.py

/1.0.1/package.py

/pkgB/2.1/package.py

/2.2/package.py

Another supported storage format is to store all package versions within a single package family in one file, like so:

/LOCATION/pkgC.yaml /LOCATION/pkgD.py

These ‘combined’ package files allow for differences between package versions via a ‘package_overrides’ section:

name: pkgC

versions: - ‘1.0’ - ‘1.1’ - ‘1.2’

version_overrides:
‘1.0’:

requires: - python-2.5

‘1.1+’:

requires: - python-2.6

building_prefix = '.building'
clear_caches()[source]

Clear any cached resources in the pool.

file_lock_dir

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
get_last_release_time(package_family_resource)[source]

Get the last time a package was added to the given family.

This information is used to cache resolves via memcached. It can be left not implemented, but resolve caching is a substantial optimisation that you will be missing out on.

Returns

Epoch time at which a package was changed/added/removed from

the given package family. Zero signifies an unknown last package update time.

Return type

int

get_package_family(name)[source]

Get a package family.

Parameters

name (str) – Package name.

Returns

PackageFamilyResource, or None if not found.

get_package_from_uri(uri)[source]

Example URIs: - /svr/packages/mypkg/1.0.0/package.py - /svr/packages/mypkg/package.py # (unversioned package - rare) - /svr/packages/mypkg/package.py<1.0.0> # (“combined” package type - rare)

get_package_payload_path(package_name, package_version=None)[source]

Defines where a package’s payload should be installed to.

Parameters
  • package_name (str) – Nmae of package.

  • package_version (str or Version) – Package version.

Returns

Path where package’s payload should be installed to.

Return type

str

get_parent_package(variant_resource)[source]

Get the parent package of the given variant.

Parameters

variant_resource (VariantResource) – Variant.

Returns

PackageResource.

get_parent_package_family(package_resource)[source]

Get the parent package family of the given package.

Parameters

package_resource (PackageResource) – Package.

Returns

PackageFamilyResource.

get_resource_from_handle(resource_handle, verify_repo=True)[source]

Get a resource.

Parameters

resource_handle (ResourceHandle) – Handle of the resource.

Returns

PackageRepositoryResource instance.

get_variant_from_uri(uri)[source]

Example URIs: - /svr/packages/mypkg/1.0.0/package.py[1] - /svr/packages/mypkg/1.0.0/package.py[] # (“null” variant) - /svr/packages/mypkg/package.py[1] # (unversioned package - rare) - /svr/packages/mypkg/package.py<1.0.0>[1] # (“combined” package type - rare)

get_variant_state_handle(variant_resource)[source]

Get a value that indicates the state of the variant.

This is used for resolve caching. For example, in the ‘filesystem’ repository type, the ‘state’ is the last modified date of the file associated with the variant (perhaps a package.py). If the state of any variant has changed from a cached resolve - eg, if a file has been modified - the cached resolve is discarded.

This may not be applicable to your repository type, leave as-is if so.

Returns

A hashable value.

ignore_package(pkg_name, pkg_version, allow_missing=False)[source]

Ignore the given package.

Ignoring a package makes it invisible to further resolves.

Parameters
  • pkg_name (str) – Package name

  • pkg_version (Version) – Package version

  • allow_missing (bool) – if True, allow for ignoring a package that does not exist. This is useful when you want to copy a package to a repo and you don’t want it visible until the copy is completed.

Returns

  • -1: Package not found

  • 0: Nothing was done, package already ignored

  • 1: Package was ignored

Return type

int

ignore_prefix = '.ignore'
install_variant(variant_resource, dry_run=False, overrides=None)[source]

Install a variant into this repository.

Use this function to install a variant from some other package repository into this one.

Parameters
  • variant_resource (VariantResource) – Variant to install.

  • dry_run (bool) – If True, do not actually install the variant. In this mode, a Variant instance is only returned if the equivalent variant already exists in this repository; otherwise, None is returned.

  • overrides (dict) – Use this to change or add attributes to the installed variant. To remove attributes, set values to PackageRepository.remove.

Returns

VariantResource object, which is the newly created variant in this repository. If dry_run is True, None may be returned.

iter_package_families()[source]

Iterate over the package families in the repository, in no particular order.

Returns

PackageFamilyResource iterator.

iter_packages(package_family_resource)[source]

Iterate over the packages within the given family, in no particular order.

Parameters

package_family_resource (PackageFamilyResource) – Parent family.

Returns

PackageResource iterator.

iter_variants(package_resource)[source]

Iterate over the variants within the given package.

Parameters

package_resource (PackageResource) – Parent package.

Returns

VariantResource iterator.

classmethod name()[source]

Return the name of the package repository type.

on_variant_install_cancelled(variant_resource)[source]
package_file_mode = 292
pre_variant_install(variant_resource)[source]

Called before a variant is installed.

If any directories are created on disk for the variant to install into, this is called before that happens.

Note that it is the responsibility of the BuildProcess to call this function at the appropriate time.

remove_ignored_since(days, dry_run=False, verbose=False)[source]

Remove packages ignored for >= specified number of days.

Parameters
  • days (int) – Remove packages ignored >= this many days

  • dry_run – Dry run mode

  • verbose (bool) – Verbose mode

Returns

Number of packages removed. In dry-run mode, returns the number of packages that _would_ be removed.

Return type

int

remove_package(pkg_name, pkg_version)[source]

Remove a package.

Note that this should work even if the specified package is currently ignored.

Parameters
  • pkg_name (str) – Package name

  • pkg_version (Version) – Package version

Returns

True if the package was removed, False if it wasn’t found.

Return type

bool

remove_package_family(pkg_name, force=False)[source]

Remove an empty package family.

Parameters
  • pkg_name (str) – Package name

  • force (bool) – If Trur, delete even if not empty.

Returns

True if the family was removed, False if it wasn’t found.

Return type

bool

schema_dict = {'file_lock_dir': Or(None, <class 'str'>), 'file_lock_timeout': <class 'int'>, 'file_lock_type': Or('default', 'link', 'mkdir'), 'package_filenames': [<class 'str'>]}
unignore_package(pkg_name, pkg_version)[source]

Unignore the given package.

Parameters
  • pkg_name (str) – Package name

  • pkg_version (Version) – Package version

Returns

  • -1: Package not found

  • 0: Nothing was done, package already visible

  • 1: Package was unignored

Return type

int

class rezplugins.package_repository.filesystem.FileSystemPackageResource(variables=None)[source]

Bases: rez.package_resources.PackageResourceHelper

authors

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
property base
build_requires

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
cachable

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
changelog

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
config

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
description

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
file_format

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
filepath

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
has_plugins

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
hashed_variants

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
help

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
key = 'filesystem.package'
parent

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
path

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
plugin_for

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
pre_build_commands

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
pre_test_commands

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
previous_revision

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
previous_version

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
private_build_requires

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
release_message

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
relocatable

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
repository_type = 'filesystem'
requires

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
revision

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
schema = Schema({Schema('name'): <class 'str'>, Optional('base'): <class 'str'>, Optional('version'): And(<class 'str'>, Use(<class 'rez.vendor.version.version.Version'>)), Optional('description'): And(<class 'str'>, Use(<function <lambda>>)), Optional('authors'): [<class 'str'>], Optional('requires'): Or(<class 'rez.utils.sourcecode.SourceCode'>, [And(<class 'str'>, Use(<class 'rez.utils.formatting.PackageRequest'>))]), Optional('build_requires'): Or(<class 'rez.utils.sourcecode.SourceCode'>, [And(<class 'str'>, Use(<class 'rez.utils.formatting.PackageRequest'>))]), Optional('private_build_requires'): Or(<class 'rez.utils.sourcecode.SourceCode'>, [And(<class 'str'>, Use(<class 'rez.utils.formatting.PackageRequest'>))]), Optional('variants'): [[And(<class 'str'>, Use(<class 'rez.utils.formatting.PackageRequest'>))]], Optional('has_plugins'): Or(<class 'rez.utils.sourcecode.SourceCode'>, <class 'bool'>), Optional('plugin_for'): Or(<class 'rez.utils.sourcecode.SourceCode'>, [<class 'str'>]), Optional('uuid'): <class 'str'>, Optional('config'): And(<class 'dict'>, Use(<function <lambda>>)), Optional('tools'): Or(<class 'rez.utils.sourcecode.SourceCode'>, [<class 'str'>]), Optional('help'): Or(<class 'rez.utils.sourcecode.SourceCode'>, Or(<class 'str'>, [[<class 'str'>]])), Optional('hashed_variants'): <class 'bool'>, Optional('relocatable'): Or(<class 'rez.utils.sourcecode.SourceCode'>, Or(None, <class 'bool'>)), Optional('cachable'): Or(<class 'rez.utils.sourcecode.SourceCode'>, Or(None, <class 'bool'>)), Optional('tests'): Or(<class 'rez.utils.sourcecode.SourceCode'>, Schema({Optional(<class 'str'>): Or(Or(<class 'str'>, [<class 'str'>]), {Optional(<class 'str'>): <class 'object'>, 'command': Or(<class 'str'>, [<class 'str'>]), Optional('requires'): [Or(<class 'rez.utils.formatting.PackageRequest'>, And(<class 'str'>, Use(<class 'rez.utils.formatting.PackageRequest'>)))], Optional('run_on'): Or(<class 'str'>, [<class 'str'>]), Optional('on_variants'): Or(<class 'bool'>, {'type': 'requires', 'value': [Or(<class 'rez.utils.formatting.PackageRequest'>, And(<class 'str'>, Use(<class 'rez.utils.formatting.PackageRequest'>)))]})})})), Optional('pre_commands'): Or(<class 'rez.utils.sourcecode.SourceCode'>, <built-in function callable>, <class 'str'>, [<class 'str'>]), Optional('commands'): Or(<class 'rez.utils.sourcecode.SourceCode'>, <built-in function callable>, <class 'str'>, [<class 'str'>]), Optional('post_commands'): Or(<class 'rez.utils.sourcecode.SourceCode'>, <built-in function callable>, <class 'str'>, [<class 'str'>]), Optional('pre_build_commands'): Or(<class 'rez.utils.sourcecode.SourceCode'>, <built-in function callable>, <class 'str'>, [<class 'str'>]), Optional('pre_test_commands'): Or(<class 'rez.utils.sourcecode.SourceCode'>, <built-in function callable>, <class 'str'>, [<class 'str'>]), Optional('timestamp'): <class 'int'>, Optional('revision'): <class 'object'>, Optional('changelog'): And(<class 'str'>, Use(<function <lambda>>)), Optional('release_message'): Or(None, <class 'str'>), Optional('previous_version'): And(<class 'str'>, Use(<class 'rez.vendor.version.version.Version'>)), Optional('previous_revision'): <class 'object'>, Optional('vcs'): <class 'str'>, Optional(<class 'str'>): Or(<class 'rez.utils.sourcecode.SourceCode'>, <class 'object'>)})
state_handle

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
tests

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
timestamp

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
tools

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
uuid

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
validate_data()
validated_data()
variant_key = 'filesystem.variant'
variants

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
vcs

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
class rezplugins.package_repository.filesystem.FileSystemVariantResource(variables=None)[source]

Bases: rez.package_resources.VariantResourceHelper

key = 'filesystem.variant'
parent

Simple property caching descriptor.

Example

>>> class Foo(object):
>>>     @cached_property
>>>     def bah(self):
>>>         print('bah')
>>>         return 1
>>>
>>> f = Foo()
>>> f.bah
bah
1
>>> f.bah
1
repository_type = 'filesystem'
exception rezplugins.package_repository.filesystem.PackageDefinitionFileMissing(value=None, path=None, resource_key=None)[source]

Bases: rez.exceptions.PackageMetadataError

rezplugins.package_repository.filesystem.check_format_version(filename, data)[source]
rezplugins.package_repository.filesystem.register_plugin()[source]