-
-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse environment markers from setup.py install_requires #1042
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1042 +/- ##
==========================================
- Coverage 99.5% 99.26% -0.24%
==========================================
Files 34 34
Lines 2408 2438 +30
Branches 306 312 +6
==========================================
+ Hits 2396 2420 +24
- Misses 6 10 +4
- Partials 6 8 +2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @atugushev I am not sure if I understand #908 correctly. You propose the support of |
The original propose is to use |
Hm, I don't consider parsing Windows-specific dependencies when being on Linux. I am fine with compiling dependencies twice: once on a Windows machine, and the second time on a Linux machine. In my project, I have a few dependencies that can be satisfied only on Linux. Thus in my If |
Yes, it works for the environment markers. You can try how it works by:
|
@atugushev cool, just tested, seems like a solution for me. What's the status of #908 then? Can I help you with the implementation? |
It's still under discussion, you might join there and express your thoughts.
Sure, any contributions are highly welcomed and encouraged 😉 |
…y in install_requires or extras_require
from setuptools import setup | ||
setup( | ||
install_requires=[ | ||
'small-fake-a==0.1 ; "linux" in sys_platform', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add some corner cases. Like empty or whitespace-only string after ;
, also multiple conditions
Hi. Any updates on this? I'd love to see support for environment markers integrated in |
I'm going to close this in favor of #1311. Thanks for the PR anyway! 🙏🏼 |
Changelog-friendly one-liner: Added scanning of
extras_require
insetup.py
for additional dependencies which might come from using environment markers ininstall_requires
.Contributor checklist