Skip to content

Commit

Permalink
Exclude unused package components from metricflow build
Browse files Browse the repository at this point in the history
The MetricFlow build was taking up 1.5-3 MB on disk, a large
part of which was the test package. Confusingly, the MetricFlow
build also included the contents of dbt-metricflow, which is
meant to be a separate distribution wrapper for MetricFlow itself,
so that's odd.

This commit cleans up the exclude list to be more appropriate to
MetricFlow's repository structure, and finishes the job of reducing
the size of the MetricFlow distribution packages by a factor of 4.

Most of the work was handled incidentally by moving the tests under
the repository root tests directory, which happened to be in the
exclude list already.
  • Loading branch information
tlento committed Mar 21, 2024
1 parent 958a325 commit 7ff6846
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/unreleased/Under the Hood-20240320-172307.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Under the Hood
body: Clean up files included in MetricFlow package distribution
time: 2024-03-20T17:23:07.114845-07:00
custom:
Author: tlento
Issue: "1092"
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ exclude = [
".gitignore",
".pre-commit-config.yaml",
"CONTRIBUTING.md",
"MAKEFILE",
"Makefile",
"/dbt-metricflow",
"/local-data-warehouses",
"/scripts",
"/tests",
]

Expand Down

0 comments on commit 7ff6846

Please sign in to comment.