Skip to content

Commit

Permalink
changes to ensure data files are present in wheel
Browse files Browse the repository at this point in the history
Signed-off-by: aishwariyachakraborty <[email protected]>
  • Loading branch information
aishwariyachakraborty committed Oct 3, 2024
1 parent 3e3f632 commit 230c500
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,9 @@ markers = ["unit: unit tests", "integration: integration tests"]

[tool.coverage.run]
include = ["src/*"]

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-data]
'src' = ['template.html']
6 changes: 6 additions & 0 deletions transforms/code/semantic_profiler/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ markers = ["unit: unit tests", "integration: integration tests"]

[tool.coverage.run]
include = ["src/*"]

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-data]
'src' = ['*.csv']
2 changes: 1 addition & 1 deletion transforms/code/semantic_profiler/python/src/sp_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# create parameters
input_folder = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "test-data", "input"))

sp_params = {"ikb_file": "src/ikb/ikb_model.csv", "null_libs_file": "src/ikb/null_libs.csv"}
sp_params = {"ikb_file": "ikb/ikb_model.csv", "null_libs_file": "ikb/null_libs.csv"}

if __name__ == "__main__":
# Here we show how to run outside of the runtime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"runtime_job_id": "job_id",
"runtime_code_location": ParamsUtils.convert_to_ast(code_location),
# sp params
"sp_ikb_file": "src/ikb/ikb_model.csv",
"sp_null_libs_file": "src/ikb/null_libs.csv"
"sp_ikb_file": "ikb/ikb_model.csv",
"sp_null_libs_file": "ikb/null_libs.csv"

}
if __name__ == "__main__":
Expand Down

0 comments on commit 230c500

Please sign in to comment.