mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 10:04:03 +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).
|
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).
|
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
|
## 2025-02-21
|
||||||
|
|
||||||
Affected: all images.
|
Affected: all images.
|
||||||
|
@@ -13,11 +13,13 @@ from tagging.taggers.sha import SHATagger
|
|||||||
from tagging.taggers.tagger_interface import TaggerInterface
|
from tagging.taggers.tagger_interface import TaggerInterface
|
||||||
from tagging.taggers.ubuntu_version import UbuntuVersionTagger
|
from tagging.taggers.ubuntu_version import UbuntuVersionTagger
|
||||||
from tagging.taggers.versions import (
|
from tagging.taggers.versions import (
|
||||||
|
CondaVersionTagger,
|
||||||
JavaVersionTagger,
|
JavaVersionTagger,
|
||||||
JuliaVersionTagger,
|
JuliaVersionTagger,
|
||||||
JupyterHubVersionTagger,
|
JupyterHubVersionTagger,
|
||||||
JupyterLabVersionTagger,
|
JupyterLabVersionTagger,
|
||||||
JupyterNotebookVersionTagger,
|
JupyterNotebookVersionTagger,
|
||||||
|
MambaVersionTagger,
|
||||||
PythonMajorMinorVersionTagger,
|
PythonMajorMinorVersionTagger,
|
||||||
PythonVersionTagger,
|
PythonVersionTagger,
|
||||||
PytorchVersionTagger,
|
PytorchVersionTagger,
|
||||||
@@ -43,6 +45,8 @@ ALL_IMAGES = {
|
|||||||
UbuntuVersionTagger(),
|
UbuntuVersionTagger(),
|
||||||
PythonMajorMinorVersionTagger(),
|
PythonMajorMinorVersionTagger(),
|
||||||
PythonVersionTagger(),
|
PythonVersionTagger(),
|
||||||
|
MambaVersionTagger(),
|
||||||
|
CondaVersionTagger(),
|
||||||
],
|
],
|
||||||
manifests=[CondaEnvironmentManifest(), AptPackagesManifest()],
|
manifests=[CondaEnvironmentManifest(), AptPackagesManifest()],
|
||||||
),
|
),
|
||||||
|
@@ -36,6 +36,18 @@ class PythonMajorMinorVersionTagger(TaggerInterface):
|
|||||||
return full_version[: full_version.rfind(".")]
|
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):
|
class JupyterNotebookVersionTagger(TaggerInterface):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def tag_value(container: Container) -> str:
|
def tag_value(container: Container) -> str:
|
||||||
|
Reference in New Issue
Block a user