forked from orbit-oss/flask
switch examples to flit
This commit is contained in:
parent
f38f3a745a
commit
46b328854a
5 changed files with 21 additions and 17 deletions
|
|
@ -7,5 +7,8 @@ requires-python = ">=3.8"
|
||||||
dependencies = ["flask>=2.2.2", "celery[redis]>=5.2.7"]
|
dependencies = ["flask>=2.2.2", "celery[redis]>=5.2.7"]
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools"]
|
requires = ["flit_core<4"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "flit_core.buildapi"
|
||||||
|
|
||||||
|
[tool.flit.module]
|
||||||
|
name = "task_app"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
include LICENSE.rst
|
|
||||||
graft js_example/templates
|
|
||||||
graft tests
|
|
||||||
global-exclude *.pyc
|
|
||||||
|
|
@ -3,7 +3,7 @@ name = "js_example"
|
||||||
version = "1.1.0"
|
version = "1.1.0"
|
||||||
description = "Demonstrates making AJAX requests to Flask."
|
description = "Demonstrates making AJAX requests to Flask."
|
||||||
readme = "README.rst"
|
readme = "README.rst"
|
||||||
license = {text = "BSD-3-Clause"}
|
license = {file = "LICENSE.rst"}
|
||||||
maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]
|
maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]
|
||||||
dependencies = ["flask"]
|
dependencies = ["flask"]
|
||||||
|
|
||||||
|
|
@ -14,8 +14,11 @@ Documentation = "https://flask.palletsprojects.com/patterns/jquery/"
|
||||||
test = ["pytest"]
|
test = ["pytest"]
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools"]
|
requires = ["flit_core<4"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "flit_core.buildapi"
|
||||||
|
|
||||||
|
[tool.flit.module]
|
||||||
|
name = "js_example"
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
testpaths = ["tests"]
|
testpaths = ["tests"]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
include LICENSE.rst
|
|
||||||
include flaskr/schema.sql
|
|
||||||
graft flaskr/static
|
|
||||||
graft flaskr/templates
|
|
||||||
graft tests
|
|
||||||
global-exclude *.pyc
|
|
||||||
|
|
@ -16,8 +16,16 @@ Documentation = "https://flask.palletsprojects.com/tutorial/"
|
||||||
test = ["pytest"]
|
test = ["pytest"]
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools"]
|
requires = ["flit_core<4"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "flit_core.buildapi"
|
||||||
|
|
||||||
|
[tool.flit.module]
|
||||||
|
name = "flaskr"
|
||||||
|
|
||||||
|
[tool.flit.sdist]
|
||||||
|
include = [
|
||||||
|
"tests/",
|
||||||
|
]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
testpaths = ["tests"]
|
testpaths = ["tests"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue