Skip to content

Commit 1143f13

Browse files
chore(Python): Add target to only transpile test code (#589)
1 parent e0caa14 commit 1143f13

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

SmithyDafnyMakefile.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,14 @@ transpile_python: $(if $(ENABLE_EXTERN_PROCESSING), _no_extern_pre_transpile, )
637637
transpile_python: | transpile_dependencies_python transpile_implementation_python transpile_test_python
638638
transpile_python: $(if $(ENABLE_EXTERN_PROCESSING), _no_extern_post_transpile, )
639639

640+
# This target should ONLY be used if you KNOW .dtr files are present.
641+
# This file will NOT transpile source code or source code dependencies,
642+
# so it will not re-generaate .dtr files.
643+
# The intended use case is to generate tests in release scripts without re-transpiling source code.
644+
transpile_only_test_python: $(if $(ENABLE_EXTERN_PROCESSING), _no_extern_pre_transpile, )
645+
transpile_only_test_python: transpile_test_python
646+
transpile_only_test_python: $(if $(ENABLE_EXTERN_PROCESSING), _no_extern_post_transpile, )
647+
640648
transpile_implementation_python: DAFNY_OPTIONS=--allow-warnings --include-test-runner
641649
transpile_implementation_python: TARGET=py
642650
transpile_implementation_python: OUT=runtimes/python/dafny_src

0 commit comments

Comments
 (0)