Skip to content

Commit

Permalink
upgraded rocket3
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Oct 20, 2024
1 parent 4844577 commit 4f005fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
12 changes: 1 addition & 11 deletions py4web/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f005fb

Please sign in to comment.