Skip to content

Commit 8490715

Browse files
Merge branch 'master' into feat/modular-sqfs
2 parents a51de61 + 42bfc9c commit 8490715

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ line-length = 120
88
[tool.isort]
99
profile = "black"
1010
skip = ["external/"]
11+
12+
[tool.ruff]
13+
line-length = 120
14+
extend-exclude = ["external/", "unittests/recipes"]

stackinator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22
import re
33

4-
VERSION = "4.1.0-dev"
4+
VERSION = "5.0.0"
55
root_logger = logging.getLogger("stackinator")
66

77
stackinator_version_info = tuple(re.split(r"\.|-", VERSION))

stackinator/recipe.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ def __init__(self, args):
5656
if args.mount:
5757
self.config["store"] = args.mount
5858

59-
# # ensure that the requested mount point exists
60-
# if not self.mount.is_dir():
61-
# raise FileNotFoundError(f"the mount point '{self.mount}' must exist")
59+
# ensure that the requested mount point exists
60+
if not self.mount.is_dir():
61+
raise FileNotFoundError(f"the mount point '{self.mount}' must exist")
6262

6363
# required environments.yaml file
6464
environments_path = self.path / "environments.yaml"
6565
self._logger.debug(f"opening {environments_path}")
6666
if not environments_path.is_file():
67-
raise FileNotFoundError(f"The recipe path '{environments_path}' does " f" not contain environments.yaml")
67+
raise FileNotFoundError(f"The recipe path '{environments_path}' does not contain environments.yaml")
6868

6969
with environments_path.open() as fid:
7070
raw = yaml.load(fid, Loader=yaml.Loader)
@@ -111,7 +111,7 @@ def __init__(self, args):
111111
mirrors_path = self.path / "mirrors.yaml"
112112
if mirrors_path.is_file():
113113
self._logger.warning(
114-
"mirrors.yaml have been removed from recipes," " use the --cache option on stack-config instead."
114+
"mirrors.yaml have been removed from recipes, use the --cache option on stack-config instead."
115115
)
116116
raise RuntimeError("Unsupported mirrors.yaml file in recipe.")
117117

@@ -209,7 +209,7 @@ def config(self):
209209
def config(self, config_path):
210210
self._logger.debug(f"opening {config_path}")
211211
if not config_path.is_file():
212-
raise FileNotFoundError(f"The recipe path '{config_path}' does not contain compilers.yaml")
212+
raise FileNotFoundError(f"The recipe path '{config_path}' does not contain config.yaml")
213213

214214
with config_path.open() as fid:
215215
raw = yaml.load(fid, Loader=yaml.Loader)
@@ -387,7 +387,7 @@ def generate_environment_specs(self, raw):
387387
environments[name]["view"] = None
388388
for i in range(numviews):
389389
# pick a name for the environment
390-
cname = name if i == 0 else name + f"-{i+1}__"
390+
cname = name if i == 0 else name + f"-{i + 1}__"
391391
if i > 0:
392392
environments[cname] = copy.deepcopy(base)
393393

stackinator/templates/compilers.gcc.spack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ spack:
1212
reuse: false
1313
packages:
1414
gcc:
15-
variants: [build_type=Release +strip]
15+
variants: [build_type=Release +bootstrap +strip]
1616
mpc:
1717
variants: [libs=static]
1818
gmp:

stackinator/templates/stack-debug.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)