-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
use setuptools.parse_version in _version_check #3488
Conversation
Jenkins, ok to test. |
@dstufft can you please tell us what to do here :-) |
@craigahobbs what's the motivation here? Modern |
I think that the only benefit to this is old setuptools and possibly future setuptools if we convince jaraco to re-bundle his deps. Whether that's worth it or not I dunno, but besides that the change looks fine on the surface. |
Oh. I just realized, a downside of this is |
We already use |
We moved that import into the function, so it's only imported when you call |
|
Ah right. |
Regarding motivation, it is solely to eliminate the dependency on packaging. Not a huge deal. We're using Python 3.6 and use the setuptools included with Python. Interestingly, it seems to include packaging - it imports it like this "from pkg_resources.extern import packaging" - not that I'd recommend that. |
This eliminates the dependency on packaging.