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

Upgrade website to be compatible with Python3 #136

Merged
merged 6 commits into from
Aug 9, 2023

Conversation

ibennetch
Copy link
Member

@ibennetch ibennetch commented Oct 25, 2020

This series of commits should upgrade the website to Python3 compatibility.

It doesn't automatically upgrade the software running on the server, so before merging we should be ready to perform the appropriate software installation/reconfiguration. I believe that merging this while still on Python2 will break the site. As a result, this is currently a draft pull request.

Closes: #132

@ibennetch
Copy link
Member Author

ibennetch commented Oct 25, 2020

Remaining items to do:

  • Modify settings.py (at least the MIDDLEWARE directive becomes MIDDLEWARE_CLASSES and needs 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', added) (bfef788)
  • Prepare the server with the proper Python3 requirements
  • Modify .travis.yml with correct requirements

Copy link
Member

@MauricioFauth MauricioFauth left a comment

Choose a reason for hiding this comment

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

👏 💯

Copy link
Member

@williamdes williamdes left a comment

Choose a reason for hiding this comment

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

💯

Closes: #132

@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Dec 25, 2020
@williamdes
Copy link
Member

Ready to be merged ?

@williamdes williamdes force-pushed the python3 branch 2 times, most recently from 9126e6c to dd8a1da Compare February 5, 2021 02:37
@williamdes
Copy link
Member

Ready to be merged ?

Tests are still failing: https://github.com/phpmyadmin/website/runs/1835861700#step:8:7

@MauricioFauth
Copy link
Member

Hi, any update on this?

@MauricioFauth
Copy link
Member

The tests are broken since a180276.

Copy link
Member

@williamdes williamdes left a comment

Choose a reason for hiding this comment

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

👀 💯

@codecov
Copy link

codecov bot commented Mar 17, 2023

Codecov Report

Merging #136 (7bd0064) into master (01eb04d) will increase coverage by 0.33%.
The diff coverage is 76.56%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #136      +/-   ##
==========================================
+ Coverage   63.61%   63.95%   +0.33%     
==========================================
  Files          65       68       +3     
  Lines        1432     1426       -6     
==========================================
+ Hits          911      912       +1     
+ Misses        521      514       -7     

@MauricioFauth
Copy link
Member

@ibennetch @williamdes Tests are now passing on this PR. I think it can be merged if the server has Python 3.7 installed (as it's the last version support by Django 1.11). This way we can work on upgrading the Django version.

@ibennetch
Copy link
Member Author

ibennetch commented Mar 17, 2023 via email

Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
…of course throws an error)

Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
@williamdes
Copy link
Member

The server is now upgraded to Debian bookworm, and here is the sed commands to monkey patch the outdated Django vendor: d4b4171

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.

Migrate the website from Python to Rust
3 participants