You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our build pipeline is executing the following command to generate a requirements.txt that will be used to create a virtual environment to execute to the build afterwards:
poetry export --with dev --with-credentials -o requirements.txt
Since our project has black as a development dependency, the file will also contain the dependencies required by black. However since we upgraded to blackversion 23.12.0, when the pipele installs the dependencies using pip install -r requirements.txt, that latter command fails with the following error which looks like it is unable to regenerate a consistent requirements.txt in that new black version:
Collecting aiohttp>=3.7.4 (from black==23.12.0->-r requirements.txt (line 13))
ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not:
aiohttp>=3.7.4 from https://files.pythonhosted.org/packages/a0/ed/83c4e2ae68bf31ef28b50fdcbd885792de03e94e4b0587ed08a02095f79a/aiohttp-3.9.1-cp311-cp311-musllinux_1_1_x86_64.whl (from black==23.12.0->-r requirements.txt (line 13))
To Reproduce
Create a project with poetry
Add black 23.12.0 as a dependency to that new project
Generate a requirements.txt using command poetry export --with dev --with-credentials -o requirements.txt
Now tries to create a new Python virtual environment out of the generated requirements.txt issuing command pip install -r requirements.txt.
Expected behavior
We were expecting poetry to generate the requirements.txt consistently and not getting the error above when using that file to install dependencies using pip install -r requirements.txt.
Environment
Black version: 23.12.0
OS and Python version: official Python 3.11.7 docker image based on alpine -> docker pull python:3.11.7-alpine
Additional context
No additional context.
The text was updated successfully, but these errors were encountered:
Is this intended that aiohttp is blacks default dependency
I have a different concern that I am unable to install blackwithout installing aiohttp. To me it seems by pyproject.toml that default installation should not include aiohttp and only pip install black[d] should by dependent on aiohttp and create blackd script.
Describe the bug
Our build pipeline is executing the following command to generate a
requirements.txt
that will be used to create a virtual environment to execute to the build afterwards:Since our project has
black
as a development dependency, the file will also contain the dependencies required byblack
. However since we upgraded toblack
version 23.12.0, when the pipele installs the dependencies usingpip install -r requirements.txt
, that latter command fails with the following error which looks like it is unable to regenerate a consistent requirements.txt in that new black version:To Reproduce
requirements.txt
using commandpoetry export --with dev --with-credentials -o requirements.txt
requirements.txt
issuing commandpip install -r requirements.txt
.Expected behavior
We were expecting poetry to generate the
requirements.txt
consistently and not getting the error above when using that file to install dependencies usingpip install -r requirements.txt
.Environment
docker pull python:3.11.7-alpine
Additional context
No additional context.
The text was updated successfully, but these errors were encountered: