diff --git a/Makefile b/Makefile index e3bf5330..753b97a8 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: clean docs clean-assets assets test setup run build deploy +.PHONY: clean docs clean-assets assets tests setup run build deploy asset-apps := _dashboard _default _scaffold _minimal _documentation showcase asset-zips := $(asset-apps:%=py4web/assets/py4web.app.%.zip) clean: @@ -17,7 +17,7 @@ py4web/assets/py4web.app.%.zip: apps/% docs: pip install -U -r docs/requirements.txt cd docs; ./updateDocs.sh html -test: +tests: pip install -U -r test-requirements.txt python -m pytest --cov=py4web --cov-report html:cov.html -v tests/ setup: diff --git a/py4web/core.py b/py4web/core.py index 99706ba4..da825f29 100644 --- a/py4web/core.py +++ b/py4web/core.py @@ -1553,15 +1553,6 @@ def error404(error): # pylint: disable=unused-argument APP_WATCH = {"files": dict(), "handlers": OrderedDict(), "tasks": dict()} -""" Decorator that binds a func as an watchdog handler of non-'.py' files. -Paths to files must be relative to app, w/o app name(folder). - -@app_watch_handler(['static/sass/all.sass', 'static/sass/main.sass']) -def sass_compile(changed_files): - print(changed_files); # paths of files that changed, for info - sass.compile() -""" - def app_watch_handler(watched_app_subpaths): """Finds files to watch for changes""" @@ -1718,7 +1709,7 @@ def start_server(kwargs): server_config["server"] = "gunicorn" # Catch interrupts like Ctrl-C if needed - def kill_all(sig, grame): + def kill_all(sig, _): os.kill(os.getpid(), signal.SIGKILL) signal.signal(signal.SIGINT, kill_all) @@ -1750,7 +1741,6 @@ def kill_all(sig, grame): bottle.run(**params) - def check_compatible(py4web_version): """To be called by apps to check if module version is compatible with py4web requirements""" from . import __version__ # pylint: disable=import-outside-toplevel diff --git a/requirements.txt b/requirements.txt index 4114fd24..2807d563 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,7 +11,7 @@ threadsafevariable >= 20230507.1 pyjwt >= 2.0.1 pycryptodome pluralize >= 20240515.1 -rocket3 >= 20240929.2 +rocket3 >= 20241019.1 yatl >= 20230507.3 pydal >= 20240906.1 watchgod >= 0.6