Pip-tools: 5.1.2 loses vapi-runtime requirements when vapi_client_bindings also depended on

Created on 9 Jun 2020  路  6Comments  路  Source: jazzband/pip-tools

Environment Versions

  1. OS Type: Linux
  2. Python version: Python 3.6.10 :: Anaconda, Inc.
  3. pip version: pip 20.1.1
  4. pip-tools version: pip-compile, version 5.1.2

Steps to replicate

Working on finding a minimal example, but I thought I'd report in the meantime, in cases others run into the same issue and want to chime in.

  1. Have a requirements.in containing some requirements including vapi-runtime
  2. pip-compile with 5.1.1
  3. requirements.txt contains pyopenssl.
  4. pip-compile with 5.1.2

Expected result

requirements.txt remains the same.

Actual result

pyopenssl is dropped. Also some via references between the various VMware packages are dropped.

bug duplicate resolver

Most helpful comment

Hello @clacke,

Thanks for the issue! This should be fixed in #1159. I'll prepare a release soon.

All 6 comments

Hello @clacke,

Thanks for the issue! This should be fixed in #1159. I'll prepare a release soon.

Ok, thanks! I just found the minimal requirements.in, which turned out to be really short, so I'll paste it and the output here for reference.

@clacke could you reproduce the bug with the current master?

requirements.in

https://github.com/vmware/vsphere-automation-sdk-python/raw/266c95dd7313ca6b08414b631358bf9b38f21169/lib/vapi-runtime/vapi_runtime-2.14.0-py2.py3-none-any.whl#egg=vapi_runtime
https://github.com/vmware/vsphere-automation-sdk-python/raw/266c95dd7313ca6b08414b631358bf9b38f21169/lib/vapi-client-bindings/vapi_client_bindings-3.2.0-py2.py3-none-any.whl#egg=vapi_client_bindings

pip-compile 5.1.1 requirements.txt

ertifi==2020.4.5.2       # via requests
cffi==1.14.0              # via cryptography
chardet==3.0.4            # via requests
cryptography==2.9.2       # via pyopenssl
idna==2.9                 # via requests
pycparser==2.20           # via cffi
pyopenssl==19.1.0         # via vapi-runtime
requests==2.23.0          # via vapi-runtime
six==1.15.0               # via cryptography, pyopenssl, vapi-runtime
urllib3==1.25.9           # via requests
https://github.com/vmware/vsphere-automation-sdk-python/raw/266c95dd7313ca6b08414b631358bf9b38f21169/lib/vapi-client-bindings/vapi_client_bindings-3.2.0-py2.py3-none-any.whl#egg=vapi_client_bindings  # via -r requirements.in
https://github.com/vmware/vsphere-automation-sdk-python/raw/266c95dd7313ca6b08414b631358bf9b38f21169/lib/vapi-runtime/vapi_runtime-2.14.0-py2.py3-none-any.whl#egg=vapi_runtime  # via -r requirements.in, vapi-client-bindings

pip-compile 5.1.2 requirements.txt

https://github.com/vmware/vsphere-automation-sdk-python/raw/266c95dd7313ca6b08414b631358bf9b38f21169/lib/vapi-client-bindings/vapi_client_bindings-3.2.0-py2.py3-none-any.whl#egg=vapi_client_bindings  # via -r requirements.in
https://github.com/vmware/vsphere-automation-sdk-python/raw/266c95dd7313ca6b08414b631358bf9b38f21169/lib/vapi-runtime/vapi_runtime-2.14.0-py2.py3-none-any.whl#egg=vapi_runtime  # via -r requirements.in, vapi-client-bindings

pip-compile, version 5.2.1.dev2+g0d05314

certifi==2020.4.5.2       # via requests
cffi==1.14.0              # via cryptography
chardet==3.0.4            # via requests
cryptography==2.9.2       # via pyopenssl
idna==2.9                 # via requests
pycparser==2.20           # via cffi
pyopenssl==19.1.0         # via vapi-runtime
requests==2.23.0          # via vapi-runtime
six==1.15.0               # via cryptography, pyopenssl, vapi-runtime
urllib3==1.25.9           # via requests
https://github.com/vmware/vsphere-automation-sdk-python/raw/266c95dd7313ca6b08414b631358bf9b38f21169/lib/vapi-client-bindings/vapi_client_bindings-3.2.0-py2.py3-none-any.whl#egg=vapi_client_bindings  # via -r requirements.in
https://github.com/vmware/vsphere-automation-sdk-python/raw/266c95dd7313ca6b08414b631358bf9b38f21169/lib/vapi-runtime/vapi_runtime-2.14.0-py2.py3-none-any.whl#egg=vapi_runtime  # via -r requirements.in, vapi-client-bindings

Awesomesauce! Closing.

pip-tools v5.2.1 is released

Was this page helpful?
0 / 5 - 0 ratings