slashme / parliamentdiagram

Parliament diagram creator
GNU General Public License v2.0
104 stars 29 forks source link

Lack of Toolforge support for using php and python at the same time #154

Closed Gouvernathor closed 5 months ago

Gouvernathor commented 6 months ago

(This issue will not be solved in Git proper as it concerns the website's hosting, but it may imply changes to the repo, in any case this is open as a reminder.)

The container used to run our code is one for php (version 8.2 as of now). It happens that that container contains a version of python 3 (3.9), and while it's not much likely that it will be removed from the container, it is very possible that containers for higher versions of php will not have python included. Also, my planned evolution of using the parliamentarch module as a backend will require Python 3.12.

Several possible solutions:

The custom image should probably be considered as our simpler emergency solution if the Toolforge php container were to stop containing python at some point.

Gouvernathor commented 6 months ago

I'm on the path to porting everything from PHP to Flask, which will kill three birds with one stone : it will clear that maintenance issue, allow me to use python 3.12 and my parliamentarch module as a backend, and allow for a cleaner reimplement of the OAuth (using oauth with flask on Toolforge is covered by many tutorials).