mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 18:14:05 +00:00
Add tags for mamba and conda versions (#2251)
* Add tags for mamba and conda versions * Update changelog
This commit is contained in:
@@ -3,6 +3,12 @@
|
||||
This changelog only contains breaking and/or significant changes manually introduced to this repository (using Pull Requests).
|
||||
All image manifests can be found in [the wiki](https://github.com/jupyter/docker-stacks/wiki).
|
||||
|
||||
## 2025-03-12
|
||||
|
||||
Affected: all images.
|
||||
|
||||
- **Non-breaking:** Add `conda` and `mamba` version taggers ([#2251](https://github.com/jupyter/docker-stacks/pull/2251)).
|
||||
|
||||
## 2025-02-21
|
||||
|
||||
Affected: all images.
|
||||
|
@@ -13,11 +13,13 @@ from tagging.taggers.sha import SHATagger
|
||||
from tagging.taggers.tagger_interface import TaggerInterface
|
||||
from tagging.taggers.ubuntu_version import UbuntuVersionTagger
|
||||
from tagging.taggers.versions import (
|
||||
CondaVersionTagger,
|
||||
JavaVersionTagger,
|
||||
JuliaVersionTagger,
|
||||
JupyterHubVersionTagger,
|
||||
JupyterLabVersionTagger,
|
||||
JupyterNotebookVersionTagger,
|
||||
MambaVersionTagger,
|
||||
PythonMajorMinorVersionTagger,
|
||||
PythonVersionTagger,
|
||||
PytorchVersionTagger,
|
||||
@@ -43,6 +45,8 @@ ALL_IMAGES = {
|
||||
UbuntuVersionTagger(),
|
||||
PythonMajorMinorVersionTagger(),
|
||||
PythonVersionTagger(),
|
||||
MambaVersionTagger(),
|
||||
CondaVersionTagger(),
|
||||
],
|
||||
manifests=[CondaEnvironmentManifest(), AptPackagesManifest()],
|
||||
),
|
||||
|
@@ -36,6 +36,18 @@ class PythonMajorMinorVersionTagger(TaggerInterface):
|
||||
return full_version[: full_version.rfind(".")]
|
||||
|
||||
|
||||
class MambaVersionTagger(TaggerInterface):
|
||||
@staticmethod
|
||||
def tag_value(container: Container) -> str:
|
||||
return "mamba-" + _get_program_version(container, "mamba")
|
||||
|
||||
|
||||
class CondaVersionTagger(TaggerInterface):
|
||||
@staticmethod
|
||||
def tag_value(container: Container) -> str:
|
||||
return "conda-" + _get_program_version(container, "conda").split()[1]
|
||||
|
||||
|
||||
class JupyterNotebookVersionTagger(TaggerInterface):
|
||||
@staticmethod
|
||||
def tag_value(container: Container) -> str:
|
||||
|
Reference in New Issue
Block a user