test(fixtures): pip 26.2.1 and uv 0.13.1 captures, both uv renderings under test
Re-captured by the drift job itself (workflow_dispatch on this branch, Python 3.12.10, artifact `captured-fixtures`) rather than on a dev machine, so next Monday's run compares like with like. Copied byte for byte; CRLF counts unchanged where the engine's output did not change. What actually moved: - **uv 0.13.1** renders every failure as `error: …` / `cause: …` instead of miette's `× …`, `╰─▶` and "Caused by:". The phrases the classifiers key on survived, so nothing reclassified — `both_uv_renderings_classify_identically` now pins that, against the frozen `uv-0.11/` corpus. The build failure also moved from `build_wheel` to `get_requires_for_build_wheel` and gained a `hint:` line. - **pip 26.2.1** (it was 25.0.1 all along — the capture never upgraded it) prints no release notice, and for an unsatisfiable `scipy==1.7.3` now says *which* versions it ignored and why: "Ignored the following versions that require a different python version: … 1.7.3 Requires-Python >=3.7,<3.11". pip 25 said only "No matching distribution found", which is why ERROR-CATALOG calls PD-PKG-001 unclassifiable from stderr. On pip ≥ 26 it no longer is. - `clean-upgrade` now upgrades to the pinned idna 3.10 in both live corpora. `plan_parsers.rs` and `classifier_corpus.rs` run over `pip/`, `uv/` and `uv-0.11/`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2b4681954b
commit
9409a82e84
41 files changed
+229
-208
No files matched your search
@@ -32,7 +32,8 @@ struct Fixture {
|
||||
fn load_all() -> Vec<Fixture> {
|
||||
let mut out = Vec::new();
|
||||
let root = fixtures_root();
|
||||
for engine in ["pip", "uv", "synthetic"] {
|
||||
// `uv-0.11/` is the frozen pre-0.13 rendering; see `both_uv_renderings_classify_identically`.
|
||||
for engine in ["pip", "uv", "uv-0.11", "synthetic"] {
|
||||
let dir = root.join(engine);
|
||||
let Ok(entries) = fs::read_dir(&dir) else {
|
||||
continue;
|
||||
@@ -267,6 +268,34 @@ fn successful_runs_are_never_classified_as_failures() {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn both_uv_renderings_classify_identically() {
|
||||
// uv 0.13 replaced miette's `× … ╰─▶ … Caused by:` with `error: … cause: …`. Both are in the
|
||||
// wild — UV_MIN_VERSION is 0.10 — so a scenario must reach the same code from either, or the
|
||||
// user's error depends on which uv they happen to have.
|
||||
let fixtures = load_all();
|
||||
let by_label = |label: &str| {
|
||||
fixtures
|
||||
.iter()
|
||||
.find(|f| f.label == label)
|
||||
.map(|f| classify_stderr(&f.stderr))
|
||||
};
|
||||
let mut compared = 0;
|
||||
for f in fixtures.iter().filter(|f| f.label.starts_with("uv-0.11/")) {
|
||||
let scenario = f.label.trim_start_matches("uv-0.11/");
|
||||
let Some(current) = by_label(&format!("uv/{scenario}")) else {
|
||||
continue;
|
||||
};
|
||||
assert_eq!(
|
||||
classify_stderr(&f.stderr),
|
||||
current,
|
||||
"uv/{scenario} classifies differently under uv 0.11 and the current uv"
|
||||
);
|
||||
compared += 1;
|
||||
}
|
||||
assert!(compared >= 9, "compared only {compared} scenarios");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn crlf_in_fixtures_is_preserved() {
|
||||
// .gitattributes marks the fixture tree -text so Windows line endings survive. If that
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"scenario": "build-backend-failure",
|
||||
"engine_version": "pip 25.0.1 (python 3.12)",
|
||||
"engine_version": "pip 26.2.1 (python 3.12)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<WORK>\\venv\\Scripts\\python.exe",
|
||||
@@ -11,6 +11,6 @@
|
||||
"--no-cache-dir",
|
||||
"numpy==1.19.5"
|
||||
],
|
||||
"stdout_bytes": 360,
|
||||
"stderr_bytes": 7255
|
||||
"stdout_bytes": 357,
|
||||
"stderr_bytes": 7187
|
||||
}
|
||||
@@ -1,77 +1,74 @@
|
||||
|
||||
[notice] A new release of pip is available: <VERSION> -> <VERSION>
|
||||
[notice] To update, run: <WORK>\venv\Scripts\python.exe -m pip install --upgrade pip
|
||||
ERROR: Exception:
|
||||
Traceback (most recent call last):
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\cli\base_command.py", line 106, in _run_wrapper
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\cli\base_command.py", line 109, in _run_wrapper
|
||||
status = _inner_run()
|
||||
^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\cli\base_command.py", line 97, in _inner_run
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\cli\base_command.py", line 102, in _inner_run
|
||||
return self.run(options, args)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\cli\req_command.py", line 67, in wrapper
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\cli\req_command.py", line 106, in wrapper
|
||||
return func(self, options, args)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\commands\install.py", line 386, in run
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\commands\install.py", line 478, in run
|
||||
requirement_set = resolver.resolve(
|
||||
^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 95, in resolve
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 103, in resolve
|
||||
result = self._result = resolver.resolve(
|
||||
^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 546, in resolve
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_vendor\resolvelib\resolvers\resolution.py", line 601, in resolve
|
||||
state = resolution.resolve(requirements, max_rounds=max_rounds)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 397, in resolve
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_vendor\resolvelib\resolvers\resolution.py", line 434, in resolve
|
||||
self._add_to_criteria(self.state.criteria, r, parent=None)
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_vendor\resolvelib\resolvers\resolution.py", line 150, in _add_to_criteria
|
||||
if not criterion.candidates:
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_vendor\resolvelib\structs.py", line 156, in __bool__
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_vendor\resolvelib\structs.py", line 194, in __bool__
|
||||
return bool(self._sequence)
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 174, in __bool__
|
||||
return any(self)
|
||||
^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 162, in <genexpr>
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 165, in __bool__
|
||||
self._bool = any(self)
|
||||
^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 149, in <genexpr>
|
||||
return (c for c in iterator if id(c) not in self._incompatible_ids)
|
||||
^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 53, in _iter_built
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 39, in _iter_built
|
||||
candidate = func()
|
||||
^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 187, in _make_candidate_from_link
|
||||
base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 233, in _make_base_candidate_from_link
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 181, in _make_candidate_from_link
|
||||
base: BaseCandidate | None = self._make_base_candidate_from_link(
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 227, in _make_base_candidate_from_link
|
||||
self._link_candidate_cache[link] = LinkCandidate(
|
||||
^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 304, in __init__
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 325, in __init__
|
||||
super().__init__(
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 159, in __init__
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 167, in __init__
|
||||
self.dist = self._prepare()
|
||||
^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 236, in _prepare
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 245, in _prepare
|
||||
dist = self._prepare_distribution()
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 315, in _prepare_distribution
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 336, in _prepare_distribution
|
||||
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\operations\prepare.py", line 527, in prepare_linked_requirement
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\operations\prepare.py", line 664, in prepare_linked_requirement
|
||||
return self._prepare_linked_requirement(req, parallel_builds)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\operations\prepare.py", line 642, in _prepare_linked_requirement
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\operations\prepare.py", line 783, in _prepare_linked_requirement
|
||||
dist = _get_prepared_distribution(
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\operations\prepare.py", line 72, in _get_prepared_distribution
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\operations\prepare.py", line 82, in _get_prepared_distribution
|
||||
abstract_dist.prepare_distribution_metadata(
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\distributions\sdist.py", line 56, in prepare_distribution_metadata
|
||||
self._install_build_reqs(finder)
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\distributions\sdist.py", line 126, in _install_build_reqs
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\distributions\sdist.py", line 63, in prepare_distribution_metadata
|
||||
self._install_build_reqs(
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\distributions\sdist.py", line 159, in _install_build_reqs
|
||||
build_reqs = self._get_build_requires_wheel()
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\distributions\sdist.py", line 103, in _get_build_requires_wheel
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\distributions\sdist.py", line 131, in _get_build_requires_wheel
|
||||
return backend.get_requires_for_build_wheel()
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\utils\misc.py", line 702, in get_requires_for_build_wheel
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_internal\utils\misc.py", line 734, in get_requires_for_build_wheel
|
||||
return super().get_requires_for_build_wheel(config_settings=cs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<WORK>\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_impl.py", line 196, in get_requires_for_build_wheel
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Collecting numpy==1.19.5
|
||||
Downloading numpy-1.19.5.zip (7.3 MB)
|
||||
<PROGRESS>
|
||||
---------------------------------------- 7.3/7.3 MB 15.1 MB/s 0:00:00
|
||||
Installing build dependencies: started
|
||||
Installing build dependencies: finished with status 'done'
|
||||
Getting requirements to build wheel: started
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"scenario": "clean-upgrade",
|
||||
"engine_version": "pip 25.0.1 (python 3.12)",
|
||||
"engine_version": "pip 26.2.1 (python 3.12)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<WORK>\\venv\\Scripts\\python.exe",
|
||||
@@ -13,8 +13,8 @@
|
||||
"--quiet",
|
||||
"--report",
|
||||
"-",
|
||||
"idna"
|
||||
"idna==3.10"
|
||||
],
|
||||
"stdout_bytes": 7526,
|
||||
"stderr_bytes": 203
|
||||
"stdout_bytes": 11559,
|
||||
"stderr_bytes": 0
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"scenario": "clean-upgrade",
|
||||
"question": "Baseline: what does an unconstrained upgrade plan look like?",
|
||||
"question": "Baseline: what does an ordinary upgrade plan look like?",
|
||||
"expects_code": null,
|
||||
"engine": "pip",
|
||||
"extra_env": {
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
|
||||
[notice] A new release of pip is available: <VERSION> -> <VERSION>
|
||||
[notice] To update, run: <WORK>\venv\Scripts\python.exe -m pip install --upgrade pip
|
||||
+17
-17
@@ -1,46 +1,45 @@
|
||||
{
|
||||
"version": "1",
|
||||
"pip_version": "25.0.1",
|
||||
"pip_version": "<PIP>",
|
||||
"install": [
|
||||
{
|
||||
"download_info": {
|
||||
"url": "https://files.pythonhosted.org/packages/1e/5e/d4e9f1a599fb8e573b7b87160658329fbf28d19eac2718f51fc3def3aa5a/idna-3.18-py3-none-any.whl",
|
||||
"url": "https://files.pythonhosted.org/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl",
|
||||
"archive_info": {
|
||||
"hash": "sha256=7f952cbe720b688055e3f87de14f5c3e5fdaa8bc3928985c4077ca689de849a2",
|
||||
"hashes": {
|
||||
"sha256": "7f952cbe720b688055e3f87de14f5c3e5fdaa8bc3928985c4077ca689de849a2"
|
||||
}
|
||||
"sha256": "946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3"
|
||||
},
|
||||
"hash": "sha256=946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3"
|
||||
}
|
||||
},
|
||||
"is_direct": false,
|
||||
"is_yanked": false,
|
||||
"requested": true,
|
||||
"metadata": {
|
||||
"metadata_version": "2.4",
|
||||
"metadata_version": "2.1",
|
||||
"name": "idna",
|
||||
"version": "3.18",
|
||||
"version": "3.10",
|
||||
"summary": "Internationalized Domain Names in Applications (IDNA)",
|
||||
"description": "# Internationalized Domain Names in Applications (IDNA)\n\nSupport for [Internationalized Domain Names in Applications\n(IDNA)](https://tools.ietf.org/html/rfc5891) and [Unicode IDNA\nCompatibility Processing](https://unicode.org/reports/tr46/). It\nsupersedes the standard library's `encodings.idna`, which only\nimplements the 2003 specification, offering broader script coverage and\nlimiting domains with known security vulnerabilities.\n\n## Usage\n\nPackage may be installed from [PyPI](https://pypi.org/project/idna/) via\nthe typical methods (e.g. `python3 -m pip install idna`)\n\nFor typical usage, the `encode` and `decode` functions will take a\ndomain name argument and perform a conversion to ASCII-compatible encoding\n(known as A-labels), or to Unicode strings (known as U-labels)\nrespectively.\n\n```pycon\n>>> import idna\n>>> idna.encode('ドメイン.テスト')\nb'xn--eckwd4c7c.xn--zckzah'\n>>> print(idna.decode('xn--eckwd4c7c.xn--zckzah'))\nドメイン.テスト\n```\n\nConversions can be applied at a per-label basis using the `ulabel` or\n`alabel` functions for specialized use cases.\n\n\n### Compatibility Mapping (UTS #46)\n\nThis library provides support for [Unicode IDNA Compatibility\nProcessing](https://unicode.org/reports/tr46/) which normalizes input from\ndifferent potential ways a user may input a domain prior to performing the IDNA\nconversion operations. This functionality, known as a\n[mapping](https://tools.ietf.org/html/rfc5895), is considered by the\nspecification to be a local user-interface issue distinct from IDNA\nconversion functionality.\n\nFor example, \"Königsgäßchen\" is not a permissible label as capital letters\nare not allowed. UTS 46 will convert this into lower case prior to applying\nthe IDNA conversion.\n\n```pycon\n>>> import idna\n>>> idna.encode('Königsgäßchen')\n...\nidna.core.InvalidCodepoint: Codepoint U+004B at position 1 of 'Königsgäßchen' not allowed\n>>> idna.encode('Königsgäßchen', uts46=True)\nb'xn--knigsgchen-b4a3dun'\n>>> idna.decode('xn--knigsgchen-b4a3dun')\n'königsgäßchen'\n```\n\nWhen performing a decode operation for display purposes, `decode()`\naccepts a `display=True` argument that leaves any `xn--` label that\nfails to decode unchanged. This is useful for user interface display\nwhere a domain is in use, the A-label form can be presented when it\nis not a valid IDN.\n\n\n## Exceptions\n\nAll errors raised during conversion derive from the `idna.IDNAError`\nbase class. The more specific exceptions are:\n\n* `idna.IDNABidiError` — raised when a label contains an illegal\n combination of left-to-right and right-to-left characters.\n* `idna.InvalidCodepoint` — raised when a label contains a codepoint\n that is INVALID for IDNA.\n* `idna.InvalidCodepointContext` — raised when a CONTEXTO or CONTEXTJ\n codepoint appears in a position whose contextual requirements are\n not satisfied.\n\n\n## Command-line tool\n\nThe package supports command-line usage to convert domain names\nbetween their Unicode and ASCII-compatible forms. It can be run either\nas a module (`python3 -m idna`) or, once installed (such as with `uv\ntool` or `pipx`), via the `idna` script:\n\n```bash\n$ uv tool install idna\n$ idna xn--e1afmkfd.xn--p1ai\nпример.рф\n$ idna пример.рф\nxn--e1afmkfd.xn--p1ai\n```\n\nMode can be specified with `-e`/`--encode` or `-d`/`--decode`, otherwise\nit will be chosen automatically based on the first input. Multiple\ndomains can be supplied either as arguments or through standard input.\nUTS #46 mapping is applied by default, which lets the tool accept\ninputs that aren't strictly valid IDNA 2008 by normalising them first,\npass `--strict` to disable UTS #46.\n\nConversion failures are reported on stderr together with the\noffending input; processing continues with the remaining domains and\nthe tool exits with a non-zero status if any conversion failed.\n\n\n## Additional Notes\n\n* **Version support**. This library supports Python 3.9 and higher.\n As this library serves as a low-level toolkit for a variety of\n applications, we strive to support all versions of Python that are\n not beyond end-of-life.\n\n* **Emoji**. It is an occasional request to support emoji domains in\n this library. Encoding of symbols like emoji is expressly prohibited by\n the IDNA technical standard, and emoji domains are broadly phased\n out across the domain industry due to associated security risks.\n\n* **Regenerating lookup tables**. The IDNA and UTS 46 functionality\n relies upon pre-calculated lookup tables, generated using the\n `idna-data` script in [`tools/`](tools/README.md).\n\n",
|
||||
"description_content_type": "text/markdown",
|
||||
"description": "Internationalized Domain Names in Applications (IDNA)\n=====================================================\n\nSupport for the Internationalized Domain Names in\nApplications (IDNA) protocol as specified in `RFC 5891\n<https://tools.ietf.org/html/rfc5891>`_. This is the latest version of\nthe protocol and is sometimes referred to as “IDNA 2008”.\n\nThis library also provides support for Unicode Technical\nStandard 46, `Unicode IDNA Compatibility Processing\n<https://unicode.org/reports/tr46/>`_.\n\nThis acts as a suitable replacement for the “encodings.idna”\nmodule that comes with the Python standard library, but which\nonly supports the older superseded IDNA specification (`RFC 3490\n<https://tools.ietf.org/html/rfc3490>`_).\n\nBasic functions are simply executed:\n\n.. code-block:: pycon\n\n >>> import idna\n >>> idna.encode('ドメイン.テスト')\n b'xn--eckwd4c7c.xn--zckzah'\n >>> print(idna.decode('xn--eckwd4c7c.xn--zckzah'))\n ドメイン.テスト\n\n\nInstallation\n------------\n\nThis package is available for installation from PyPI:\n\n.. code-block:: bash\n\n $ python3 -m pip install idna\n\n\nUsage\n-----\n\nFor typical usage, the ``encode`` and ``decode`` functions will take a\ndomain name argument and perform a conversion to A-labels or U-labels\nrespectively.\n\n.. code-block:: pycon\n\n >>> import idna\n >>> idna.encode('ドメイン.テスト')\n b'xn--eckwd4c7c.xn--zckzah'\n >>> print(idna.decode('xn--eckwd4c7c.xn--zckzah'))\n ドメイン.テスト\n\nYou may use the codec encoding and decoding methods using the\n``idna.codec`` module:\n\n.. code-block:: pycon\n\n >>> import idna.codec\n >>> print('домен.испытание'.encode('idna2008'))\n b'xn--d1acufc.xn--80akhbyknj4f'\n >>> print(b'xn--d1acufc.xn--80akhbyknj4f'.decode('idna2008'))\n домен.испытание\n\nConversions can be applied at a per-label basis using the ``ulabel`` or\n``alabel`` functions if necessary:\n\n.. code-block:: pycon\n\n >>> idna.alabel('测试')\n b'xn--0zwm56d'\n\nCompatibility Mapping (UTS #46)\n+++++++++++++++++++++++++++++++\n\nAs described in `RFC 5895 <https://tools.ietf.org/html/rfc5895>`_, the\nIDNA specification does not normalize input from different potential\nways a user may input a domain name. This functionality, known as\na “mapping”, is considered by the specification to be a local\nuser-interface issue distinct from IDNA conversion functionality.\n\nThis library provides one such mapping that was developed by the\nUnicode Consortium. Known as `Unicode IDNA Compatibility Processing\n<https://unicode.org/reports/tr46/>`_, it provides for both a regular\nmapping for typical applications, as well as a transitional mapping to\nhelp migrate from older IDNA 2003 applications. Strings are\npreprocessed according to Section 4.4 “Preprocessing for IDNA2008”\nprior to the IDNA operations.\n\nFor example, “Königsgäßchen” is not a permissible label as *LATIN\nCAPITAL LETTER K* is not allowed (nor are capital letters in general).\nUTS 46 will convert this into lower case prior to applying the IDNA\nconversion.\n\n.. code-block:: pycon\n\n >>> import idna\n >>> idna.encode('Königsgäßchen')\n ...\n idna.core.InvalidCodepoint: Codepoint U+004B at position 1 of 'Königsgäßchen' not allowed\n >>> idna.encode('Königsgäßchen', uts46=True)\n b'xn--knigsgchen-b4a3dun'\n >>> print(idna.decode('xn--knigsgchen-b4a3dun'))\n königsgäßchen\n\nTransitional processing provides conversions to help transition from\nthe older 2003 standard to the current standard. For example, in the\noriginal IDNA specification, the *LATIN SMALL LETTER SHARP S* (ß) was\nconverted into two *LATIN SMALL LETTER S* (ss), whereas in the current\nIDNA specification this conversion is not performed.\n\n.. code-block:: pycon\n\n >>> idna.encode('Königsgäßchen', uts46=True, transitional=True)\n 'xn--knigsgsschen-lcb0w'\n\nImplementers should use transitional processing with caution, only in\nrare cases where conversion from legacy labels to current labels must be\nperformed (i.e. IDNA implementations that pre-date 2008). For typical\napplications that just need to convert labels, transitional processing\nis unlikely to be beneficial and could produce unexpected incompatible\nresults.\n\n``encodings.idna`` Compatibility\n++++++++++++++++++++++++++++++++\n\nFunction calls from the Python built-in ``encodings.idna`` module are\nmapped to their IDNA 2008 equivalents using the ``idna.compat`` module.\nSimply substitute the ``import`` clause in your code to refer to the new\nmodule name.\n\nExceptions\n----------\n\nAll errors raised during the conversion following the specification\nshould raise an exception derived from the ``idna.IDNAError`` base\nclass.\n\nMore specific exceptions that may be generated as ``idna.IDNABidiError``\nwhen the error reflects an illegal combination of left-to-rigLine truncated
|
||||
"description_content_type": "text/x-rst",
|
||||
"author_email": "Kim Davies <kim+pypi@gumleaf.org>",
|
||||
"license_expression": "BSD-3-Clause",
|
||||
"license_file": [
|
||||
"LICENSE.md"
|
||||
],
|
||||
"classifier": [
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"Intended Audience :: Developers",
|
||||
"Intended Audience :: System Administrators",
|
||||
"License :: OSI Approved :: BSD License",
|
||||
"Operating System :: OS Independent",
|
||||
"Programming Language :: Python",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3 :: Only",
|
||||
"Programming Language :: Python :: 3.6",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
"Programming Language :: Python :: 3.14",
|
||||
"Programming Language :: Python :: Implementation :: CPython",
|
||||
"Programming Language :: Python :: Implementation :: PyPy",
|
||||
"Topic :: Internet :: Name Service (DNS)",
|
||||
@@ -50,11 +49,12 @@
|
||||
"requires_dist": [
|
||||
"ruff >= 0.6.2 ; extra == \"all\"",
|
||||
"mypy >= 1.11.2 ; extra == \"all\"",
|
||||
"pytest >= 8.3.2 ; extra == \"all\""
|
||||
"pytest >= 8.3.2 ; extra == \"all\"",
|
||||
"flake8 >= 7.1.1 ; extra == \"all\""
|
||||
],
|
||||
"requires_python": ">=3.9",
|
||||
"requires_python": ">=3.6",
|
||||
"project_url": [
|
||||
"Changelog, https://github.com/kjd/idna/blob/master/HISTORY.md",
|
||||
"Changelog, https://github.com/kjd/idna/blob/master/HISTORY.rst",
|
||||
"Issue tracker, https://github.com/kjd/idna/issues",
|
||||
"Source, https://github.com/kjd/idna"
|
||||
],
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"scenario": "held-back-constrained",
|
||||
"engine_version": "pip 25.0.1 (python 3.12)",
|
||||
"engine_version": "pip 26.2.1 (python 3.12)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<WORK>\\venv\\Scripts\\python.exe",
|
||||
@@ -16,6 +16,6 @@
|
||||
"httpcore",
|
||||
"httpx==0.23.0"
|
||||
],
|
||||
"stdout_bytes": 469,
|
||||
"stderr_bytes": 211
|
||||
"stdout_bytes": 477,
|
||||
"stderr_bytes": 0
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
|
||||
[notice] A new release of pip is available: <VERSION> -> <VERSION>
|
||||
[notice] To update, run: <WORK>\venv\Scripts\python.exe -m pip install --upgrade pip
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": "1",
|
||||
"pip_version": "25.0.1",
|
||||
"pip_version": "<PIP>",
|
||||
"install": [],
|
||||
"environment": {
|
||||
"implementation_name": "cpython",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"scenario": "held-back",
|
||||
"engine_version": "pip 25.0.1 (python 3.12)",
|
||||
"engine_version": "pip 26.2.1 (python 3.12)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<WORK>\\venv\\Scripts\\python.exe",
|
||||
@@ -15,6 +15,6 @@
|
||||
"-",
|
||||
"httpcore"
|
||||
],
|
||||
"stdout_bytes": 32856,
|
||||
"stderr_bytes": 199
|
||||
"stdout_bytes": 32864,
|
||||
"stderr_bytes": 0
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
|
||||
[notice] A new release of pip is available: <VERSION> -> <VERSION>
|
||||
[notice] To update, run: <WORK>\venv\Scripts\python.exe -m pip install --upgrade pip
|
||||
@@ -1,15 +1,15 @@
|
||||
{
|
||||
"version": "1",
|
||||
"pip_version": "25.0.1",
|
||||
"pip_version": "<PIP>",
|
||||
"install": [
|
||||
{
|
||||
"download_info": {
|
||||
"url": "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl",
|
||||
"archive_info": {
|
||||
"hash": "sha256=2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55",
|
||||
"hashes": {
|
||||
"sha256": "2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55"
|
||||
}
|
||||
},
|
||||
"hash": "sha256=2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55"
|
||||
}
|
||||
},
|
||||
"is_direct": false,
|
||||
@@ -70,10 +70,10 @@
|
||||
"download_info": {
|
||||
"url": "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl",
|
||||
"archive_info": {
|
||||
"hash": "sha256=63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86",
|
||||
"hashes": {
|
||||
"sha256": "63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86"
|
||||
}
|
||||
},
|
||||
"hash": "sha256=63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86"
|
||||
}
|
||||
},
|
||||
"is_direct": false,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"scenario": "impossible",
|
||||
"engine_version": "pip 25.0.1 (python 3.12)",
|
||||
"engine_version": "pip 26.2.1 (python 3.12)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<WORK>\\venv\\Scripts\\python.exe",
|
||||
@@ -17,5 +17,5 @@
|
||||
"httpx==0.23.0"
|
||||
],
|
||||
"stdout_bytes": 0,
|
||||
"stderr_bytes": 454
|
||||
"stderr_bytes": 254
|
||||
}
|
||||
@@ -1,5 +1,2 @@
|
||||
ERROR: Cannot install httpcore>=1.0 and httpx==0.23.0 because these package versions have conflicting dependencies.
|
||||
|
||||
[notice] A new release of pip is available: <VERSION> -> <VERSION>
|
||||
[notice] To update, run: <WORK>\venv\Scripts\python.exe -m pip install --upgrade pip
|
||||
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"scenario": "network-unreachable",
|
||||
"engine_version": "pip 25.0.1 (python 3.12)",
|
||||
"engine_version": "pip 26.2.1 (python 3.12)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<WORK>\\venv\\Scripts\\python.exe",
|
||||
@@ -18,5 +18,5 @@
|
||||
"idna"
|
||||
],
|
||||
"stdout_bytes": 0,
|
||||
"stderr_bytes": 1947
|
||||
"stderr_bytes": 1767
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0xADDR>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/idna/
|
||||
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0xADDR>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/idna/
|
||||
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0xADDR>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/idna/
|
||||
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0xADDR>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/idna/
|
||||
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0xADDR>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/idna/
|
||||
ERROR: Could not find a version that satisfies the requirement idna (from versions: none)
|
||||
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError("HTTPConnection(host='127.0.0.1', port=1): Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it")': /simple/idna/
|
||||
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError("HTTPConnection(host='127.0.0.1', port=1): Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it")': /simple/idna/
|
||||
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError("HTTPConnection(host='127.0.0.1', port=1): Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it")': /simple/idna/
|
||||
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError("HTTPConnection(host='127.0.0.1', port=1): Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it")': /simple/idna/
|
||||
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError("HTTPConnection(host='127.0.0.1', port=1): Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it")': /simple/idna/
|
||||
ERROR: Could not find a version that satisfies the requirement idna (from versions: <VERSIONS>)
|
||||
ERROR: No matching distribution found for idna
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"scenario": "not-found",
|
||||
"engine_version": "pip 25.0.1 (python 3.12)",
|
||||
"engine_version": "pip 26.2.1 (python 3.12)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<WORK>\\venv\\Scripts\\python.exe",
|
||||
@@ -16,5 +16,5 @@
|
||||
"pipdock-no-such-package-9f3a2b"
|
||||
],
|
||||
"stdout_bytes": 0,
|
||||
"stderr_bytes": 388
|
||||
"stderr_bytes": 189
|
||||
}
|
||||
@@ -1,5 +1,2 @@
|
||||
ERROR: Could not find a version that satisfies the requirement pipdock-no-such-package-9f3a2b (from versions: none)
|
||||
|
||||
[notice] A new release of pip is available: <VERSION> -> <VERSION>
|
||||
[notice] To update, run: <WORK>\venv\Scripts\python.exe -m pip install --upgrade pip
|
||||
ERROR: Could not find a version that satisfies the requirement pipdock-no-such-package-9f3a2b (from versions: <VERSIONS>)
|
||||
ERROR: No matching distribution found for pipdock-no-such-package-9f3a2b
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"scenario": "requires-python",
|
||||
"engine_version": "pip 25.0.1 (python 3.12)",
|
||||
"engine_version": "pip 26.2.1 (python 3.12)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<WORK>\\venv\\Scripts\\python.exe",
|
||||
@@ -16,5 +16,5 @@
|
||||
"scipy==1.7.3"
|
||||
],
|
||||
"stdout_bytes": 0,
|
||||
"stderr_bytes": 1066
|
||||
"stderr_bytes": 1713
|
||||
}
|
||||
@@ -1,6 +1,4 @@
|
||||
ERROR: Ignored the following yanked versions: 1.11.0, 1.14.0rc1
|
||||
ERROR: Could not find a version that satisfies the requirement scipy==1.7.3 (from versions: 0.8.0, 0.9.0, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.19.0, 0.19.1, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6.0, 1.6.1, 1.9.2, 1.9.3, 1.11.0rc1, 1.11.0rc2, 1.11.1, 1.11.2, 1.11.3, 1.11.4, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.13.0rc1, 1.13.0, 1.13.1, 1.14.0rc2, 1.14.0, 1.14.1, 1.15.0rc1, 1.15.0rc2, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.16.0rc1, 1.16.0rc2, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.17.0rc1, 1.17.0rc2, 1.17.0, 1.17.1, 1.18.0rc1, 1.18.0rc2, 1.18.0)
|
||||
|
||||
[notice] A new release of pip is available: <VERSION> -> <VERSION>
|
||||
[notice] To update, run: <WORK>\venv\Scripts\python.exe -m pip install --upgrade pip
|
||||
ERROR: Ignored the following versions that require a different python version: 1.10.0 Requires-Python >=3.8,<3.12; 1.10.0rc1 Requires-Python >=3.8,<3.12; 1.10.0rc2 Requires-Python >=3.8,<3.12; 1.10.1 Requires-Python >=3.8,<3.12; 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10; 1.7.2 Requires-Python >=3.7,<3.11; 1.7.3 Requires-Python >=3.7,<3.11; 1.8.0 Requires-Python >=3.8,<3.11; 1.8.0rc1 Requires-Python >=3.8,<3.11; 1.8.0rc2 Requires-Python >=3.8,<3.11; 1.8.0rc3 Requires-Python >=3.8,<3.11; 1.8.0rc4 Requires-Python >=3.8,<3.11; 1.8.1 Requires-Python >=3.8,<3.11; 1.9.0 Requires-Python >=3.8,<3.12; 1.9.0rc1 Requires-Python >=3.8,<3.12; 1.9.0rc2 Requires-Python >=3.8,<3.12; 1.9.0rc3 Requires-Python >=3.8,<3.12; 1.9.1 Requires-Python >=3.8,<3.12
|
||||
ERROR: Could not find a version that satisfies the requirement scipy==1.7.3 (from versions: <VERSIONS>)
|
||||
ERROR: No matching distribution found for scipy==1.7.3
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"scenario": "yanked",
|
||||
"engine_version": "pip 25.0.1 (python 3.12)",
|
||||
"engine_version": "pip 26.2.1 (python 3.12)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<WORK>\\venv\\Scripts\\python.exe",
|
||||
@@ -15,6 +15,6 @@
|
||||
"-",
|
||||
"urllib3==2.0.0"
|
||||
],
|
||||
"stdout_bytes": 8246,
|
||||
"stderr_bytes": 685
|
||||
"stdout_bytes": 8254,
|
||||
"stderr_bytes": 489
|
||||
}
|
||||
@@ -1,5 +1,2 @@
|
||||
WARNING: The candidate selected for download or install is a yanked version: 'urllib3' candidate (version 2.0.0 at https://files.pythonhosted.org/packages/ca/25/fe81738a115a2f1005b19bd69b6253b7b5cd6c9119164f13f02ec627fc41/urllib3-2.0.0-py3-none-any.whl (from https://pypi.org/simple/urllib3/) (requires-python:>=3.7))
|
||||
Reason for being yanked: Truncated response bodies when streaming a large compressed body. Upgrade to at least 2.0.2 (See: https://github.com/urllib3/urllib3/issues/3009)
|
||||
|
||||
[notice] A new release of pip is available: <VERSION> -> <VERSION>
|
||||
[notice] To update, run: <WORK>\venv\Scripts\python.exe -m pip install --upgrade pip
|
||||
@@ -1,15 +1,15 @@
|
||||
{
|
||||
"version": "1",
|
||||
"pip_version": "25.0.1",
|
||||
"pip_version": "<PIP>",
|
||||
"install": [
|
||||
{
|
||||
"download_info": {
|
||||
"url": "https://files.pythonhosted.org/packages/ca/25/fe81738a115a2f1005b19bd69b6253b7b5cd6c9119164f13f02ec627fc41/urllib3-2.0.0-py3-none-any.whl",
|
||||
"archive_info": {
|
||||
"hash": "sha256=8f7f917bc6ff1c021c4b7b677229c455a7612878748581f6de39fd45e4fa21ae",
|
||||
"hashes": {
|
||||
"sha256": "8f7f917bc6ff1c021c4b7b677229c455a7612878748581f6de39fd45e4fa21ae"
|
||||
}
|
||||
},
|
||||
"hash": "sha256=8f7f917bc6ff1c021c4b7b677229c455a7612878748581f6de39fd45e4fa21ae"
|
||||
}
|
||||
},
|
||||
"is_direct": false,
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"scenario": "build-backend-failure",
|
||||
"engine_version": "uv 0.11.32 (3010295ae 2026-07-23 x86_64-pc-windows-msvc)",
|
||||
"engine_version": "uv 0.13.1 (62faed335 2026-10-13 x86_64-pc-windows-msvc)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<PATH>\\uv.exe",
|
||||
".uvtools\\Scripts\\uv.exe",
|
||||
"pip",
|
||||
"install",
|
||||
"-U",
|
||||
@@ -13,5 +13,5 @@
|
||||
"<WORK>\\venv\\Scripts\\python.exe"
|
||||
],
|
||||
"stdout_bytes": 0,
|
||||
"stderr_bytes": 868
|
||||
"stderr_bytes": 903
|
||||
}
|
||||
@@ -1,18 +1,15 @@
|
||||
Using Python 3.12.10 environment at: <WORK>\venv
|
||||
Resolved 1 package in <DURATION>
|
||||
Building numpy==1.19.5
|
||||
× Failed to build `numpy==1.19.5`
|
||||
├─▶ The build backend returned an error
|
||||
╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit
|
||||
code: 1)
|
||||
error: Failed to build `numpy==1.19.5`
|
||||
cause: The build backend returned an error
|
||||
cause: Call to `setuptools.build_meta:__legacy__.get_requires_for_build_wheel` failed (exit code: 1)
|
||||
|
||||
[stderr]
|
||||
Traceback (most recent call last):
|
||||
File "<string>", line 8, in <module>
|
||||
File
|
||||
"<PATH>\__init__.py",
|
||||
line 9, in <module>
|
||||
import distutils.core
|
||||
ModuleNotFoundError: No module named 'distutils'
|
||||
[stderr]
|
||||
Traceback (most recent call last):
|
||||
File "<string>", line 8, in <module>
|
||||
File "<PATH>\__init__.py", line 9, in <module>
|
||||
import distutils.core
|
||||
ModuleNotFoundError: No module named 'distutils'
|
||||
|
||||
hint: `distutils` was removed from the standard library in Python 3.12. Consider adding a constraint (like `numpy >1.19.5`) to avoid building a version of `numpy` that depends on `distutils`.
|
||||
+4
-4
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"scenario": "clean-upgrade",
|
||||
"engine_version": "uv 0.11.32 (3010295ae 2026-07-23 x86_64-pc-windows-msvc)",
|
||||
"engine_version": "uv 0.13.1 (62faed335 2026-10-13 x86_64-pc-windows-msvc)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<PATH>\\uv.exe",
|
||||
".uvtools\\Scripts\\uv.exe",
|
||||
"pip",
|
||||
"install",
|
||||
"-U",
|
||||
"--no-cache",
|
||||
"--dry-run",
|
||||
"idna",
|
||||
"idna==3.10",
|
||||
"--python",
|
||||
"<WORK>\\venv\\Scripts\\python.exe"
|
||||
],
|
||||
"stdout_bytes": 0,
|
||||
"stderr_bytes": 234
|
||||
"stderr_bytes": 238
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"scenario": "clean-upgrade",
|
||||
"question": "Baseline: what does an unconstrained upgrade plan look like?",
|
||||
"question": "Baseline: what does an ordinary upgrade plan look like?",
|
||||
"expects_code": null,
|
||||
"engine": "uv",
|
||||
"extra_env": {
|
||||
|
||||
@@ -4,4 +4,4 @@ Would download 1 package
|
||||
Would uninstall 1 package
|
||||
Would install 1 package
|
||||
- idna==3.4
|
||||
+ idna==3.18
|
||||
+ idna==3.10
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"scenario": "held-back-constrained",
|
||||
"engine_version": "uv 0.11.32 (3010295ae 2026-07-23 x86_64-pc-windows-msvc)",
|
||||
"engine_version": "uv 0.13.1 (62faed335 2026-10-13 x86_64-pc-windows-msvc)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<PATH>\\uv.exe",
|
||||
".uvtools\\Scripts\\uv.exe",
|
||||
"pip",
|
||||
"install",
|
||||
"-U",
|
||||
@@ -15,5 +15,5 @@
|
||||
"<WORK>\\venv\\Scripts\\python.exe"
|
||||
],
|
||||
"stdout_bytes": 0,
|
||||
"stderr_bytes": 189
|
||||
"stderr_bytes": 196
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"scenario": "held-back",
|
||||
"engine_version": "uv 0.11.32 (3010295ae 2026-07-23 x86_64-pc-windows-msvc)",
|
||||
"engine_version": "uv 0.13.1 (62faed335 2026-10-13 x86_64-pc-windows-msvc)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<PATH>\\uv.exe",
|
||||
".uvtools\\Scripts\\uv.exe",
|
||||
"pip",
|
||||
"install",
|
||||
"-U",
|
||||
@@ -14,5 +14,5 @@
|
||||
"<WORK>\\venv\\Scripts\\python.exe"
|
||||
],
|
||||
"stdout_bytes": 0,
|
||||
"stderr_bytes": 276
|
||||
"stderr_bytes": 280
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"scenario": "impossible",
|
||||
"engine_version": "uv 0.11.32 (3010295ae 2026-07-23 x86_64-pc-windows-msvc)",
|
||||
"engine_version": "uv 0.13.1 (62faed335 2026-10-13 x86_64-pc-windows-msvc)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<PATH>\\uv.exe",
|
||||
".uvtools\\Scripts\\uv.exe",
|
||||
"pip",
|
||||
"install",
|
||||
"-U",
|
||||
@@ -15,5 +15,5 @@
|
||||
"<WORK>\\venv\\Scripts\\python.exe"
|
||||
],
|
||||
"stdout_bytes": 0,
|
||||
"stderr_bytes": 443
|
||||
"stderr_bytes": 437
|
||||
}
|
||||
@@ -1,7 +1,4 @@
|
||||
Using Python 3.12.10 environment at: <WORK>\venv
|
||||
× No solution found when resolving dependencies:
|
||||
╰─▶ Because httpx==0.23.0 depends on httpcore>=0.15.0,<0.16.0 and you
|
||||
require httpcore>=1.0, we can conclude that your requirements and
|
||||
httpx==0.23.0 are incompatible.
|
||||
And because you require httpx==0.23.0, we can conclude that your
|
||||
requirements are unsatisfiable.
|
||||
error: No solution found when resolving dependencies
|
||||
cause: Because httpx==0.23.0 depends on httpcore>=0.15.0,<0.16.0 and you require httpcore>=1.0, we can conclude that your requirements and httpx==0.23.0 are incompatible.
|
||||
And because you require httpx==0.23.0, we can conclude that your requirements are unsatisfiable.
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"scenario": "network-unreachable",
|
||||
"engine_version": "uv 0.11.32 (3010295ae 2026-07-23 x86_64-pc-windows-msvc)",
|
||||
"engine_version": "uv 0.13.1 (62faed335 2026-10-13 x86_64-pc-windows-msvc)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<PATH>\\uv.exe",
|
||||
".uvtools\\Scripts\\uv.exe",
|
||||
"pip",
|
||||
"install",
|
||||
"-U",
|
||||
@@ -16,5 +16,5 @@
|
||||
"<WORK>\\venv\\Scripts\\python.exe"
|
||||
],
|
||||
"stdout_bytes": 0,
|
||||
"stderr_bytes": 471
|
||||
"stderr_bytes": 453
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
Using Python 3.12.10 environment at: <WORK>\venv
|
||||
error: Request failed after 3 retries in <DURATION>
|
||||
Caused by: Failed to fetch: `http://127.0.0.1:1/simple/idna/`
|
||||
Caused by: error sending request for url (http://127.0.0.1:1/simple/idna/)
|
||||
Caused by: client error (Connect)
|
||||
Caused by: tcp connect error
|
||||
Caused by: No connection could be made because the target machine actively refused it. (os error 10061)
|
||||
cause: Failed to fetch: http://127.0.0.1:1/simple/idna/
|
||||
cause: error sending request for url (http://127.0.0.1:1/simple/idna/)
|
||||
cause: client error (Connect)
|
||||
cause: tcp connect error
|
||||
cause: No connection could be made because the target machine actively refused it. (os error 10061)
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"scenario": "not-found",
|
||||
"engine_version": "uv 0.11.32 (3010295ae 2026-07-23 x86_64-pc-windows-msvc)",
|
||||
"engine_version": "uv 0.13.1 (62faed335 2026-10-13 x86_64-pc-windows-msvc)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<PATH>\\uv.exe",
|
||||
".uvtools\\Scripts\\uv.exe",
|
||||
"pip",
|
||||
"install",
|
||||
"-U",
|
||||
@@ -14,5 +14,5 @@
|
||||
"<WORK>\\venv\\Scripts\\python.exe"
|
||||
],
|
||||
"stdout_bytes": 0,
|
||||
"stderr_bytes": 352
|
||||
"stderr_bytes": 349
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
Using Python 3.12.10 environment at: <WORK>\venv
|
||||
× No solution found when resolving dependencies:
|
||||
╰─▶ Because pipdock-no-such-package-9f3a2b was not found in the package
|
||||
registry and you require pipdock-no-such-package-9f3a2b, we can conclude
|
||||
that your requirements are unsatisfiable.
|
||||
error: No solution found when resolving dependencies
|
||||
cause: Because pipdock-no-such-package-9f3a2b was not found in the package registry and you require pipdock-no-such-package-9f3a2b, we can conclude that your requirements are unsatisfiable.
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"scenario": "requires-python",
|
||||
"engine_version": "uv 0.11.32 (3010295ae 2026-07-23 x86_64-pc-windows-msvc)",
|
||||
"engine_version": "uv 0.13.1 (62faed335 2026-10-13 x86_64-pc-windows-msvc)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<PATH>\\uv.exe",
|
||||
".uvtools\\Scripts\\uv.exe",
|
||||
"pip",
|
||||
"install",
|
||||
"-U",
|
||||
@@ -14,5 +14,5 @@
|
||||
"<WORK>\\venv\\Scripts\\python.exe"
|
||||
],
|
||||
"stdout_bytes": 0,
|
||||
"stderr_bytes": 219
|
||||
"stderr_bytes": 223
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"scenario": "yanked",
|
||||
"engine_version": "uv 0.11.32 (3010295ae 2026-07-23 x86_64-pc-windows-msvc)",
|
||||
"engine_version": "uv 0.13.1 (62faed335 2026-10-13 x86_64-pc-windows-msvc)",
|
||||
"python": "Python 3.12.10",
|
||||
"argv": [
|
||||
"<PATH>\\uv.exe",
|
||||
".uvtools\\Scripts\\uv.exe",
|
||||
"pip",
|
||||
"install",
|
||||
"-U",
|
||||
@@ -14,5 +14,5 @@
|
||||
"<WORK>\\venv\\Scripts\\python.exe"
|
||||
],
|
||||
"stdout_bytes": 0,
|
||||
"stderr_bytes": 386
|
||||
"stderr_bytes": 390
|
||||
}
|
||||
@@ -22,6 +22,16 @@ fn fixtures_root() -> PathBuf {
|
||||
Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/fixtures")
|
||||
}
|
||||
|
||||
/// Every corpus of real engine output, newest uv first.
|
||||
///
|
||||
/// `uv-0.11/` is frozen: uv 0.13.0 replaced its miette rendering (`×`, `╰─▶`, "Caused by:") with
|
||||
/// "error:" / "cause:", and `UV_MIN_VERSION` is still 0.10, so users run both. The weekly drift
|
||||
/// job re-captures `pip/` and `uv/` only.
|
||||
const CORPORA: [&str; 3] = ["pip", "uv", "uv-0.11"];
|
||||
|
||||
/// The uv corpora alone, for assertions about uv's channel and wording.
|
||||
const UV_CORPORA: [&str; 2] = ["uv", "uv-0.11"];
|
||||
|
||||
struct Capture {
|
||||
stdout: String,
|
||||
stderr: String,
|
||||
@@ -65,7 +75,7 @@ fn both_engines_agree_on_the_clean_upgrade() {
|
||||
// uv, must produce the same normalized change. That equivalence is the entire premise of the
|
||||
// Engine trait (ARCHITECTURE §3).
|
||||
let installed = [dist("idna", "3.4")];
|
||||
for engine in ["pip", "uv"] {
|
||||
for engine in CORPORA {
|
||||
let plan = parse(engine, "clean-upgrade", &installed);
|
||||
let idna = plan
|
||||
.report
|
||||
@@ -78,7 +88,10 @@ fn both_engines_agree_on_the_clean_upgrade() {
|
||||
Some("3.4"),
|
||||
"{engine}"
|
||||
);
|
||||
assert_eq!(idna.to.0, "3.18", "{engine}");
|
||||
// The live corpora upgrade to a pinned idna==3.10; the frozen one was captured when the
|
||||
// scenario still asked for "latest", which is the data drift `capture.py` now prevents.
|
||||
let expected = if engine == "uv-0.11" { "3.18" } else { "3.10" };
|
||||
assert_eq!(idna.to.0, expected, "{engine}");
|
||||
assert!(plan.report.is_clean(), "{engine}");
|
||||
}
|
||||
}
|
||||
@@ -93,7 +106,7 @@ fn both_engines_plan_the_same_environment_breaking_upgrade() {
|
||||
dist("httpcore", "0.15.0"),
|
||||
dist("h11", "0.12.0"),
|
||||
];
|
||||
for engine in ["pip", "uv"] {
|
||||
for engine in CORPORA {
|
||||
let plan = parse(engine, "held-back", &installed);
|
||||
let httpcore = plan
|
||||
.report
|
||||
@@ -113,7 +126,7 @@ fn both_engines_produce_an_empty_plan_once_the_installed_set_is_restated() {
|
||||
// The other half of SP-1: with httpx restated as a requirement, the correct answer is "no
|
||||
// changes". This is what PipDock's planner relies on, so it is a regression gate.
|
||||
let installed = [dist("httpx", "0.23.0"), dist("httpcore", "0.15.0")];
|
||||
for engine in ["pip", "uv"] {
|
||||
for engine in CORPORA {
|
||||
let plan = parse(engine, "held-back-constrained", &installed);
|
||||
assert!(
|
||||
plan.report.changes.is_empty(),
|
||||
@@ -125,17 +138,25 @@ fn both_engines_produce_an_empty_plan_once_the_installed_set_is_restated() {
|
||||
|
||||
#[test]
|
||||
fn uv_impossibility_carries_an_explanation_a_user_can_act_on() {
|
||||
let plan = parse("uv", "impossible", &[]);
|
||||
let detail = plan.report.impossible.expect("uv reports impossibility");
|
||||
for engine in UV_CORPORA {
|
||||
let plan = parse(engine, "impossible", &[]);
|
||||
let detail = plan
|
||||
.report
|
||||
.impossible
|
||||
.unwrap_or_else(|| panic!("{engine} reports impossibility"));
|
||||
|
||||
// SP-1: uv names the blocking constraint where pip does not. That advantage is the reason the
|
||||
// preview can explain a conflict at all under uv, so assert the substance is present.
|
||||
assert!(
|
||||
detail.explanation.contains("httpcore>=0.15.0,<0.16.0"),
|
||||
"lost the constraint: {}",
|
||||
detail.explanation
|
||||
);
|
||||
assert!(detail.packages.iter().any(|p| p.as_str() == "httpx"));
|
||||
// SP-1: uv names the blocking constraint where pip does not. That advantage is the reason
|
||||
// the preview can explain a conflict at all under uv, so assert the substance is present.
|
||||
assert!(
|
||||
detail.explanation.contains("httpcore>=0.15.0,<0.16.0"),
|
||||
"{engine} lost the constraint: {}",
|
||||
detail.explanation
|
||||
);
|
||||
assert!(
|
||||
detail.packages.iter().any(|p| p.as_str() == "httpx"),
|
||||
"{engine}"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -152,7 +173,7 @@ fn pip_impossibility_is_recognised_even_though_it_says_less() {
|
||||
#[test]
|
||||
fn both_engines_flag_the_yanked_release_without_failing() {
|
||||
// SP-2: a yank exits 0 in both engines. The plan is valid; the warning rides alongside it.
|
||||
for engine in ["pip", "uv"] {
|
||||
for engine in CORPORA {
|
||||
let plan = parse(engine, "yanked", &[]);
|
||||
assert_eq!(
|
||||
plan.yanked.len(),
|
||||
@@ -201,7 +222,7 @@ fn every_successful_capture_parses() {
|
||||
"yanked",
|
||||
"requires-python",
|
||||
];
|
||||
for engine in ["pip", "uv"] {
|
||||
for engine in CORPORA {
|
||||
for scenario in scenarios {
|
||||
let Some(cap) = load(engine, scenario) else {
|
||||
continue;
|
||||
@@ -223,27 +244,29 @@ fn uv_scenarios_all_arrive_on_stderr() {
|
||||
// SP-1's channel finding, guarded: if a future uv moves the plan to stdout, this fails and the
|
||||
// adapter's stdout fallback needs promoting to the primary path.
|
||||
let mut checked = 0;
|
||||
for scenario in [
|
||||
"clean-upgrade",
|
||||
"held-back",
|
||||
"held-back-constrained",
|
||||
"yanked",
|
||||
] {
|
||||
let Some(cap) = load("uv", scenario) else {
|
||||
continue;
|
||||
};
|
||||
assert!(
|
||||
cap.stdout.trim().is_empty(),
|
||||
"uv/{scenario} now writes to stdout"
|
||||
);
|
||||
assert!(
|
||||
!cap.stderr.trim().is_empty(),
|
||||
"uv/{scenario} wrote nothing to stderr"
|
||||
);
|
||||
checked += 1;
|
||||
for engine in UV_CORPORA {
|
||||
for scenario in [
|
||||
"clean-upgrade",
|
||||
"held-back",
|
||||
"held-back-constrained",
|
||||
"yanked",
|
||||
] {
|
||||
let Some(cap) = load(engine, scenario) else {
|
||||
continue;
|
||||
};
|
||||
assert!(
|
||||
cap.stdout.trim().is_empty(),
|
||||
"{engine}/{scenario} now writes to stdout"
|
||||
);
|
||||
assert!(
|
||||
!cap.stderr.trim().is_empty(),
|
||||
"{engine}/{scenario} wrote nothing to stderr"
|
||||
);
|
||||
checked += 1;
|
||||
}
|
||||
}
|
||||
assert!(
|
||||
checked >= 4,
|
||||
"expected at least four uv fixtures, saw {checked}"
|
||||
checked >= 8,
|
||||
"expected four fixtures per uv corpus, saw {checked}"
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user