-
Notifications
You must be signed in to change notification settings - Fork 31
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
Remove use of distutils #120
Conversation
edgarrmondragon
commented
Oct 14, 2023
•
edited
Loading
edited
- Closes distutils was removed in Python 3.12 #121
- Closes getting "distutils Version classes are deprecated" warnings #118
@microsoft-github-policy-service agree |
@@ -21,7 +21,7 @@ def __init__(self, lockfile_path): | |||
self._lockpath = lockfile_path | |||
# Support for passing through arguments to the open syscall was added in v1.4.0 | |||
open_kwargs = ({'buffering': 0} | |||
if LooseVersion(portalocker.__version__) >= LooseVersion("1.4.0") else {}) | |||
if Version(portalocker.__version__) >= Version("1.4.0") else {}) |
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 don't think LooseVersion
is really needed here and Version
should be good enough.
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.
The LooseVersion()
was introduced by @bluca . What do you think with this change, Luca?
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.
looks good to me, thanks
Thanks @bluca! Tests are passing for me locally, even on 2.7: Test results on 2.7
So I pushed another commit to use |
Hey @rayluo & @bluca , how are you doing? Could you priotize this to be merged soon? It's a blocker for anyone using the Thanks! 🙏 |
Hey folks 👋 Is it worth making a new release with this change? |