From b621823201178b9d527d405443c85ea119a0d3bb Mon Sep 17 00:00:00 2001 From: Jean-Christophe Morin Date: Mon, 6 Nov 2023 20:23:55 -0500 Subject: [PATCH] Add deprecation TODOs for future us Signed-off-by: Jean-Christophe Morin --- src/rezplugins/package_repository/filesystem.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rezplugins/package_repository/filesystem.py b/src/rezplugins/package_repository/filesystem.py index 9652f1e24..31f9d9e64 100644 --- a/src/rezplugins/package_repository/filesystem.py +++ b/src/rezplugins/package_repository/filesystem.py @@ -208,6 +208,7 @@ def _load(self): return data + # TODO: Deprecate def _load_old_formats(self): data = None @@ -245,6 +246,7 @@ def _update_changelog(file_format, data): if not maxlen: return data + # TODO: Deprecate if file_format == FileFormat.yaml: changelog = data.get("changelog") if changelog: @@ -334,6 +336,7 @@ def iter_packages(self): yield package def _load(self): + # TODO: Deprecate: What is self.ext? format_ = FileFormat[self.ext] data = load_from_file( self.filepath, @@ -433,6 +436,7 @@ def _root(self): class FileSystemPackageRepository(PackageRepository): """A filesystem-based package repository. + TODO: Deprecate YAML Packages are stored on disk, in either 'package.yaml' or 'package.py' files. These files are stored into an organised directory structure like so: @@ -1182,6 +1186,7 @@ def _get_file(self, path, package_filename=None): package_filenames = _settings.package_filenames for name in package_filenames: + # TODO: Deprecate YAML for format_ in (FileFormat.py, FileFormat.yaml): filename = "%s.%s" % (name, format_.extension) filepath = os.path.join(path, filename)