wip: programme

This commit is contained in:
mco-system 2023-04-10 11:12:26 +11:00
parent 7d9586a6f2
commit a8b8b2615d
4 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,4 @@
.PHONY: clean install run stop
.PHONY: clean distclean install run stop
install:
set -e ;\
@ -35,9 +35,11 @@ clean:
-set -e ;\
THSF_DIR=$$(pwd); \
echo [+] Nettoyage dans $$THSF_DIR; \
rm -Rf ./build ;\
rm -Rf ./src/thsf.egg-info; \
rm -Rf ./build ./src/thsf.egg-info ./thsf.pid ./thsf.log; \
. thsf_venv/bin/activate; \
pip3 uninstall thsf -y
distclean: clean
rm -Rf thsf_venv/
all: stop clean install run

View File

@ -1,6 +1,7 @@
build
wheel
flask
Flask-Minify
gunicorn
pyYAML
requests

View File

@ -20,6 +20,7 @@ include_package_data = True
python_requires = >=3.7
install_requires =
flask
Flask-Minify
gunicorn
pyYAML
requests

View File

@ -5,6 +5,7 @@ import logging
from logging import config
import yaml
from flask import Flask, render_template, redirect, request, url_for
from flask_minify import minify
from thsf.backend import Backend
from thsf.schedule import Schedule
from thsf.navbar import Navbar
@ -23,7 +24,7 @@ class AppConfig:
# ------------------------------------------------------------------------------
logger = logging.getLogger('wsgi')
app = Flask(__name__)
minify(app=app, html=True, js=True, cssless=True)
# ------------------------------------------------------------------------------
# -- Local configuration