in liminal/build/python.py [0:0]
def get_image_name(self, python_version):
"""
:param python_version: The python version that would be installed in
the docker image. For example '3.8', '3.8.1' etc.
:type python_version: str
:return: The name of the base (slim) python image
:rtype: str
"""
if not python_version:
python_version = self.default_version
else:
python_version = str(python_version)
if python_version[:3] not in self.supported_versions:
raise ValueError(
f'liminal supports the following python versions: '
f'{self.supported_versions} but {python_version} '
f'were passed'
)
return f'python:{python_version}-slim'