Open joeflack4 opened 6 months ago
Migrate all Python code to mondolib.
In requirements.txt and requirements-unlocked.txt, there would be an entry for mondolib.
requirements.txt
requirements-unlocked.txt
mondolib
In Python files, if any do happen to continue to exist in mondo-ingest, would do:
mondo-ingest
from mondolib import my_func
In mondo-ingest.Makefile goals:
mondo-ingest.Makefile
my_output.tsv: mondolib MY_COMMAND VARIOUS_PARAMS --output-path $@
Making sure the package is installed: a. Add a pip-mondolib prereq to all the goals that need it, b. Do pip-mondolib at the start of build-mondo-ingest c. Do a pip install -r requirements.txt at start of build-mondo-ingest
pip-mondolib
build-mondo-ingest
pip install -r requirements.txt
Just a note, if and what to migrate into mondolib is still To Be Decided, but good to have this placeholder ticket.
Overview
Migrate all Python code to mondolib.
Implementation
Package management
In
requirements.txt
andrequirements-unlocked.txt
, there would be an entry formondolib
.Python
In Python files, if any do happen to continue to exist in
mondo-ingest
, would do:Makefile
In
mondo-ingest.Makefile
goals:Making sure the package is installed: a. Add a
pip-mondolib
prereq to all the goals that need it, b. Dopip-mondolib
at the start ofbuild-mondo-ingest
c. Do apip install -r requirements.txt
at start ofbuild-mondo-ingest