File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ TEMP_FILE := $(shell mktemp)
77# Directory in which to build the Fortran when using a standalone build
88BUILD_DIR := build
99
10- JUNK := $(shell uv run --no-sync python -c 'from pathlib import Path; import example_fgen_basic; print(Path(example_fgen_basic.__file__) .parent)'); \
1110# A helper script to get short descriptions of each target in the Makefile
1211define PRINT_HELP_PYSCRIPT
1312import re, sys
@@ -52,6 +51,7 @@ test: ## run the tests (re-installs the package every time so you might want to
5251 # We don't have a solution to this yet.
5352 #
5453 # Coverage directory - needed to trick code cov to looking at the right place
54+ uv run --no-sync python -c ' from pathlib import Path; import example_fgen_basic' || ( echo " Run make virtual-environment first" && false )
5555 COV_DIR=$$(uv run --no-sync python -c 'from pathlib import Path; import example_fgen_basic; print(Path(example_fgen_basic.__file__ ) .parent)' ); \
5656 uv run --no-editable --reinstall-package example-fgen-basic pytest -r a -v tests src --doctest-modules --doctest-report ndiff --cov=$$ COV_DIR
5757
Original file line number Diff line number Diff line change 1+ Fix up logic for failing ` make test ` if the environment isn't set up properly (merged #17 too quickly)
You can’t perform that action at this time.
0 commit comments