Skip to content

Conversation

@danieldk
Copy link
Member

This change adds support for kernel versions branches as implemented by kernel-builder:

  • kernels upload will upload the branch corresponding to the kernel's version.
  • get_kernel, LayerRepository, etc. accept version branches through the version argument.
  • Kernel locking (e.g. kernels lock) support reading version branches from pyproject.yaml and correctly locking them.

All the kernel functions and layers already supported a version argument for version specifiers (based on tags). These are now overloaded -- if version is a str, it is parsed as a version specifier. If it is an int, it is used as a version branch.

This overloading is used to gradually move to version branches, deprecating version specifiers. For now, using version specifiers will emit a warning.

This change adds support for kernel versions branches as
implemented by `kernel-builder`:

* `kernels upload` will upload the branch corresponding to the
  kernel's version.
* `get_kernel`, `LayerRepository`, etc. accept version branches
  through the `version` argument.
* Kernel locking (e.g. `kernels lock`) support reading version
  branches from `pyproject.yaml` and correctly locking them.

All the kernel functions and layers already supported a `version`
argument for version specifiers (based on tags). These are now
overloaded -- if `version` is a `str`, it is parsed as a version
specifier. If it is an `int`, it is used as a version branch.

This overloading is used to gradually move to version branches,
deprecating version specifiers. For now, using version specifiers
will emit a warning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants