Skip to content

Commit

Permalink
switch to flit build backend
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Jun 27, 2023
1 parent 9893c0e commit f00e589
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/on-create-command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

python3 -m venv .venv
. .venv/bin/activate
pip install -U pip setuptools wheel
pip install -U pip
pip install -r requirements/dev.txt
pip install -e .
pre-commit install --install-hooks
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Version 2.3.7

Unreleased

- Use ``flit_core`` instead of ``setuptools`` as build backend.


Version 2.3.6
-------------
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ First time setup in your local environment

.. code-block:: text
$ python -m pip install -U pip setuptools wheel
$ python -m pip install -U pip
$ pip install -r requirements/dev.txt && pip install -e .
- Install the pre-commit hooks.
Expand Down
12 changes: 0 additions & 12 deletions MANIFEST.in

This file was deleted.

23 changes: 18 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "Werkzeug"
description = "The comprehensive WSGI web application library."
readme = "README.rst"
license = {text = "BSD-3-Clause"}
license = {file = "LICENSE.rst"}
maintainers = [{name = "Pallets", email = "[email protected]"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand Down Expand Up @@ -33,11 +33,24 @@ Chat = "https://discord.gg/pallets"
watchdog = ["watchdog>=2.3"]

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
requires = ["flit_core<4"]
build-backend = "flit_core.buildapi"

[tool.setuptools.dynamic]
version = {attr = "werkzeug.__version__"}
[tool.flit.module]
name = "werkzeug"

[tool.flit.sdist]
include = [
"docs/",
"examples/",
"requirements/",
"tests/",
"CHANGES.rst",
"tox.ini",
]
exclude = [
"docs/_build/",
]

[tool.pytest.ini_options]
testpaths = ["tests"]
Expand Down

0 comments on commit f00e589

Please sign in to comment.