beta #4
8
Makefile
8
Makefile
@ -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
|
||||
|
@ -1,6 +1,7 @@
|
||||
build
|
||||
wheel
|
||||
flask
|
||||
Flask-Minify
|
||||
gunicorn
|
||||
pyYAML
|
||||
requests
|
||||
|
@ -20,6 +20,7 @@ include_package_data = True
|
||||
python_requires = >=3.7
|
||||
install_requires =
|
||||
flask
|
||||
Flask-Minify
|
||||
gunicorn
|
||||
pyYAML
|
||||
requests
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user