- Poetry version: 1.2.2
- Python version: 3.9
- OS version and name: macos-12
- pyproject.toml:
[tool.poetry]
name = "macos-ci-testing"
version = "0.1.0"
description = "Just testing"
authors = []
[tool.poetry.dependencies]
python = "~3.9.0"
pyobjc-framework-SystemConfiguration = "^8"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Issue
After an update in the macos-12 images from github actions, our CI job on macos started to fail during poetry install with the following error (fulltrace here):
...
ERROR: pyobjc_framework_SystemConfiguration-8.5.1-cp36-abi3-macosx_11_0_universal2.whl is not a supported wheel on this platform.
...
I managed to reproduce the error in a new repository with minimal configuration:
https://github.com/vxgmichel/macos-ci-testing
The workflow is really simple too:
test-macos:
name: macOS
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install poetry
run: pip3 install poetry packaging
- name: Run debug script
run: python debug.py
- name: Install project
run: poetry install -vvv
After a quick investigation, I noticed something weird: packaging.tags.sys_tags and poetry.core._vendor.packaging.tags.sys_tags do not provide the same tag list.
In particular, this debug.py script yields:
Looking for 'cp36-abi3-macosx_11_0_universal2':
- in `sys_tags` provided by packaging: True
- in `sys_tags` provided by poetry: False
The full difference can be found here.
I suspect that different implementations of sys_tags are used to:
- first, choose which wheel to download
- then, when installing, check that the wheel is supported
This is as far as I can get with my limited knowledge of poetry, and I might be missing something else.
-vvvoption) and have included the output below.Issue
After an update in the
macos-12images from github actions, our CI job on macos started to fail duringpoetry installwith the following error (fulltrace here):I managed to reproduce the error in a new repository with minimal configuration:
https://github.com/vxgmichel/macos-ci-testing
The workflow is really simple too:
After a quick investigation, I noticed something weird:
packaging.tags.sys_tagsandpoetry.core._vendor.packaging.tags.sys_tagsdo not provide the same tag list.In particular, this debug.py script yields:
The full difference can be found here.
I suspect that different implementations of
sys_tagsare used to:This is as far as I can get with my limited knowledge of poetry, and I might be missing something else.