-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
WIP: Preliminary investigation: updating to python 3 #1407
WIP: Preliminary investigation: updating to python 3 #1407
Conversation
Add new docker image to CL Add simple test to begin replacing weird binaries
Use our new docker container to generate the thumbnail and return the contents
Refactor subprocess into our new BTE container
Not sure its necessary or used in any way The method only extracts page count for PDFs prior to this refactor.
Add volumes to new containers to task server Remove unneeded installs to task server
Currently tests.yml is not running this is an attempt to get it working in a new syntax
Built and pushed beta containers for Django and the celery task-server. Task server is imported from django image and neither has the 'weird binaries'. The new images are 36% of the old ones
Add JUDGE_PICS_PATH add SEAL_ROOKERY_PATH
Add BTE URL to settings and point to it in functions
Include changes to migration files help text encoding
…ener into python38-merger
…ener into python38-merger
…ener into python38-merger
…ener into python38-merger
…ener into python38-merger
…ener into python38-merger
use // instead of / for integer division
In cleanup main query and get related clusters with cache replaced sunburnt with scorched
Upgrade scorched, ipython, cryptography and comment out psycopg2
Remove old magic code with python magic, add to req.
Where pip needs `==a.b.*,>=a.b.c`, poetry can just do `^a.b.c`. Strictly speaking this isn't exactly the same as `^a.b.c` will satisfy any `a.d.e` where d > b and e > c. This makes the versioning more reliable, because the pip version could install major package updates without you realising.
I've pushed an update to replace |
p.s. Python 3.9 is now the latest stable version of Python, as of Monday. (Not that it's particularly important, just thought I'd mention.) |
We're incorporating these changes into our weirdly-named 1407-py3-unmerge branch and it has a bunch more changes, so I'm closing this one. Thanks for kicking this off, Drew. Huge deal. |
So far:
reporters_db
currently, there's bound to be more issues after that though).When porting code I tend to take this approach:
Next steps:
mypy
for an additional level of checking to find more issues without needing to run every line of code.reporters_db
installed and working on py3 so that we can continue with the porting cycle.If you want to discuss any of these changes and potential problems, here's a good place to do it! 🙂