-
Notifications
You must be signed in to change notification settings - Fork 45
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
Fix flanker dependency package version to maintain py2 support #28
Conversation
tld
package version to maintain py2 support
tld
package version to maintain py2 supportThere 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.
👍
Thanks for the fix!
Thanks for approving. LMK what else is needed to get this merged. @blag ? |
NAK. This just buries the fix in a separate package. Instead, I think it's cleaner and easier to simply specify a Python 2.7-only dependency along with a general dependency in
When installed in an environment with Python < 3.0, it will limit @punkrokk @armab What do you think of that? Sources:
Edit: I should also add that this works because flanker currently doesn't even partially pin its version of tld. If that project ever does pin the tld version that doesn't overlap with |
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.
NAK
I love it. I didn’t know that trick.
Cheers,
JP
… On Dec 11, 2019, at 2:01 AM, blag ***@***.***> wrote:
NAK. This just buries the fix in a separate package. Instead, I think it's cleaner and easier to simply specify a Python 2.7-only dependency along with a general dependency in requirements.txt, like so:
tld<0.11; python_version < '3.0'
tld
When installed in an environment with Python < 3.0, it will limit tld to 0.10 or 0.10.x. When installed in an environment with Python >= 3.0, it will install any version of tld.
@punkrokk @armab What do you think of that?
Sources:
https://pip.pypa.io/en/stable/reference/pip_install/#requirement-specifiers
https://stackoverflow.com/a/33451105
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Same here, nice trick I didn't know about. Thanks @blag! |
Closing in favor of #29. |
Fixes: #27 - See issue for details