Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Nov 10, 2023
1 parent 02c5bda commit ff5f851
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 13 additions & 3 deletions oras/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
2 changes: 1 addition & 1 deletion oras/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]"
NAME = "oras"
Expand Down

0 comments on commit ff5f851

Please sign in to comment.