Skip to content

Commit 7faa0fb

Browse files
authored
replace bootstrap and external package path with... uv! (eth-cscs#222)
1 parent 1cb6e45 commit 7faa0fb

File tree

3 files changed

+21
-29
lines changed

3 files changed

+21
-29
lines changed

bin/stack-config

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
#!/usr/bin/env python3
2-
1+
#!/usr/bin/env -S uv run --script
2+
# /// script
3+
# requires-python = ">=3.12"
4+
# dependencies = [
5+
# "jinja2",
6+
# "jsonschema",
7+
# "pyYAML",
8+
# ]
9+
# ///
310

411
import pathlib
512
import sys
613

714
prefix = pathlib.Path(__file__).parent.parent.resolve()
8-
external = prefix / 'external'
9-
sys.path = [prefix.as_posix(), external.as_posix()] + sys.path
15+
sys.path = [prefix.as_posix()] + sys.path
1016

1117
from stackinator.main import main
1218

bootstrap.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

test_stackinator.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env -S uv run --script
2+
# /// script
3+
# requires-python = ">=3.12"
4+
# dependencies = [
5+
# "jinja2",
6+
# "jsonschema",
7+
# "pytest",
8+
# "pyYAML",
9+
# ]
10+
# ///
211

312
import pathlib
413
import sys
514

615
prefix = pathlib.Path(__file__).parent.resolve()
7-
external = prefix / "external"
8-
sys.path = [prefix.as_posix(), external.as_posix()] + sys.path
16+
sys.path = [prefix.as_posix()] + sys.path
917

1018
import pytest # noqa: E402
1119

0 commit comments

Comments
 (0)