fix: switch to python-discovery#2196
Conversation
|
the test failiures appear to be unrelated to the changes in the PR |
cjames23
left a comment
There was a problem hiding this comment.
LGTM! Thanks for jumping on this!
|
np! btw, no idea why the “Allow edits and access to secrets by maintainers” was off, I actually really prefer when maintainers can edit my forks. |
|
Any chance we can get a rapid one-off release for this? It has broken a lot of CI pipelines, and it would be much easier if there was a release to resolve this, instead of having to pin a version of virtualenv in all projects using hatch. |
| finally: | ||
| virtualenv_discovery.propose_interpreters = propose_interpreters | ||
| python_info = python_discovery.get_interpreter( | ||
| python_version, (), env=self.get_interpreter_resolver_env(), predicate=self._interpreter_is_compatible |
There was a problem hiding this comment.
Thanks to @gaborbernat’s super fast response!
Sometimes all you have to do is ask. If you can think of any other monkey patching done in the code base, maybe it’s a good time to ask the relevant projects to add these respective features?
The lint-and-check CI job fails because virtualenv 21.0.0 removed the propose_interpreters API that hatch 1.14.2 relies on. Hatch 1.16.5 (pypa/hatch#2196) fixes this by switching to the python-discovery package. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Add test for show() k parameter to verify per-series row limiting Adds test_show_k_2 which calls show(n=20, k=2) on a TSDF with 4 rows per series, verifying that only the 2 most recent rows per series are returned. This exercises the k parameter path that was previously only tested for the error case (k > n). Closes #326 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Upgrade hatch to 1.16.5 to fix virtualenv 21.0.0 incompatibility The lint-and-check CI job fails because virtualenv 21.0.0 removed the propose_interpreters API that hatch 1.14.2 relies on. Hatch 1.16.5 (pypa/hatch#2196) fixes this by switching to the python-discovery package. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Revert hatch 1.16.5, pin virtualenv<21 to fix Python 3.9 CI Hatch 1.16.5 requires Python >=3.10, breaking CI for DBR 11.3/12.2 (Python 3.9). Revert to hatch 1.14.2 and pin virtualenv<21 to avoid the removed API in virtualenv 21.0.0 (matching PR #454). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Add missing test data entry for test_show_k_2 The test was failing in CI because the test_show_k_2 entry was missing from tsdf_tests.json. Add the init data reference matching other test_show_* tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fixes #2193 using public APIs only