From 142b46e3d5ec1cd04461ecf261d3ea4f81ee6a70 Mon Sep 17 00:00:00 2001 From: Konstantin Krestnikov Date: Fri, 4 Oct 2024 18:38:09 +0300 Subject: [PATCH] Remove core from CI --- .github/scripts/check_diff.py | 6 ------ .github/workflows/_test_doc_imports.yml | 2 +- docs/api_reference/create_api_rst.py | 3 +-- docs/docs/contributing/code/setup.mdx | 8 -------- libs/langchain/dev.Dockerfile | 3 --- 5 files changed, 2 insertions(+), 20 deletions(-) diff --git a/.github/scripts/check_diff.py b/.github/scripts/check_diff.py index a5d0e5fc82d55..e81209b7f8b88 100644 --- a/.github/scripts/check_diff.py +++ b/.github/scripts/check_diff.py @@ -9,7 +9,6 @@ LANGCHAIN_DIRS = [ - "libs/core", "libs/langchain", "libs/community", "libs/experimental", @@ -98,11 +97,6 @@ def add_dependents(dirs_to_eval: Set[str], dependents: dict) -> List[str]: def _get_configs_for_single_dir(job: str, dir_: str) -> List[Dict[str, str]]: - if dir_ == "libs/core": - return [ - {"working-directory": dir_, "python-version": f"3.{v}"} - for v in range(8, 13) - ] min_python = "3.8" max_python = "3.12" diff --git a/.github/workflows/_test_doc_imports.yml b/.github/workflows/_test_doc_imports.yml index 4166b2c2d6335..790202dce2a7f 100644 --- a/.github/workflows/_test_doc_imports.yml +++ b/.github/workflows/_test_doc_imports.yml @@ -31,7 +31,7 @@ jobs: - name: Install langchain editable run: | - poetry run pip install -e libs/core libs/langchain libs/community libs/experimental + poetry run pip install -e libs/langchain libs/community libs/experimental - name: Check doc imports shell: bash diff --git a/docs/api_reference/create_api_rst.py b/docs/api_reference/create_api_rst.py index bb67e0bcd007a..a40495f61bc99 100644 --- a/docs/api_reference/create_api_rst.py +++ b/docs/api_reference/create_api_rst.py @@ -492,7 +492,6 @@ def _package_dir(package_name: str = "langchain") -> Path: "langchain", "experimental", "community", - "core", "cli", "text-splitters", ): @@ -534,7 +533,7 @@ def _build_index(dirs: List[str]) -> None: "aws": "AWS", "ai21": "AI21", } - ordered = ["core", "langchain", "text-splitters", "community", "experimental"] + ordered = ["langchain", "text-splitters", "community", "experimental"] main_ = [dir_ for dir_ in ordered if dir_ in dirs] integrations = sorted(dir_ for dir_ in dirs if dir_ not in main_) doc = """# LangChain Python API Reference diff --git a/docs/docs/contributing/code/setup.mdx b/docs/docs/contributing/code/setup.mdx index cc756ddc8471a..a03ab8c98a5ac 100644 --- a/docs/docs/contributing/code/setup.mdx +++ b/docs/docs/contributing/code/setup.mdx @@ -77,14 +77,6 @@ There are also [integration tests and code-coverage](/docs/contributing/testing/ If you are only developing `langchain_core` or `langchain_experimental`, you can simply install the dependencies for the respective projects and run tests: -```bash -cd libs/core -poetry install --with test -make test -``` - -Or: - ```bash cd libs/experimental poetry install --with test diff --git a/libs/langchain/dev.Dockerfile b/libs/langchain/dev.Dockerfile index a6720fef13e03..721902bbb3d8a 100644 --- a/libs/langchain/dev.Dockerfile +++ b/libs/langchain/dev.Dockerfile @@ -44,9 +44,6 @@ COPY libs/langchain/pyproject.toml libs/langchain/poetry.toml libs/langchain/poe # Copy the langchain library for installation COPY libs/langchain/ libs/langchain/ -# Copy the core library for installation -COPY libs/core ../core - # Copy the community library for installation COPY libs/community/ ../community/