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"]
|
||||
|
||||
[build-system]
|
||||
requires = ["setuptools"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
requires = ["flit_core<4"]
|
||||
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"
|
||||
description = "Demonstrates making AJAX requests to Flask."
|
||||
readme = "README.rst"
|
||||
license = {text = "BSD-3-Clause"}
|
||||
license = {file = "LICENSE.rst"}
|
||||
maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]
|
||||
dependencies = ["flask"]
|
||||
|
||||
|
|
@ -14,8 +14,11 @@ Documentation = "https://flask.palletsprojects.com/patterns/jquery/"
|
|||
test = ["pytest"]
|
||||
|
||||
[build-system]
|
||||
requires = ["setuptools"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
requires = ["flit_core<4"]
|
||||
build-backend = "flit_core.buildapi"
|
||||
|
||||
[tool.flit.module]
|
||||
name = "js_example"
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
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"]
|
||||
|
||||
[build-system]
|
||||
requires = ["setuptools"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
requires = ["flit_core<4"]
|
||||
build-backend = "flit_core.buildapi"
|
||||
|
||||
[tool.flit.module]
|
||||
name = "flaskr"
|
||||
|
||||
[tool.flit.sdist]
|
||||
include = [
|
||||
"tests/",
|
||||
]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue