diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml deleted file mode 100644 index f79fd2281..000000000 --- a/.github/workflows/lint.yaml +++ /dev/null @@ -1,9 +0,0 @@ -name: "Lint" -on: [pull_request] - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: chartboost/ruff-action@v1 diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index e48aa2681..01e9941c4 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -8,39 +8,39 @@ on: workflow_dispatch: {} jobs: - unit-tests: - uses: './.github/workflows/testing-unit.yaml' - secrets: inherit - integration-tests: - uses: './.github/workflows/testing-integration.yaml' - secrets: inherit + # unit-tests: + # uses: './.github/workflows/testing-unit.yaml' + # secrets: inherit + # integration-tests: + # uses: './.github/workflows/testing-integration.yaml' + # secrets: inherit dependency-tests: uses: './.github/workflows/testing-dependency.yaml' secrets: inherit - package: - name: Check packaging - runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.8, 3.12] - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Setup Poetry - uses: ./.github/actions/setup-poetry - - name: Package - run: poetry build - - build-docs: - name: Build docs with pdoc - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Build docs with pdoc - uses: './.github/actions/build-docs' - with: - python-version: 3.11 \ No newline at end of file + # package: + # name: Check packaging + # runs-on: ubuntu-latest + # strategy: + # matrix: + # python-version: [3.8, 3.12] + # steps: + # - uses: actions/checkout@v4 + # - name: Set up Python ${{ matrix.python-version }} + # uses: actions/setup-python@v5 + # with: + # python-version: ${{ matrix.python-version }} + # - name: Setup Poetry + # uses: ./.github/actions/setup-poetry + # - name: Package + # run: poetry build + + # build-docs: + # name: Build docs with pdoc + # runs-on: ubuntu-latest + # steps: + # - name: Checkout + # uses: actions/checkout@v4 + # - name: Build docs with pdoc + # uses: './.github/actions/build-docs' + # with: + # python-version: 3.11 diff --git a/.github/workflows/testing-dependency.yaml b/.github/workflows/testing-dependency.yaml index 42396ccc2..dcb638ed3 100644 --- a/.github/workflows/testing-dependency.yaml +++ b/.github/workflows/testing-dependency.yaml @@ -36,38 +36,17 @@ jobs: fail-fast: false matrix: python_version: - - 3.8 - - 3.9 - - "3.10" + - "3.11" grpcio_version: - - 1.44.0 - # - 1.46.5 - # - 1.47.5 - # - 1.48.2 - # - 1.49.1 - - 1.50.0 - # - 1.51.3 - # - 1.53.2 - # - 1.54.3 - # - 1.55.3 - - 1.56.2 - # - 1.57.0 - # - 1.58.0 - # - 1.59.3 - - 1.60.0 + - 1.70.0 lz4_version: - - 3.1.3 - # - 3.1.10 - - 4.0.0 - # - 4.0.1 - # - 4.1.0 - - 4.3.3 + - 4.4.3 protobuf_version: - - 4.25.3 + - 5.29.3 protoc-gen-openapiv2: - 0.0.1 googleapis_common_protos_version: - - 1.62.0 + - 1.66.0 steps: - uses: actions/checkout@v4 - uses: ./.github/actions/test-dependency-grpc @@ -81,102 +60,12 @@ jobs: googleapis_common_protos_version: '${{ matrix.googleapis_common_protos_version }}' DD_TAGS: 'test.configuration.python:${{ matrix.python_version}},test.configuration.grpcio:${{ matrix.grpcio_version }},test.configuration.lz4:${{ matrix.lz4_version }},test.configuration.protobuf:${{ matrix.protobuf_version }},test.configuration.googleapis_common_protos:${{ matrix.googleapis_common_protos_version }}' - dependency-matrix-grpc-312: - name: Deps (GRPC) - needs: dependency-matrix-setup - runs-on: ubuntu-latest - strategy: - max-parallel: 10 - fail-fast: false - matrix: - python_version: - - 3.11 - - 3.12 - grpcio_version: - - 1.59.3 - - 1.60.0 - lz4_version: - - 3.1.3 - - 4.3.3 - protobuf_version: - - 4.25.3 - protoc-gen-openapiv2: - - 0.0.1 - googleapis_common_protos_version: - - 1.62.0 - steps: - - uses: actions/checkout@v4 - - uses: ./.github/actions/test-dependency-grpc - with: - python_version: '${{ matrix.python_version }}' - index_name: '${{ needs.dependency-matrix-setup.outputs.index_name }}' - PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}' - grpcio_version: '${{ matrix.grpcio_version }}' - lz4_version: '${{ matrix.lz4_version }}' - protobuf_version: '${{ matrix.protobuf_version }}' - googleapis_common_protos_version: '${{ matrix.googleapis_common_protos_version }}' - DD_TAGS: 'test.configuration.python:${{ matrix.python_version}},test.configuration.grpcio:${{ matrix.grpcio_version }},test.configuration.lz4:${{ matrix.lz4_version }},test.configuration.protobuf:${{ matrix.protobuf_version }},test.configuration.googleapis_common_protos:${{ matrix.googleapis_common_protos_version }}' - - dependency-matrix-rest: - name: Deps (REST) - runs-on: ubuntu-latest - needs: dependency-matrix-setup - strategy: - max-parallel: 10 - fail-fast: false - matrix: - python_version: - - 3.8 - - 3.11 - urllib3_version: - - 1.26.0 - - 1.26.18 - - 2.0.2 - - 2.2.1 - steps: - - uses: actions/checkout@v4 - - uses: ./.github/actions/test-dependency-rest - with: - python_version: '${{ matrix.python_version }}' - index_name: '${{ needs.dependency-matrix-setup.outputs.index_name }}' - PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}' - urllib3_version: '${{ matrix.urllib3_version }}' - DD_TAGS: 'test.configuration.python:${{ matrix.python_version}},test.configuration.urllib3:${{ matrix.urllib3_version }}' - - dependency-matrix-rest-312: - name: Deps (REST) - runs-on: ubuntu-latest - needs: dependency-matrix-setup - strategy: - max-parallel: 10 - fail-fast: false - matrix: - python_version: - - 3.12 - urllib3_version: - - 1.26.5 - - 1.26.18 - - 2.0.2 - - 2.2.1 - steps: - - uses: actions/checkout@v4 - - uses: ./.github/actions/test-dependency-rest - with: - python_version: '${{ matrix.python_version }}' - index_name: '${{ needs.dependency-matrix-setup.outputs.index_name }}' - PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}' - urllib3_version: '${{ matrix.urllib3_version }}' - DD_TAGS: 'test.configuration.python:${{ matrix.python_version}},test.configuration.urllib3:${{ matrix.urllib3_version }}' - deps-cleanup: name: Deps cleanup runs-on: ubuntu-latest needs: - dependency-matrix-setup - dependency-matrix-grpc - - dependency-matrix-grpc-312 - - dependency-matrix-rest - - dependency-matrix-rest-312 steps: - uses: actions/checkout@v4 - uses: ./.github/actions/delete-index diff --git a/poetry.lock b/poetry.lock index 71286f74f..a0ffa927c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,19 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. - -[[package]] -name = "astunparse" -version = "1.6.3" -description = "An AST unparser for Python" -optional = false -python-versions = "*" -files = [ - {file = "astunparse-1.6.3-py2.py3-none-any.whl", hash = "sha256:c2652417f2c8b5bb325c885ae329bdf3f86424075c4fd1a128674bc6fba4b8e8"}, - {file = "astunparse-1.6.3.tar.gz", hash = "sha256:5ad93a8456f0d084c3456d059fd9a92cce667963232cbf763eac3bc5b7940872"}, -] - -[package.dependencies] -six = ">=1.6.1,<2.0" -wheel = ">=0.23.0,<1.0" +# This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand. [[package]] name = "bytecode" @@ -738,43 +723,6 @@ files = [ {file = "nodeenv-1.9.1.tar.gz", hash = "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f"}, ] -[[package]] -name = "numpy" -version = "1.24.4" -description = "Fundamental package for array computing in Python" -optional = false -python-versions = ">=3.8" -files = [ - {file = "numpy-1.24.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0bfb52d2169d58c1cdb8cc1f16989101639b34c7d3ce60ed70b19c63eba0b64"}, - {file = "numpy-1.24.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ed094d4f0c177b1b8e7aa9cba7d6ceed51c0e569a5318ac0ca9a090680a6a1b1"}, - {file = "numpy-1.24.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:79fc682a374c4a8ed08b331bef9c5f582585d1048fa6d80bc6c35bc384eee9b4"}, - {file = "numpy-1.24.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7ffe43c74893dbf38c2b0a1f5428760a1a9c98285553c89e12d70a96a7f3a4d6"}, - {file = "numpy-1.24.4-cp310-cp310-win32.whl", hash = "sha256:4c21decb6ea94057331e111a5bed9a79d335658c27ce2adb580fb4d54f2ad9bc"}, - {file = "numpy-1.24.4-cp310-cp310-win_amd64.whl", hash = "sha256:b4bea75e47d9586d31e892a7401f76e909712a0fd510f58f5337bea9572c571e"}, - {file = "numpy-1.24.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f136bab9c2cfd8da131132c2cf6cc27331dd6fae65f95f69dcd4ae3c3639c810"}, - {file = "numpy-1.24.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e2926dac25b313635e4d6cf4dc4e51c8c0ebfed60b801c799ffc4c32bf3d1254"}, - {file = "numpy-1.24.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:222e40d0e2548690405b0b3c7b21d1169117391c2e82c378467ef9ab4c8f0da7"}, - {file = "numpy-1.24.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7215847ce88a85ce39baf9e89070cb860c98fdddacbaa6c0da3ffb31b3350bd5"}, - {file = "numpy-1.24.4-cp311-cp311-win32.whl", hash = "sha256:4979217d7de511a8d57f4b4b5b2b965f707768440c17cb70fbf254c4b225238d"}, - {file = "numpy-1.24.4-cp311-cp311-win_amd64.whl", hash = "sha256:b7b1fc9864d7d39e28f41d089bfd6353cb5f27ecd9905348c24187a768c79694"}, - {file = "numpy-1.24.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1452241c290f3e2a312c137a9999cdbf63f78864d63c79039bda65ee86943f61"}, - {file = "numpy-1.24.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:04640dab83f7c6c85abf9cd729c5b65f1ebd0ccf9de90b270cd61935eef0197f"}, - {file = "numpy-1.24.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5425b114831d1e77e4b5d812b69d11d962e104095a5b9c3b641a218abcc050e"}, - {file = "numpy-1.24.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dd80e219fd4c71fc3699fc1dadac5dcf4fd882bfc6f7ec53d30fa197b8ee22dc"}, - {file = "numpy-1.24.4-cp38-cp38-win32.whl", hash = "sha256:4602244f345453db537be5314d3983dbf5834a9701b7723ec28923e2889e0bb2"}, - {file = "numpy-1.24.4-cp38-cp38-win_amd64.whl", hash = "sha256:692f2e0f55794943c5bfff12b3f56f99af76f902fc47487bdfe97856de51a706"}, - {file = "numpy-1.24.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:2541312fbf09977f3b3ad449c4e5f4bb55d0dbf79226d7724211acc905049400"}, - {file = "numpy-1.24.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:9667575fb6d13c95f1b36aca12c5ee3356bf001b714fc354eb5465ce1609e62f"}, - {file = "numpy-1.24.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f3a86ed21e4f87050382c7bc96571755193c4c1392490744ac73d660e8f564a9"}, - {file = "numpy-1.24.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d11efb4dbecbdf22508d55e48d9c8384db795e1b7b51ea735289ff96613ff74d"}, - {file = "numpy-1.24.4-cp39-cp39-win32.whl", hash = "sha256:6620c0acd41dbcb368610bb2f4d83145674040025e5536954782467100aa8835"}, - {file = "numpy-1.24.4-cp39-cp39-win_amd64.whl", hash = "sha256:befe2bf740fd8373cf56149a5c23a0f601e82869598d41f8e188a0e9869926f8"}, - {file = "numpy-1.24.4-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:31f13e25b4e304632a4619d0e0777662c2ffea99fcae2029556b17d8ff958aef"}, - {file = "numpy-1.24.4-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:95f7ac6540e95bc440ad77f56e520da5bf877f87dca58bd095288dce8940532a"}, - {file = "numpy-1.24.4-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:e98f220aa76ca2a977fe435f5b04d7b3470c0a2e6312907b37ba6068f26787f2"}, - {file = "numpy-1.24.4.tar.gz", hash = "sha256:80f5e3a4e498641401868df4208b74581206afbee7cf7b8329daae82676d9463"}, -] - [[package]] name = "numpy" version = "1.26.3" @@ -913,20 +861,6 @@ sql-other = ["SQLAlchemy (>=1.4.16)"] test = ["hypothesis (>=6.34.2)", "pytest (>=7.3.2)", "pytest-asyncio (>=0.17.0)", "pytest-xdist (>=2.2.0)"] xml = ["lxml (>=4.6.3)"] -[[package]] -name = "pandas-stubs" -version = "1.5.3.230321" -description = "Type annotations for pandas" -optional = false -python-versions = ">=3.8,<3.12" -files = [ - {file = "pandas_stubs-1.5.3.230321-py3-none-any.whl", hash = "sha256:4bf36b3071dd55f0e558ac8efe07676a120f2ed89e7a3df0fb78ddf2733bf247"}, - {file = "pandas_stubs-1.5.3.230321.tar.gz", hash = "sha256:2fa860df9e6058e9f0d2c09bc711c09abb8f0516eee7f0b9f9950d29b835fc6f"}, -] - -[package.dependencies] -types-pytz = ">=2022.1.1" - [[package]] name = "pandas-stubs" version = "2.1.4.231227" @@ -954,7 +888,6 @@ files = [ ] [package.dependencies] -astunparse = {version = "*", markers = "python_version < \"3.9\""} Jinja2 = ">=2.11.0" MarkupSafe = "*" pygments = ">=2.12.0" @@ -1254,6 +1187,7 @@ files = [ {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, + {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"}, {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, @@ -1487,20 +1421,6 @@ platformdirs = ">=3.9.1,<5" docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.2,!=7.3)", "sphinx-argparse (>=0.4)", "sphinxcontrib-towncrier (>=0.2.1a0)", "towncrier (>=23.6)"] test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess (>=1)", "flaky (>=3.7)", "packaging (>=23.1)", "pytest (>=7.4)", "pytest-env (>=0.8.2)", "pytest-freezer (>=0.4.8)", "pytest-mock (>=3.11.1)", "pytest-randomly (>=3.12)", "pytest-timeout (>=2.1)", "setuptools (>=68)", "time-machine (>=2.10)"] -[[package]] -name = "wheel" -version = "0.42.0" -description = "A built-package format for Python" -optional = false -python-versions = ">=3.7" -files = [ - {file = "wheel-0.42.0-py3-none-any.whl", hash = "sha256:177f9c9b0d45c47873b619f5b650346d632cdc35fb5e4d25058e09c9e581433d"}, - {file = "wheel-0.42.0.tar.gz", hash = "sha256:c45be39f7882c9d34243236f2d63cbd58039e360f85d0913425fbd7ceea617a8"}, -] - -[package.extras] -test = ["pytest (>=6.0.0)", "setuptools (>=65)"] - [[package]] name = "wrapt" version = "1.16.0" @@ -1615,5 +1535,5 @@ grpc = ["googleapis-common-protos", "grpcio", "grpcio", "lz4", "protobuf", "prot [metadata] lock-version = "2.0" -python-versions = "^3.8" -content-hash = "811637922a10b2fc316973e2b317b0d3c92336fd009f50aea75f9354a935cefc" +python-versions = "^3.9" +content-hash = "c5f2741bc36e6a185aa15270b22e960602d6016ae7ecdd9034a1811b33a8a2c2" diff --git a/pyproject.toml b/pyproject.toml index d581b0f0e..f8b907984 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ classifiers=[ "Intended Audience :: Science/Research", "Intended Audience :: System Administrators", "Operating System :: OS Independent", - "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -32,10 +32,10 @@ classifiers=[ ] [tool.poetry.dependencies] -python = "^3.8" +python = "^3.9" typing-extensions = ">=3.7.4" urllib3 = [ - { version = ">=1.26.0", python = ">=3.8,<3.12" }, + { version = ">=1.26.0", python = ">=3.9,<3.12" }, { version = ">=1.26.5", python = "^3.12" } ] tqdm = ">=4.64.1" @@ -44,7 +44,7 @@ tqdm = ">=4.64.1" # compatibility with libraries that may pin version. certifi = ">=2019.11.17" grpcio = [ - { version = ">=1.44.0", optional = true, python = "^3.8,<3.11" }, + { version = ">=1.44.0", optional = true, python = "^3.9,<3.11" }, { version = ">=1.59.0", optional = true, python = "^3.11" } ] googleapis-common-protos = { version = ">=1.53.0", optional = true } @@ -64,7 +64,6 @@ types-urllib3 = "^1.26.25.14" grpc-stubs = "^1.53.0.3" pandas-stubs = [ {version = "^2.1.1.230928", python = ">=3.9"}, - {version = "^1.5.3.230321", python = ">=3.8,<3.9"} ] types-tqdm = "^4.66.0.3" types-protobuf = "^4.24.0.4" @@ -72,8 +71,7 @@ types-protobuf = "^4.24.0.4" [tool.poetry.group.dev.dependencies] pre-commit = "^3.0.0" numpy = [ - { version = ">=1.22", python = ">=3.9" }, - { version = ">=1.21", python = ">=3.8,<3.9" }, + { version = ">=1.22", python = ">=3.9" } ] pandas = ">=1.3.5" pdoc = "^14.1.0" diff --git a/tests/dependency/grpc/test_sanity.py b/tests/dependency/grpc/test_sanity.py index 163f4c161..76c159fb7 100644 --- a/tests/dependency/grpc/test_sanity.py +++ b/tests/dependency/grpc/test_sanity.py @@ -28,6 +28,9 @@ def test_sanity(self, index_name, client): assert description.dimension == 2 idx = client.Index(index_name) + idx.describe_index_stats() + + # Upsert some data idx.upsert(vectors=[("1", [1.0, 2.0]), ("2", [3.0, 4.0]), ("3", [5.0, 6.0])]) # Wait for index freshness