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

Update testing setup for python 3.11 and django 5.0 #583

Merged
merged 26 commits into from
May 9, 2024

Conversation

mrchrisadams
Copy link
Member

@mrchrisadams mrchrisadams commented May 3, 2024

This is bit of a monster PR. I do apologise for not making it smaller.

Updates to our testing / dev setup:

  • use python 3.11 as main runtime
  • use uv for installing python deps, instead of pipenv
  • use regular python code instead of pipenv as runner
  • update gitpod accordingly
  • update services in testing setup (upgrade mariadb, remove redis)
  • use dotenv for managing environment variables instead of pipenv

Updates to runtime:

  • use python 3.11 as main runtime
  • use uv for installing python dependencies, with a dedicated build for linux
  • use systemd instead of supervisord (for its native handling of env files, logging, and to remove another moving part)
  • set up gunicorn to use access_log, so we see requests, and their duration in logs

Updates to Django

  • Update to Django 5.0.4
  • Update all the dependencies to work with django 5
  • Update django admin to use the new logo (!)

Update python, remove redis, update mariadb
3.11 still has distutils
3.12 fails building with pipenv because of distutils being removed
@mrchrisadams
Copy link
Member Author

Copy link

gitpod-io bot commented May 6, 2024

@mrchrisadams mrchrisadams changed the title Update testing setup for python 3.12 and django 5.0 Update testing setup for python 3.11 and django 5.0 May 9, 2024
@mrchrisadams mrchrisadams force-pushed the ca-card-357-update-django branch from 7112c64 to 22c2bb3 Compare May 9, 2024 13:32
@mrchrisadams mrchrisadams merged commit 3cf1de6 into master May 9, 2024
3 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.

1 participant