MLTSHP / mltshp

Source for the application that runs mltshp.com
https://mltshp.com/
Mozilla Public License 2.0
50 stars 21 forks source link

Updates for Python 3 #722

Open bradchoate opened 1 year ago

bradchoate commented 1 year ago

Upgrades code to be Python 3 compatible. Initial port using 2to3, then incremental pass over the code to correct issues discovered with failing unit tests. Also brought all Python requirements up to their latest version. Moved a copy of torndb (no long maintained) into the repository with a few updates for Python 3.

Plan is to release this against a Ubutnu 22.04 LTS host and base Docker image for web/worker instances.

This update also uses the latest nginx server, version 1.25.1.

554

dphiffer commented 1 year ago

Debt jubilee! I got it running locally and the tests all pass. One thing that's just slightly weird with the way make test runs is I see a mixture of progress dots . and HTTP log messages. I don't think it really matters or needs to be fixed, but it is weird all the same.

TIL about the if [...] or 0 > 0 trick you called out above.

bradchoate commented 1 year ago

Yeah, the logging is annoying for the tests and I'm not sure what is causing it. I'll try to disable it, since it's adding unnecessary noise (although it did turn out to be helpful in fixing that final test failure).