-
Notifications
You must be signed in to change notification settings - Fork 203
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
also run unit tests with Python 3.12 + add it to classifiers in setup.py
#4484
Conversation
This (or "pip install build" with "python -m build") is needed for Python 3.12 with "python setup.py sdist"
I didn't add setuptools to requirements.txt since it's not an explicit runtime dependency, we only need it for |
This gives a SyntaxWarning in Python 3.12. In older Pythons it would not warn, but in all cases it gives a literal raw \u (with a backslash) instead of Unicode characters. Python 2.x needed u'\uxxxx' but the u is no longer needed with 3.x.
Still needs some work on Unicode handling. |
This fixes Python 3.6 with LC_ALL=C. For Python 3.7+ we always get 'utf-8': https://docs.python.org/3/library/os.html#utf8-mode
.github/workflows/unit_tests.yml
Outdated
@@ -83,6 +85,10 @@ jobs: | |||
pip install --upgrade pip | |||
pip --version | |||
pip install -r requirements.txt | |||
if [[ "${{matrix.python}}" == 3.12 ]]; then |
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.
This will also be required for Python versions > 3.12, right?
Can we cut off the minor part (12) and then do a comparison, so we can forget about this?
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 thought in the end it's even better to check for functionality: so checking if distutils can be imported rather than an explicit version check.
This makes the check more general and compatible with later versions of Python than just 3.12.
No description provided.