You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by em...@apache.org on 2025/06/16 18:12:20 UTC
(polaris) branch main updated: Python CI: pin mypy version to avoid CI failure due to new release (#1903)
This is an automated email from the ASF dual-hosted git repository.
emaynard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 5a188b284 Python CI: pin mypy version to avoid CI failure due to new release (#1903)
5a188b284 is described below
commit 5a188b284e11964c6032c49101d63aa7fe8879b8
Author: Honah (Jonas) J. <ho...@apache.org>
AuthorDate: Mon Jun 16 11:12:16 2025 -0700
Python CI: pin mypy version to avoid CI failure due to new release (#1903)
Mypy did a new release 1.16.1 and it cause our CI to fail for about 20 minutes due to missing wheel (upload not completed)
```
| Unable to find installation candidates for mypy (1.16.1)
|
| This is likely not a Poetry issue.
|
| - 14 candidate(s) were identified for the package
| - 14 wheel(s) were skipped as your project's environment does not support the identified abi tags
|
| Solutions:
| Make sure the lockfile is up-to-date. You can try one of the following;
|
| 1. Regenerate lockfile: poetry lock --no-cache --regenerate
| 2. Update package : poetry update --no-cache mypy
|
| If neither works, please first check to verify that the mypy has published wheels available from your configured source that are compatible with your environment- ie. operating system, architecture (x86_64, arm64 etc.), python interpreter.
|
```
This PR temporarily restrict the mypy version to avoid the similar issue.
We may consider bring poetry.lock back to git tracking so we won't automatically update test dependencies all the time
---
client/python/pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/python/pyproject.toml b/client/python/pyproject.toml
index f17134954..a5e20d97f 100644
--- a/client/python/pyproject.toml
+++ b/client/python/pyproject.toml
@@ -51,7 +51,7 @@ pytest-cov = ">= 2.8.1"
tox = ">= 3.9.0"
flake8 = ">= 4.0.0"
types-python-dateutil = ">= 2.8.19.14"
-mypy = ">= 1.5"
+mypy = ">= 1.5, <=1.16.1"
pyiceberg = "==0.9.1"
pre-commit = "==4.2.0"