File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 2727 run : |
2828 export PATH="/usr/share/miniconda/bin:$PATH"
2929 source activate black
30- pip install black==20.8b1
30+ pip install black
3131 black --check shpc
3232
3333 - name : Check imports with pyflakes
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
1414The versions coincide with releases on pip. Only major versions will be released as tags on Github.
1515
1616## [ 0.0.x] ( https://github.com/singularityhub/singularity-hpc/tree/main ) (0.0.x)
17+ - better error message if container tag does not exist on update (0.0.52)
1718 - minimum version of spython required is 0.2.0 to support apptainer (0.0.51)
1819 - add support for TCL and LMOD default version, multiple variants (0.0.50)
1920 - refactor to "add" to generate a container.yaml first (0.0.49)
Original file line number Diff line number Diff line change @@ -37,14 +37,19 @@ def tags(self):
3737
3838 def manifest (self , tag ):
3939 url = "%s/manifest/%s:%s" % (self .apiroot , self .container_name , tag )
40- return self .get_request (url ).json ()
40+ response = self .get_request (url )
41+ return response .json ()
4142
4243 def digest (self , tag ):
4344 url = "%s/digest/%s:%s" % (self .apiroot , self .container_name , tag )
44- response = self .get_request (url ). text
45+ response = self .get_request (url )
4546 if "could not parse reference" in response :
4647 logger .exit ("Issue getting digest: %s" % response )
47- return self .get_request (url ).text
48+ if "MANIFEST_UNKNOWN" in response .text :
49+ logger .exit (
50+ f"The tag { tag } you provided is not known. Check that it and the container both exist."
51+ )
52+ return response .text
4853
4954 def config (self ):
5055 url = "%s/config/%s" % (self .apiroot , self .container_name )
Original file line number Diff line number Diff line change 22__copyright__ = "Copyright 2021-2022, Vanessa Sochat"
33__license__ = "MPL 2.0"
44
5- __version__ = "0.0.51 "
5+ __version__ = "0.0.52 "
66AUTHOR = "Vanessa Sochat"
77NAME = "singularity-hpc"
88PACKAGE_URL = "https://github.com/singularityhub/singularity-hpc"
You can’t perform that action at this time.
0 commit comments