From ed58fc59d7b02f03fbf7599d035a918856efcac6 Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Sat, 31 May 2025 16:34:38 +0000 Subject: [PATCH] Bump minimum supported version to 3.8 since 3.6 is years past support and hasn't been tested in any production instances I know of for years. --- README.md | 10 +++++----- examples/nginx/frontend.nginx | 2 +- examples/preload | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b0d9916..7c543d6 100644 --- a/README.md +++ b/README.md @@ -306,7 +306,7 @@ which has the paths set up for correct imports. A convenience utility for helping reverse-engineer structures out of game DLLs/EXEs. You can give this a physical DLL offset or a virtual memory address for the start and end of the data as well as a python struct format (documentation at -https://docs.python.org/3.6/library/struct.html) and this will print the decoded +https://docs.python.org/3.8/library/struct.html) and this will print the decoded data to the screen one entry per line. It includes several enhancements for decoding pointers to sub-structures and pointers to C strings. Note that much like "psmap", this has the ability to print out structures that are dynamically constructed at runtime by @@ -379,10 +379,10 @@ you aren't introducing any type errors into the codebase. ## Dependency Setup -The code contained here assumes Python 3.6 as the base although it should work with +The code contained here assumes Python 3.8 as the base although it should work with any newer version of python as well. If you don't have or don't want to install Python -3.6 as your system python, it is recommended to use virtualenv to create a virtual -environment. The rest of the installation will assume you have Python 3.6 working +3.8 as your system python, it is recommended to use virtualenv to create a virtual +environment. The rest of the installation will assume you have Python 3.8 working properly (and are in an activated virtual environment if this is the route you've chosen to go). If you have a newer version of python available this code should be compatible with that as well. This code is designed to run on Linux. However, it has @@ -845,7 +845,7 @@ free certificate that you can manage easily. There are other ways to run this so and provide SSL credentials but I have no experience with or advice on them. The easiest way to get up and running is to install MySQL 5.7, nginx and uWSGI along -with Python 3.6 or higher. Create a directory where the services will live and place +with Python 3.8 or higher. Create a directory where the services will live and place a virtualenv inside it (outside the scope of this document). Then, the wsgi files found in `bemani/wsgi/` can be placed in the directory, uWSGI pointed at them and nginx set up. The setup for the top-level package will include all of the frontend templates, so you diff --git a/examples/nginx/frontend.nginx b/examples/nginx/frontend.nginx index 8d50ded..5ffc9a9 100644 --- a/examples/nginx/frontend.nginx +++ b/examples/nginx/frontend.nginx @@ -17,7 +17,7 @@ server { location ^~ /static/ { include /etc/nginx/mime.types; - root /path/to/your/virtualenv/lib/python3.6/site-packages/bemani/frontend/; + root /path/to/your/virtualenv/lib/python3.8/site-packages/bemani/frontend/; } location ^~ /jsx/ { diff --git a/examples/preload b/examples/preload index d26c5f1..9dbb796 100755 --- a/examples/preload +++ b/examples/preload @@ -5,7 +5,7 @@ # warm the cache. Note that this isn't necessary if you are compiling # JSX files for static serving via nginx. -cd /path/to/your/virtualenv/lib/python3.6/site-packages/bemani/frontend/static +cd /path/to/your/virtualenv/lib/python3.8/site-packages/bemani/frontend/static for url in $(find -name "*.react.js" | sed 's,^\.,https://your-domain.com/jsx,'); do echo "Priming $url..." curl $url --silent -H 'Cache-Control: no-cache' > /dev/null