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

Python 3.10+ #474

Open
The-Compiler opened this issue Jun 8, 2022 · 1 comment
Open

Python 3.10+ #474

The-Compiler opened this issue Jun 8, 2022 · 1 comment

Comments

@The-Compiler
Copy link
Member

Wir nutzen momentan Python 3.7. Dies wird noch bis Mitte 2023 unterstützt: https://devguide.python.org/#status-of-python-branches

Für Django 4.x (#473) sollten wir aber auf 3.8+ upgraden, idealerweise dann wohl grad 3.11. Ein kurzer Test zeigt einige Warnings, jedoch primär in Django selbst oder sonstigen third-party libs:

../../../usr/local/lib/python3.11/site-packages/django/http/request.py:1
  /usr/local/lib/python3.11/site-packages/django/http/request.py:1: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
    import cgi

../../../usr/local/lib/python3.11/site-packages/django/utils/encoding.py:257
  /usr/local/lib/python3.11/site-packages/django/utils/encoding.py:257: DeprecationWarning: Use setlocale(), getencoding() and getlocale() instead
    encoding = locale.getdefaultlocale()[1] or "ascii"

../../../usr/local/lib/python3.11/site-packages/certifi/core.py:36
  /usr/local/lib/python3.11/site-packages/certifi/core.py:36: DeprecationWarning: path is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
    _CACERT_CTX = get_path("certifi", "cacert.pem")

tests/documents/test_views.py::DocumentDownloadTest::testExamRequireLogin
  <frozen importlib._bootstrap>:283: DeprecationWarning: the load_module() method is deprecated and slated for removal in Python 3.12; use exec_module() instead
The-Compiler added a commit to studentenportal/docker-studentenportal-base that referenced this issue Aug 25, 2022
The-Compiler added a commit that referenced this issue Aug 25, 2022
@The-Compiler
Copy link
Member Author

Mit Python 3.10 gabs ne Warning, die ich auf Anhieb grad nicht lokalisieren konnte:

tests/documents/test_views.py::DocumentDownloadTest::testExamRequireLogin
  <frozen importlib._bootstrap>:283: DeprecationWarning: the load_module() method is deprecated and slated for removal in Python 3.12; use exec_module() instead

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Also gabs jetzt erstmal Python 3.9. Vermutlich machts Sinn, sich 3.10 bzw. gleich 3.11 dann zusammen mit Django 4 anzuschauen.

@The-Compiler The-Compiler changed the title Python 3.8+ Python 3.10+ Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant