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 ignores environment-marked requirements in setup.py's install_requires section, even when the condition succeeds. However, this does not happen when using a requirements.in file with the same requirements.
Environment Versions
macOS Mojave
Python version: 3.6.0
pip version: 19.3
pip-tools version: 4.2.0
Steps to replicate
Create a requirements.in file with requests>1.0;python_version=='3.6'. Run pip-compile with Python 3.6 .
In a separate folder, create a setup.py file with
from setuptools import setup
setup(
name="my-package",
install_requires=["requests>=1.0;python_version=='3.6'"],
)
Run pip-compile with Python 3.6 .
Expected result
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile
#
certifi==2019.9.11 # via requests
chardet==3.0.4 # via requests
idna==2.8 # via requests
requests==2.22.0 ; python_version == "3.6"
urllib3==1.25.6 # via requests
for both.
Actual result
The above for the requirements.in file, just the top comments (no actual requirements) for the setup.py file.
The text was updated successfully, but these errors were encountered:
Pip-compile ignores environment-marked requirements in
setup.py
'sinstall_requires
section, even when the condition succeeds. However, this does not happen when using arequirements.in
file with the same requirements.Environment Versions
Steps to replicate
requirements.in
file withrequests>1.0;python_version=='3.6'
. Runpip-compile
with Python 3.6 .setup.py
file withRun
pip-compile
with Python 3.6 .Expected result
for both.
Actual result
The above for the
requirements.in
file, just the top comments (no actual requirements) for thesetup.py
file.The text was updated successfully, but these errors were encountered: