-
-
Notifications
You must be signed in to change notification settings - Fork 629
Closed
Labels
annotationsRelated to packages annotationsRelated to packages annotationsawaiting responseAwaiting response from a contributorAwaiting response from a contributorextrasHandling optional dependenciesHandling optional dependenciespipRelated to pipRelated to pipresolverRelated to dependency resolverRelated to dependency resolversupportUser supportUser supportwriterRelated to results output writer componentRelated to results output writer component
Description
When running pip-compile
+ pip
23.3 with a requirements.in containing pytest-cov
, it shows a weird dependency list with coverage[toml]
being installed because of a dependency on coverage
. Note that actual package versions are completely fine, this seems to be purely cosmetic.
Things seem better with the previous pip
23.2.1.
Not sure what causes this -- it could pip, pip-tools, pytest-cov or coverage, but pip-tools
has the best community vibes so I'm trying here first ;)
Environment Versions
MacOS 13.6, python 3.11.6 managed through pyenv, fresh virtualenv with latest pip and pip-tools:
$ pip freeze --all
build==1.0.3
click==8.1.7
packaging==23.2
pip==23.3
pip-tools==7.3.0
pyproject_hooks==1.0.0
setuptools==65.5.0
wheel==0.41.2
Steps to replicate
$ cat requirements.in
pytest-cov
$ pip-compile requirements.in
Expected result
$ pip-compile requirements.in
WARNING: --strip-extras is becoming the default in version 8.0.0. To silence this warning, either use --strip-extras to opt into the new default or use --no-strip-extras to retain the existing behavior.
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile requirements.in
#
coverage[toml]==7.3.2
# via pytest-cov
iniconfig==2.0.0
# via pytest
packaging==23.2
# via pytest
pluggy==1.3.0
# via pytest
pytest==7.4.2
# via pytest-cov
pytest-cov==4.1.0
# via -r requirements.in
Actual result
$ pip-compile requirements.in
WARNING: --strip-extras is becoming the default in version 8.0.0. To silence this warning, either use --strip-extras to opt into the new default or use --no-strip-extras to retain the existing behavior.
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile requirements.in
#
coverage[toml]==7.3.2
# via
# coverage
# pytest-cov
iniconfig==2.0.0
# via pytest
packaging==23.2
# via pytest
pluggy==1.3.0
# via pytest
pytest==7.4.2
# via pytest-cov
pytest-cov==4.1.0
# via -r requirements.in
Metadata
Metadata
Assignees
Labels
annotationsRelated to packages annotationsRelated to packages annotationsawaiting responseAwaiting response from a contributorAwaiting response from a contributorextrasHandling optional dependenciesHandling optional dependenciespipRelated to pipRelated to pipresolverRelated to dependency resolverRelated to dependency resolversupportUser supportUser supportwriterRelated to results output writer componentRelated to results output writer component