Use environment markers from setup.py install_requires #1749
Labels
markers
Related to environment markers
setuptools
Related to compiling requirements with `setuptools` build backend
What's the problem this feature will solve?
On a
setup.py
we have:On our
requirements.in
we have:But the environment marker defined on
setup.py
does not land inrequirements.txt
once we runpip-compile requirements.in
:Describe the solution you'd like
Get the environment marker from
setup.py
land inrequirements.txt
Alternative Solutions
The workaround so far is to manually add
stdlib-list ; python_version < "3.10"
on requirements.in, which is not a big deal, but if defeats the purpose of using-e file:.#z3c.dependencychecker[test]
onrequirements.in
Additional context
https://peps.python.org/pep-0508/#environment-markers
Thanks for this wonderful package! ✨ ❤️ it saved plenty of work/hobby hours of mine! 🙇🏾
The text was updated successfully, but these errors were encountered: