Skip to content

Commit

Permalink
Fixed Makefile to always include TOML files. (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmbeddedDevops1 authored Nov 19, 2024
1 parent e71d3ee commit 35e0c50
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Makefile
SITE_PACKAGES=$(shell python -c "import wandb, os; print(os.path.dirname(wandb.__file__))")
TOML_FILES=$(shell find cover_agent/settings -name "*.toml" | sed 's/.*/-\-add-data "&:."/' | tr '\n' ' ')

.PHONY: test build installer

Expand All @@ -19,13 +20,7 @@ build:
installer:
poetry run pyinstaller \
--add-data "cover_agent/version.txt:." \
--add-data "cover_agent/settings/analyze_suite_test_headers_indentation.toml:." \
--add-data "cover_agent/settings/analyze_suite_test_insert_line.toml:." \
--add-data "cover_agent/settings/analyze_test_against_context.toml:." \
--add-data "cover_agent/settings/analyze_test_run_failure.toml:." \
--add-data "cover_agent/settings/configuration.toml:." \
--add-data "cover_agent/settings/language_extensions.toml:." \
--add-data "cover_agent/settings/test_generation_prompt.toml:." \
$(TOML_FILES) \
--add-data "$(SITE_PACKAGES)/vendor:wandb/vendor" \
--hidden-import=tiktoken_ext.openai_public \
--hidden-import=tiktoken_ext \
Expand Down

0 comments on commit 35e0c50

Please sign in to comment.