Repository navigation
Closed
Closed
Copy link
Description
Poetry-core 1.5.0, which was released 30 minutes ago, adds additional validation for the extras section, which causes this error when installing from source:
% pip install --no-binary :all: -U isort
DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at https://github.com/pypa/pip/issues/11453
Collecting isort
Downloading isort-5.11.4.tar.gz (187 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 187.2/187.2 kB 3.7 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
Traceback (most recent call last):
File "/Users/msmith/.venv/bw-310/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
main()
File "/Users/msmith/.venv/bw-310/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/msmith/.venv/bw-310/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/private/var/folders/2t/th8vxc813_gcch7lkh1sbbmc0000gp/T/pip-build-env-cq_z9ahi/overlay/lib/python3.10/site-packages/poetry/core/masonry/api.py", line 40, in prepare_metadata_for_build_wheel
poetry = Factory().create_poetry(Path(".").resolve(), with_groups=False)
File "/private/var/folders/2t/th8vxc813_gcch7lkh1sbbmc0000gp/T/pip-build-env-cq_z9ahi/overlay/lib/python3.10/site-packages/poetry/core/factory.py", line 57, in create_poetry
raise RuntimeError("The Poetry configuration is invalid:\n" + message)
RuntimeError: The Poetry configuration is invalid:
- [extras.pipfile_deprecated_finder.2] 'pip-shims<=0.3.4' does not match '^[a-zA-Z-_.0-9]+$'
Unfortunately I think this affects everyone who uses isort via pre-commit.
Reacted by Jonas L., Wenwei Zhang, Armand Rego, darpham, Jerin Peter George, Malcolm Smith, Sebastian Kalinowski, simon-liebehenschel, Sean, Niels Wouda and 69 more
Reacted by Jason T Brown and Janosh Riebesell
Metadata
Metadata
Assignees
Labels
No labels
Activity
mhsmith commentedon Jan 28, 2023
To prevent something like this from happening again, maybe isort's pyproject.toml should pin a specific version of poetry-core.
svntmr commentedon Jan 28, 2023
+1, I have the same problem
ZwwWayne commentedon Jan 28, 2023
Similar issues occurred in the CI of MMDetection, e.g., https://github.com/open-mmlab/mmdetection/actions/runs/4031655722/jobs/6931070982
Temporarily disable `isort` pre-commit hook due to PyCQA/isort#2077.
Disable isort in pre-commit hooks until issue PyCQA/isort#2077 with n…
Disable isort in pre-commit hooks until issue PyCQA/isort#2077 with n…
bump isort
Bump isort pre-commit hook to 5.12.0
Bump isort pre-commit hook to 5.12.0
Upgrade to isort 5.12.0 (#342)
fix(ci): update isort to latest fix because of PyCQA/isort/issues/2077
Avoid pre-commit isort crash (#1803)
Dependencies: Update pre-commit requirement `isort==5.12.0`
Dependencies: Update pre-commit requirement `isort==5.12.0` (#5877)
137 remaining items
Upgrade version of isort in pre-commit to prevent poetry bug
update hook urls; upgrade isort issue: PyCQA/isort#2077
fix pre-commit and isort issue. PyCQA/isort#2077
tests: bump pre-commit
[FIX] Update copier template
Upgrade to isort 5.12.0
[FIX] isort: started breaking the world today
Update pre-commit black and isort version
[FIX] Update copier template
[FIX] Update copier template
Dependencies: Update pre-commit requirement `isort==5.12.0`
Dependencies: Update pre-commit requirement `isort==5.12.0`
Dependencies: Update pre-commit requirement `isort==5.12.0` (#12)
Bump isort to 5.12 in pre-commit hooks to resolve issue PyCQA/isort#2077
[FIX] Update copier template