diff --git a/CHANGES.rst b/CHANGES.rst index 5d3c7ff1..482d9a18 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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` diff --git a/pyproject.toml b/pyproject.toml index 99dae36a..2c2832fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"]