From e725832cd8390d659b9c3890b96d0a0ae2ec6c42 Mon Sep 17 00:00:00 2001 From: yuneng-jiang Date: Thu, 1 Oct 2026 11:53:54 -0700 Subject: [PATCH] chore(deps): drop unused pytest-postgresql dev dependency (#44056) The pytest-postgresql based proxy tests moved to tests/integration on the real Postgres harness in #43996, so nothing loads the plugin anymore. uv.lock is edited by hand to drop the package and its now orphaned mirakuru and port-for deps; uv lock --check passes and a full relock resolves the same package set --- CONTRIBUTING.md | 2 +- pyproject.toml | 4 --- tests/code_coverage_tests/liccheck.ini | 1 - uv.lock | 39 -------------------------- 4 files changed, 1 insertion(+), 45 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 28538472a3f..0af12bd5318 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -136,7 +136,7 @@ If you're running broader test suites, proxy tests, or anything that touches Pos make install-test-deps ``` -This syncs the locked test environment used across the repo, including `psycopg` v3 plus `psycopg-binary` (used by `pytest-postgresql`), `psycopg2-binary` (used by some proxy E2E tests), and a generated Prisma client for DB-backed proxy tests, so pytest startup matches CI without manual package installs. +This syncs the locked test environment used across the repo, including `psycopg` v3 plus `psycopg-binary`, `psycopg2-binary` (used by some proxy E2E tests), and a generated Prisma client for DB-backed proxy tests, so pytest startup matches CI without manual package installs. ### Running Linting and Formatting Checks diff --git a/pyproject.toml b/pyproject.toml index 95523f9500a..2c5be546a65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -205,10 +205,6 @@ dev = [ "tomli==2.4.1; python_version < '3.11'", "pytest-mock==3.15.1", "pytest-asyncio==1.3.0", - "pytest-postgresql==7.0.2", - # pytest-postgresql imports psycopg v3 during pytest startup. Keep the base - # package and the binary wheel in the default dev environment so local - # pytest works without requiring a system libpq install. "psycopg==3.3.3", "psycopg-binary==3.3.3", "pytest-xdist==3.8.0", diff --git a/tests/code_coverage_tests/liccheck.ini b/tests/code_coverage_tests/liccheck.ini index 8a3e880043b..70c49c5c256 100644 --- a/tests/code_coverage_tests/liccheck.ini +++ b/tests/code_coverage_tests/liccheck.ini @@ -154,7 +154,6 @@ pypdf: >=6.6.2 # BSD-3-Clause license - https://github.com/py-pdf/pypdf/blob/mai hf-xet: >=1.4.2 # Apache 2.0 License - https://github.com/huggingface/xet-tools/blob/main/LICENSE pytest-asyncio: >=1.2.0 # Apache 2.0 license pytest: >=9.0.3 # MIT license -pytest-postgresql: >=7.0.2 # LGPLv3+ license pytest-xdist: >=3.8.0 # MIT License ruff: >=0.15.3 # MIT License types-requests: >=2.32.4.20260107 # Apache 2.0 license (typeshed) diff --git a/uv.lock b/uv.lock index 2a052a1408c..c95a01de298 100644 --- a/uv.lock +++ b/uv.lock @@ -4702,7 +4702,6 @@ dev = [ { name = "pytest-asyncio" }, { name = "pytest-cov" }, { name = "pytest-mock" }, - { name = "pytest-postgresql" }, { name = "pytest-recording" }, { name = "pytest-rerunfailures" }, { name = "pytest-socket" }, @@ -4916,7 +4915,6 @@ dev = [ { name = "pytest-asyncio", specifier = "==1.3.0" }, { name = "pytest-cov", specifier = "==5.0.0" }, { name = "pytest-mock", specifier = "==3.15.1" }, - { name = "pytest-postgresql", specifier = "==7.0.2" }, { name = "pytest-recording", specifier = "==0.13.4" }, { name = "pytest-rerunfailures", specifier = "==15.1" }, { name = "pytest-socket", specifier = "==0.8.1" }, @@ -5472,18 +5470,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" }, ] -[[package]] -name = "mirakuru" -version = "3.0.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "psutil", marker = "sys_platform != 'cygwin'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/53/23/db9034ba28c7d89a540ffb8ca789f70dc12079108ece1cd1762295d5c807/mirakuru-3.0.2.tar.gz", hash = "sha256:21192186a8680ea7567ca68170261df3785768b12962dd19fe8cccab15ad3441", size = 29338, upload-time = "2026-02-11T19:41:15.42Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/49/5f/a3f1a7f1f6e55de9285b03ae7e0d3c2a15e044b6e3f9b53bef5609ca05f2/mirakuru-3.0.2-py3-none-any.whl", hash = "sha256:10e5dac4a8f26872c63e9cdfdc01b775aaa2beb3ced98abc497279d2dc525b8f", size = 27583, upload-time = "2026-02-11T19:41:13.578Z" }, -] - [[package]] name = "ml-dtypes" version = "0.4.1" @@ -7175,15 +7161,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/bf/18/72c216f4ab0c82b907009668f79183ae029116ff0dd245d56ef58aac48e7/polars_runtime_32-1.38.1-cp310-abi3-win_arm64.whl", hash = "sha256:6d07d0cc832bfe4fb54b6e04218c2c27afcfa6b9498f9f6bbf262a00d58cc7c4", size = 41639413, upload-time = "2026-02-06T18:12:22.044Z" }, ] -[[package]] -name = "port-for" -version = "1.0.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/88/a0/80a64e8cc096c7a9d0f546a28994af849b4775afc5e4ee44bf2739a55115/port_for-1.0.0.tar.gz", hash = "sha256:404d161b1b2c82e2f6b31d8646396b4847d02bf5ee10068c92b7263657a14582", size = 21681, upload-time = "2025-09-30T10:22:51.149Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/70/2c/b1faca65b9728b4ac43f0bee4bb9e7294bd0a62cc2ee59fd59403bf575f6/port_for-1.0.0-py3-none-any.whl", hash = "sha256:35a848b98cf4cc075fe80dc49ae5c3a78e3ca345a23bd39bf5252277b4eef5c2", size = 17544, upload-time = "2025-09-30T10:22:49.878Z" }, -] - [[package]] name = "posthog" version = "3.25.0" @@ -8063,22 +8040,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/5a/cc/06253936f4a7fa2e0f48dfe6d851d9c56df896a9ab09ac019d70b760619c/pytest_mock-3.15.1-py3-none-any.whl", hash = "sha256:0a25e2eb88fe5168d535041d09a4529a188176ae608a6d249ee65abc0949630d", size = 10095, upload-time = "2025-09-16T16:37:25.734Z" }, ] -[[package]] -name = "pytest-postgresql" -version = "7.0.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "mirakuru" }, - { name = "packaging" }, - { name = "port-for" }, - { name = "psycopg" }, - { name = "pytest" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/18/15/b3c07d1537c7608c3f45d3ee6f778a56b1daa480221bb500abc9e44e01a0/pytest_postgresql-7.0.2.tar.gz", hash = "sha256:57c8d3f7d4e91d0ea8b2eac786d04f60080fa6ed6e66f1f94d747c71c9e5a4f4", size = 50691, upload-time = "2025-05-17T20:17:59.227Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/18/57/f2db5a80b10c3ac48ce41786cb9b14172f997509ee1b1055ab7db4238e5e/pytest_postgresql-7.0.2-py3-none-any.whl", hash = "sha256:0b0d31c51620a9c1d6be93286af354256bc58a47c379f56f4147b22da6e81fb5", size = 41447, upload-time = "2025-05-17T20:17:58.011Z" }, -] - [[package]] name = "pytest-recording" version = "0.13.4"