switch to flit build backend

This commit is contained in:
David Lord 2023-06-27 14:03:25 -07:00
parent d67c47b81f
commit f38f3a745a
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
2 changed files with 20 additions and 5 deletions

View File

@ -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`

View File

@ -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"]