Skip to content

Commit

Permalink
chore: Moved from setuptools to flit as the build-system.
Browse files Browse the repository at this point in the history
Setuptools started to misbehave when switching to pyproject.toml and dumped way to many files into the sdist archive, contradicting its own documentation. Flit is way faster, needs less configuration, and just works.
  • Loading branch information
defnull committed Sep 7, 2024
1 parent 0568460 commit 582e5ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
6 changes: 0 additions & 6 deletions MANIFEST.in

This file was deleted.

16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
requires = ["flit_core >=3.9,<4"]
build-backend = "flit_core.buildapi"

[project]
name = "bottle"
Expand Down Expand Up @@ -50,12 +50,12 @@ Changelog = "https://bottlepy.org/docs/dev/changelog.html"
[project.scripts]
"bottle.py" = "bottle:main"

[tool.setuptools]
py-modules = ["bottle"]
platforms = ["any"]

[tool.setuptools.dynamic]
version = {attr = "bottle.__version__"}
[tool.flit.sdist]
include = [
"test/*.py",
"test/views/*.tpl",
"AUTHORS"
]

[tool.pytest.ini_options]
addopts = "-ra"
Expand Down

0 comments on commit 582e5ca

Please sign in to comment.