jazzband / pip-tools

A set of tools to keep your pinned Python dependencies fresh.
https://pip-tools.rtfd.io
BSD 3-Clause "New" or "Revised" License
7.69k stars 610 forks source link

pip-compile does not find extras #1993

Closed q0w closed 11 months ago

q0w commented 11 months ago

Pip-compile does not find dj_rest_auth extras. (pip install -r requirements.in works as expected.)

Environment Versions

  1. OS Type: Linux
  2. Python version: $ python -V 3.11.5
  3. pip version: $ pip --version: 23.2.1
  4. pip-tools version: $ pip-compile --version 7.3.0

Steps to replicate

echo "dj_rest_auth[with_social]" > requirements.in
pip-compile --strip-extras --allow-unsafe --no-config
WARNING: dj-rest-auth 5.0.1 does not provide the extra 'with_social'

Expected result

requirements.txt contains django-allauth.

Actual result

There is no django-allauth in requirements.txt

q0w commented 11 months ago

pip>22 also does not find with_social extra. It seems pip now expects normalized extra name - with-social

terencehonles commented 11 months ago

if that's the case then you should either open an issue with pip or close this since it would be working as intended. This tool uses pip itself and will mimic that behavior.

q0w commented 11 months ago

Yea, I know. Just forgot to close.

naisanzaa commented 4 months ago

did you find a solution?

q0w commented 4 months ago

I replaced with_social with with-social myself in requirements.in