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.
|
||||
- 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`
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "Flask"
|
||||
description = "A simple framework for building complex web applications."
|
||||
readme = "README.rst"
|
||||
license = {text = "BSD-3-Clause"}
|
||||
license = {file = "LICENSE.rst"}
|
||||
maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]
|
||||
classifiers = [
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
|
@ -44,11 +44,25 @@ dotenv = ["python-dotenv"]
|
|||
flask = "flask.cli:main"
|
||||
|
||||
[build-system]
|
||||
requires = ["setuptools"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
requires = ["flit_core<4"]
|
||||
build-backend = "flit_core.buildapi"
|
||||
|
||||
[tool.setuptools.dynamic]
|
||||
version = {attr = "flask.__version__"}
|
||||
[tool.flit.module]
|
||||
name = "flask"
|
||||
|
||||
[tool.flit.sdist]
|
||||
include = [
|
||||
"docs/",
|
||||
"examples/",
|
||||
"requirements/",
|
||||
"tests/",
|
||||
"CHANGES.rst",
|
||||
"CONTRIBUTING.rst",
|
||||
"tox.ini",
|
||||
]
|
||||
exclude = [
|
||||
"docs/_build/",
|
||||
]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
|
|
Loading…
Reference in New Issue