Skip to content
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

DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12 #123

Closed
fredrike opened this issue Dec 6, 2023 · 3 comments · Fixed by #124
Labels
question Further information is requested

Comments

@fredrike
Copy link

fredrike commented Dec 6, 2023

I get the following warning in pytest:

venv/lib/python3.10/site-packages/msal_extensions/cache_lock.py:7: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.version import LooseVersion
@rayluo rayluo added the question Further information is requested label Dec 6, 2023
@rayluo
Copy link
Contributor

rayluo commented Dec 6, 2023

Were you using our 1.0.0 version? We fixed this issue recently. You may pull our latest dev branch and try it out. Let us know if that works. We will ship a new version soon.

@fredrike
Copy link
Author

fredrike commented Dec 7, 2023

Well, I'm using the latest version fråm pypi, I do not have an extra environment to help you with testing.

@rayluo
Copy link
Contributor

rayluo commented Dec 7, 2023

You do not have to use an extra environment. Your existing environment can pull the not-yet-released version from this official repo by:

pip uninstall msal-extensions
pip install git+https://github.com/AzureAD/microsoft-authentication-extensions-for-python.git@dev

Afterwards, you can always revert back to the existing 1.0.0 version by a normal pip install msal-extensions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants