From e648a5b6f2043506ecd2e9ab0bbb48bb354ea63f Mon Sep 17 00:00:00 2001 From: Anuradha Karuppiah Date: Sat, 19 Oct 2024 16:24:54 -0700 Subject: [PATCH] Include requirements files in the morpheus packages (#1957) pip dependencies are included as a part of the package - morpheus/requirements_morpheus_core.txt morpheus_dfp/requirements_morpheus_dfp.txt morpheus_llm/requirements_morpheus_llm.txt And can be installed as needed. For example - ``` import importlib.resources import subprocess requirements_file = importlib.resources.path("morpheus_llm", "requirements_morpheus_llm.txt") subprocess.call(f"pip install -r {requirements_file}".split()) ``` Authors: - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah) Approvers: - Michael Demoret (https://github.com/mdemoret-nv) URL: https://github.com/nv-morpheus/Morpheus/pull/1957 --- .../morpheus-libs/morpheus_core_test.sh | 12 +++--- .../morpheus-libs/morpheus_dfp_test.sh | 12 +++--- .../morpheus-libs/morpheus_llm_test.sh | 13 +++--- dependencies.yaml | 43 ++++++++++--------- python/morpheus/CMakeLists.txt | 3 ++ python/morpheus/MANIFEST.in | 1 + .../morpheus/requirements_morpheus_core.txt | 4 ++ python/morpheus_dfp/CMakeLists.txt | 3 ++ python/morpheus_dfp/MANIFEST.in | 1 + .../requirements_morpheus_dfp.txt | 4 ++ python/morpheus_llm/CMakeLists.txt | 3 ++ python/morpheus_llm/MANIFEST.in | 1 + .../requirements_morpheus_llm.txt | 11 +++++ 13 files changed, 73 insertions(+), 38 deletions(-) create mode 100644 python/morpheus/morpheus/requirements_morpheus_core.txt create mode 100644 python/morpheus_dfp/morpheus_dfp/requirements_morpheus_dfp.txt create mode 100644 python/morpheus_llm/morpheus_llm/requirements_morpheus_llm.txt diff --git a/ci/conda/recipes/morpheus-libs/morpheus_core_test.sh b/ci/conda/recipes/morpheus-libs/morpheus_core_test.sh index d7379cda4c..24a29f161f 100644 --- a/ci/conda/recipes/morpheus-libs/morpheus_core_test.sh +++ b/ci/conda/recipes/morpheus-libs/morpheus_core_test.sh @@ -13,11 +13,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -# morpheus tests are dependent on some pypi packages -rapids-dependency-file-generator \ - --output requirements \ - --file-key morpheus_core --matrix "" | tee "core_requirements.txt" - -pip install -r core_requirements.txt +python3 <