-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
PR: Sever the dependency on packaging.version
(dependencies)
#508
base: master
Are you sure you want to change the base?
Conversation
8a4ff57
to
176c2ed
Compare
One (minor?) downside is that this add a new function to the public API. If y'all agree that this is a good idea in general but would prefer for it to be private (or named differently) I'll happily rename it to Thanks again for qtpy, BTW. I really appreciate the effort that has gone into this project. |
Hey @davvid, nice to see you contributing to Qtpy again!
I don't see much of a problem with this but could you better motivate the rationale for it? Does
I was about to say that: the function should be renamed @dalthviz, what do think?
Thanks for git-cola too! Big fan until this day. |
I think its fine but I'm curious too about why is better to not have |
packaging.version
(dependencies)
176c2ed
to
d2bac27
Compare
…arse() is not installed Continue relying on packaging.version.parse() when it is installed. Our internal parsing code is now used as a fallback instead. Suggested-by: @dalthviz in spyder-ide#508
d2bac27
to
f22fe22
Compare
Thanks for reviewing. I've updated the commit message to provide a little more rational. The basic idea is that this makes Not that it matters, but I've been patching this change into a vendored copy of qtpy for a while now and it seems better to improve I implemented @dalthviz's suggestion to have our simpler Unfortunately, I was not able to move Going through that exercise did make me notice that Thanks for considering this change. Cheers. |
…arse() is not installed Continue relying on packaging.version.parse() when it is installed. Our internal parsing code is now used as a fallback instead. Suggested-by: @dalthviz in spyder-ide#508
80d5771
to
1de683e
Compare
…arse() is not installed Continue relying on packaging.version.parse() when it is installed. Our internal parsing code is now used as a fallback instead. Suggested-by: @dalthviz in spyder-ide#508
Make qtpy more self-contained by implementing our own version `parse()` function instead of relying on `packaging.version`. This makes it `qtpy` completely independent so that it can be trivially vendored and used in environments where `packaging` is not installed on the user's machine.
…arse() is not installed Continue relying on packaging.version.parse() when it is installed. Our internal parsing code is now used as a fallback instead. Suggested-by: @dalthviz in spyder-ide#508
6b291cb
to
1fe2e9f
Compare
Make qtpy more self-contained by implementing our own simple version parse() function instead of relying on packaging.version.