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
$ pip-compile --help
--unsafe-package TEXT Specify a package to consider unsafe; may be
used more than once. Replaces default unsafe
packages: distribute, pip, setuptools
Environment Versions
OS Type macos 13.0.1
Python version: 3.9.7
pip version: 22.3.1
pip-tools version: 6.11.0
Steps to replicate
define foo.in
pyramid
pip-compile --unsafe-package pip foo.in
Expected result
Pinned setuptools.
Actual result
Unpinned setuptools.
Below are the commands with and without --unsafe-package and note the output is the same.
❯ pip-compile foo.in
WARNING: using legacy resolver is deprecated and will be removed in future versions. The default resolver will be change to 'backtracking' in 7.0.0 version. Specify --resolver=backtracking to silence this warning.
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile foo.in
#
hupper==1.10.3
# via pyramid
pastedeploy==3.0.1
# via plaster-pastedeploy
plaster==1.1.2
# via
# plaster-pastedeploy
# pyramid
plaster-pastedeploy==1.0.1
# via pyramid
pyramid==2.0
# via -r foo.in
translationstring==1.4
# via pyramid
venusian==3.0.0
# via pyramid
webob==1.8.7
# via pyramid
zope-deprecation==4.4.0
# via pyramid
zope-interface==5.5.2
# via pyramid
# The following packages are considered to be unsafe in a requirements file:
# setuptools
❯ pip-compile --unsafe-package pip foo.in
WARNING: using legacy resolver is deprecated and will be removed in future versions. The default resolver will be change to 'backtracking' in 7.0.0 version. Specify --resolver=backtracking to silence this warning.
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --unsafe-package=pip foo.in
#
hupper==1.10.3
# via pyramid
pastedeploy==3.0.1
# via plaster-pastedeploy
plaster==1.1.2
# via
# plaster-pastedeploy
# pyramid
plaster-pastedeploy==1.0.1
# via pyramid
pyramid==2.0
# via -r foo.in
translationstring==1.4
# via pyramid
venusian==3.0.0
# via pyramid
webob==1.8.7
# via pyramid
zope-deprecation==4.4.0
# via pyramid
zope-interface==5.5.2
# via pyramid
# The following packages are considered to be unsafe in a requirements file:
# setuptools
Note that if I use --allow-unsafe then everything ends up pinned, including pip in my env where pip gets included as well. Specifically pip-tools itself depends on pip so and we have pip-tools in one of our requirements files.
Also note that it says Python 3.10 was used which is incorrect. Opening a separate issue for this.
The text was updated successfully, but these errors were encountered:
Environment Versions
macos 13.0.1
3.9.7
22.3.1
6.11.0
Steps to replicate
foo.in
pip-compile --unsafe-package pip foo.in
Expected result
Pinned setuptools.
Actual result
Unpinned setuptools.
Below are the commands with and without
--unsafe-package
and note the output is the same.Note that if I use
--allow-unsafe
then everything ends up pinned, including pip in my env where pip gets included as well. Specifically pip-tools itself depends on pip so and we have pip-tools in one of our requirements files.Also note that it says Python 3.10 was used which is incorrect. Opening a separate issue for this.
The text was updated successfully, but these errors were encountered: