diff --git a/CHANGELOG.md b/CHANGELOG.md index cfefbec..bf0f8ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are: The versions coincide with releases on pip. Only major versions will be released as tags on Github. ## [0.0.x](https://github.com/oras-project/oras-py/tree/main) (0.0.x) + - name of uploaded archive must be .tar.gz to be extracted as such with oras go (0.1.26) - refactor tests using fixtures and rework pre-commit configuration (0.1.25) - eliminate the additional subdirectory creation while pulling an image to a custom output directory (0.1.24) - updating the exclude string in the pyproject.toml file to match the [data type black expects](https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-format) diff --git a/oras/provider.py b/oras/provider.py index b03e197..3a243a1 100644 --- a/oras/provider.py +++ b/oras/provider.py @@ -699,12 +699,22 @@ def push(self, *args, **kwargs) -> requests.Response: annotations = annotset.get_annotations(blob) # Always strip blob_name of path separator - layer["annotations"] = { - oras.defaults.annotation_title: blob_name.strip(os.sep) - } + if cleanup_blob: # is_dir + layer["annotations"] = { + oras.defaults.annotation_title: blob_name.strip(os.sep) + ".tar.gz" + } + else: + layer["annotations"] = { + oras.defaults.annotation_title: blob_name.strip(os.sep) + } + if annotations: layer["annotations"].update(annotations) + import IPython + + IPython.embed() + # update the manifest with the new layer manifest["layers"].append(layer) logger.debug(f"Preparing layer {layer}") diff --git a/oras/version.py b/oras/version.py index 7db5671..8432dbd 100644 --- a/oras/version.py +++ b/oras/version.py @@ -2,7 +2,7 @@ __copyright__ = "Copyright The ORAS Authors." __license__ = "Apache-2.0" -__version__ = "0.1.25" +__version__ = "0.1.26" AUTHOR = "Vanessa Sochat" EMAIL = "vsoch@users.noreply.github.com" NAME = "oras"