mirror of https://github.com/pallets/flask.git
switch to flit build backend
This commit is contained in:
parent
d67c47b81f
commit
f38f3a745a
|
@ -5,6 +5,7 @@ Unreleased
|
||||||
|
|
||||||
- Python 3.12 compatibility.
|
- Python 3.12 compatibility.
|
||||||
- Require Werkzeug >= 2.3.6.
|
- Require Werkzeug >= 2.3.6.
|
||||||
|
- Use ``flit_core`` instead of ``setuptools`` as build backend.
|
||||||
- Refactor how an app's root and instance paths are determined. :issue:`5160`
|
- Refactor how an app's root and instance paths are determined. :issue:`5160`
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
name = "Flask"
|
name = "Flask"
|
||||||
description = "A simple framework for building complex web applications."
|
description = "A simple framework for building complex web applications."
|
||||||
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"}]
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Development Status :: 5 - Production/Stable",
|
"Development Status :: 5 - Production/Stable",
|
||||||
|
@ -44,11 +44,25 @@ dotenv = ["python-dotenv"]
|
||||||
flask = "flask.cli:main"
|
flask = "flask.cli:main"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools"]
|
requires = ["flit_core<4"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "flit_core.buildapi"
|
||||||
|
|
||||||
[tool.setuptools.dynamic]
|
[tool.flit.module]
|
||||||
version = {attr = "flask.__version__"}
|
name = "flask"
|
||||||
|
|
||||||
|
[tool.flit.sdist]
|
||||||
|
include = [
|
||||||
|
"docs/",
|
||||||
|
"examples/",
|
||||||
|
"requirements/",
|
||||||
|
"tests/",
|
||||||
|
"CHANGES.rst",
|
||||||
|
"CONTRIBUTING.rst",
|
||||||
|
"tox.ini",
|
||||||
|
]
|
||||||
|
exclude = [
|
||||||
|
"docs/_build/",
|
||||||
|
]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
testpaths = ["tests"]
|
testpaths = ["tests"]
|
||||||
|
|
Loading…
Reference in New Issue