Merge remote-tracking branch 'origin/stable'

This commit is contained in:
David Lord 2024-11-13 08:43:48 -08:00
commit 22c48a738b
No known key found for this signature in database
GPG key ID: 43368A7AA8CC5926
9 changed files with 23 additions and 6 deletions

View file

@ -3,8 +3,8 @@ name = "flask-example-celery"
version = "1.0.0"
description = "Example Flask application with Celery background tasks."
readme = "README.md"
requires-python = ">=3.8"
dependencies = ["flask>=2.2.2", "celery[redis]>=5.2.7"]
classifiers = ["Private :: Do Not Upload"]
dependencies = ["flask", "celery[redis]"]
[build-system]
requires = ["flit_core<4"]

View file

@ -3,8 +3,9 @@ name = "js_example"
version = "1.1.0"
description = "Demonstrates making AJAX requests to Flask."
readme = "README.rst"
license = {file = "LICENSE.rst"}
license = {file = "LICENSE.txt"}
maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]
classifiers = ["Private :: Do Not Upload"]
dependencies = ["flask"]
[project.urls]

View file

@ -5,7 +5,7 @@ from flask import template_rendered
@pytest.mark.parametrize(
("path", "template_name"),
(
("/", "xhr.html"),
("/", "fetch.html"),
("/plain", "xhr.html"),
("/fetch", "fetch.html"),
("/jquery", "jquery.html"),

View file

@ -1,4 +1,5 @@
import sqlite3
from datetime import datetime
import click
from flask import current_app
@ -44,6 +45,9 @@ def init_db_command():
click.echo("Initialized the database.")
sqlite3.register_converter("timestamp", lambda v: datetime.fromisoformat(v.decode()))
def init_app(app):
"""Register database functions with the Flask app. This is called by
the application factory.

View file

@ -3,8 +3,9 @@ name = "flaskr"
version = "1.0.0"
description = "The basic blog app built in the Flask tutorial."
readme = "README.rst"
license = {text = "BSD-3-Clause"}
license = {file = "LICENSE.txt"}
maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]
classifiers = ["Private :: Do Not Upload"]
dependencies = [
"flask",
]