Houstonfest and Texas State German Contests registration files generation scripts and executables
Original Repo: https://github.com/PotatoCurry/auto-houstonfest
Install the necessary dependencies with pip if running from source
pip install -r requirements.txt
Note
Windows-support.
(NEW) Mac-support.
- Place school registration files in the same directory as the script or executable
- Ensure registration files do not contain the word "template" in any case form. The "template" keyword is reserved for names of template sheets.
- Ensure generated files are not open in any program
- Run the script with
python main.pyor the appropriate executable (i.e.hfest.exeortsgc.exe) - Generated files can be found in the
output/directory
- Create a Python virtual environment (i.e virtualenv)
- Follow the installation instructions to install possible dependencies
- Activate your Python virtual environment in your preferred terminal
Compile the script into an executable application by running the command pyinstaller tsgc.spec.
Note
Alternatively, run the Pyinstaller command including options. NOTE THAT THERE ARE DIFFERENCES IN SYNTAX BETWEEN WINDOWS AND MACOS
For Windows machines ONLY:
pyinstaller --onedir --console --name "tsgc" --contents-directory "bin" --add-data "boomer_utils.py;." --add-data "generate_reports.py;." --add-data "models.py;." --hidden-import "pony" --hidden-import "pony.orm" --hidden-import "pony.orm.dbproviders.sqlite" "main.py" --clean --noconfirm
For MacOS only:
pyinstaller --onedir --console --name "tsgc" --contents-directory "bin" --add-data "boomer_utils.py:." --add-data "generate_reports.py:." --add-data "models.py:." --hidden-import "pony" --hidden-import "pony.orm" --hidden-import "pony.orm.dbproviders.sqlite" "main.py"
- Add registration sheets to the executable parent folder (same folder as the executable, NOT "bin").
- Double click the executable OR run executable from command line.