Skip to content

[74] Update dependencies and fix Python 3.13 compatibility#75

Merged
nirlipo merged 2 commits into
developfrom
74-update-python-deps
Jun 10, 2026
Merged

[74] Update dependencies and fix Python 3.13 compatibility#75
nirlipo merged 2 commits into
developfrom
74-update-python-deps

Conversation

@nirlipo

@nirlipo nirlipo commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Updated requirements.txt to Python 3.13-compatible versions (Django 5.2, numpy 2.x, Pillow 10+, djangorestframework 3.15+, etc.); removed dev-only tools (pipenv, virtualenv) and the zipfile36 Python 3.6 backport
  • Fixed server/urls.py: replaced the removed django.conf.urls.url() with re_path() from django.urls (dropped in Django 4.0)
  • Added DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' to settings.py to silence Django 5.x auto-field warning
  • Updated Dockerfile base image from EOL python:3.6-alpine to python:3.13-alpine; fixed ENV key=value syntax and JSON CMD form

Test plan

  • pip install -r requirements.txt completes without errors on Python 3.13
  • python manage.py migrate runs cleanly (0 issues)
  • python manage.py runserver starts and GET /api/ returns HTTP 200
  • docker build -t planimation-backend:latest -f server/docker/release/Dockerfile server succeeds with no warnings
  • Docker container starts and GET /api/ returns HTTP 200 on port 8000

Resolves #74

🤖 Generated with Claude Code

nirlipo added 2 commits June 10, 2026 12:57
* Updated requirements.txt to modern Python 3.13-compatible versions
  (Django 5.2, numpy 2.x, Pillow 10+, etc.); removed dev tools and
  Python 3.6 backports
* Fixed server/urls.py: replaced removed url() with re_path() from
  django.urls (url() was dropped in Django 4.0)
* Added DEFAULT_AUTO_FIELD to settings.py to silence Django 5.x warning
* Updated Dockerfile base image from EOL python:3.6-alpine to
  python:3.13-alpine; fixed ENV and CMD syntax

Resolves #74
Django 5.x requires Python 3.10+; pip on Python 3.8 cannot resolve
Django>=5.1 at all. Also bumped actions/checkout and setup-python
to their latest major versions (v4/v5).

Resolves #74

@nirlipo nirlipo left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked all steps work in my local machine

@nirlipo nirlipo closed this Jun 10, 2026
@nirlipo nirlipo reopened this Jun 10, 2026
@nirlipo nirlipo merged commit 67defeb into develop Jun 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update dependencies and fix compatibility with Python 3.13

1 participant