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 27
27
run : |
28
28
export PATH="/usr/share/miniconda/bin:$PATH"
29
29
source activate black
30
- pip install black==20.8b1
30
+ pip install black
31
31
black --check shpc
32
32
33
33
- 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:
14
14
The versions coincide with releases on pip. Only major versions will be released as tags on Github.
15
15
16
16
## [ 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)
17
18
- minimum version of spython required is 0.2.0 to support apptainer (0.0.51)
18
19
- add support for TCL and LMOD default version, multiple variants (0.0.50)
19
20
- 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):
37
37
38
38
def manifest (self , tag ):
39
39
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 ()
41
42
42
43
def digest (self , tag ):
43
44
url = "%s/digest/%s:%s" % (self .apiroot , self .container_name , tag )
44
- response = self .get_request (url ). text
45
+ response = self .get_request (url )
45
46
if "could not parse reference" in response :
46
47
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
48
53
49
54
def config (self ):
50
55
url = "%s/config/%s" % (self .apiroot , self .container_name )
Original file line number Diff line number Diff line change 2
2
__copyright__ = "Copyright 2021-2022, Vanessa Sochat"
3
3
__license__ = "MPL 2.0"
4
4
5
- __version__ = "0.0.51 "
5
+ __version__ = "0.0.52 "
6
6
AUTHOR = "Vanessa Sochat"
7
7
NAME = "singularity-hpc"
8
8
PACKAGE_URL = "https://github.com/singularityhub/singularity-hpc"
You can’t perform that action at this time.
0 commit comments