From 31c1e43a87eccb2414ddc54a6519376b97f44202 Mon Sep 17 00:00:00 2001 From: anakin87 Date: Wed, 6 Dec 2023 13:00:09 +0100 Subject: [PATCH] adapt to new strucure --- .../{document_stores_pinecone.yml => pinecone.yml} | 10 +++++----- {document_stores => integrations}/pinecone/README.md | 0 .../pinecone/pyproject.toml | 0 .../pinecone/src/pinecone_haystack/__about__.py | 0 .../pinecone/src/pinecone_haystack/__init__.py | 0 .../pinecone/src/pinecone_haystack/document_store.py | 0 .../pinecone/src/pinecone_haystack/errors.py | 0 .../pinecone/src/pinecone_haystack/filter_utils.py | 0 .../pinecone/src/pinecone_haystack/retriever.py | 0 .../pinecone/tests/__init__.py | 0 .../pinecone/tests/pinecone_mock.py | 0 .../pinecone/tests/test_pinecone_document_store.py | 0 .../pinecone/tests/test_retriever.py | 0 13 files changed, 5 insertions(+), 5 deletions(-) rename .github/workflows/{document_stores_pinecone.yml => pinecone.yml} (82%) rename {document_stores => integrations}/pinecone/README.md (100%) rename {document_stores => integrations}/pinecone/pyproject.toml (100%) rename {document_stores => integrations}/pinecone/src/pinecone_haystack/__about__.py (100%) rename {document_stores => integrations}/pinecone/src/pinecone_haystack/__init__.py (100%) rename {document_stores => integrations}/pinecone/src/pinecone_haystack/document_store.py (100%) rename {document_stores => integrations}/pinecone/src/pinecone_haystack/errors.py (100%) rename {document_stores => integrations}/pinecone/src/pinecone_haystack/filter_utils.py (100%) rename {document_stores => integrations}/pinecone/src/pinecone_haystack/retriever.py (100%) rename {document_stores => integrations}/pinecone/tests/__init__.py (100%) rename {document_stores => integrations}/pinecone/tests/pinecone_mock.py (100%) rename {document_stores => integrations}/pinecone/tests/test_pinecone_document_store.py (100%) rename {document_stores => integrations}/pinecone/tests/test_retriever.py (100%) diff --git a/.github/workflows/document_stores_pinecone.yml b/.github/workflows/pinecone.yml similarity index 82% rename from .github/workflows/document_stores_pinecone.yml rename to .github/workflows/pinecone.yml index 14202474f..78eb27937 100644 --- a/.github/workflows/document_stores_pinecone.yml +++ b/.github/workflows/pinecone.yml @@ -1,17 +1,17 @@ # This workflow comes from https://github.com/ofek/hatch-mypyc # https://github.com/ofek/hatch-mypyc/blob/5a198c0ba8660494d02716cfc9d79ce4adfb1442/.github/workflows/test.yml -name: Test / Document Stores / pinecone +name: Test / pinecone on: schedule: - cron: "0 0 * * *" pull_request: paths: - - "document_stores/pinecone/**" + - "integrations/pinecone/**" - ".github/workflows/pinecone.yml" concurrency: - group: document_stores_pinecone-${{ github.head_ref }} + group: pinecone-${{ github.head_ref }} cancel-in-progress: true env: @@ -40,10 +40,10 @@ jobs: run: pip install --upgrade hatch - name: Lint - working-directory: document_stores/pinecone + working-directory: pinecone if: matrix.python-version == '3.9' run: hatch run lint:all - name: Run tests - working-directory: document_stores/pinecone + working-directory: pinecone run: hatch run cov diff --git a/document_stores/pinecone/README.md b/integrations/pinecone/README.md similarity index 100% rename from document_stores/pinecone/README.md rename to integrations/pinecone/README.md diff --git a/document_stores/pinecone/pyproject.toml b/integrations/pinecone/pyproject.toml similarity index 100% rename from document_stores/pinecone/pyproject.toml rename to integrations/pinecone/pyproject.toml diff --git a/document_stores/pinecone/src/pinecone_haystack/__about__.py b/integrations/pinecone/src/pinecone_haystack/__about__.py similarity index 100% rename from document_stores/pinecone/src/pinecone_haystack/__about__.py rename to integrations/pinecone/src/pinecone_haystack/__about__.py diff --git a/document_stores/pinecone/src/pinecone_haystack/__init__.py b/integrations/pinecone/src/pinecone_haystack/__init__.py similarity index 100% rename from document_stores/pinecone/src/pinecone_haystack/__init__.py rename to integrations/pinecone/src/pinecone_haystack/__init__.py diff --git a/document_stores/pinecone/src/pinecone_haystack/document_store.py b/integrations/pinecone/src/pinecone_haystack/document_store.py similarity index 100% rename from document_stores/pinecone/src/pinecone_haystack/document_store.py rename to integrations/pinecone/src/pinecone_haystack/document_store.py diff --git a/document_stores/pinecone/src/pinecone_haystack/errors.py b/integrations/pinecone/src/pinecone_haystack/errors.py similarity index 100% rename from document_stores/pinecone/src/pinecone_haystack/errors.py rename to integrations/pinecone/src/pinecone_haystack/errors.py diff --git a/document_stores/pinecone/src/pinecone_haystack/filter_utils.py b/integrations/pinecone/src/pinecone_haystack/filter_utils.py similarity index 100% rename from document_stores/pinecone/src/pinecone_haystack/filter_utils.py rename to integrations/pinecone/src/pinecone_haystack/filter_utils.py diff --git a/document_stores/pinecone/src/pinecone_haystack/retriever.py b/integrations/pinecone/src/pinecone_haystack/retriever.py similarity index 100% rename from document_stores/pinecone/src/pinecone_haystack/retriever.py rename to integrations/pinecone/src/pinecone_haystack/retriever.py diff --git a/document_stores/pinecone/tests/__init__.py b/integrations/pinecone/tests/__init__.py similarity index 100% rename from document_stores/pinecone/tests/__init__.py rename to integrations/pinecone/tests/__init__.py diff --git a/document_stores/pinecone/tests/pinecone_mock.py b/integrations/pinecone/tests/pinecone_mock.py similarity index 100% rename from document_stores/pinecone/tests/pinecone_mock.py rename to integrations/pinecone/tests/pinecone_mock.py diff --git a/document_stores/pinecone/tests/test_pinecone_document_store.py b/integrations/pinecone/tests/test_pinecone_document_store.py similarity index 100% rename from document_stores/pinecone/tests/test_pinecone_document_store.py rename to integrations/pinecone/tests/test_pinecone_document_store.py diff --git a/document_stores/pinecone/tests/test_retriever.py b/integrations/pinecone/tests/test_retriever.py similarity index 100% rename from document_stores/pinecone/tests/test_retriever.py rename to integrations/pinecone/tests/test_retriever.py