Skip to content

Commit

Permalink
Migrate to flint build backend
Browse files Browse the repository at this point in the history
I've accidentally noticed that my .vscode/settings.json got included
into source distribution, even though it's ignored by git
as configured in my global config. This came as a surprise,
but appears to be a design decision (see pypa/hatch#304).

Switch to flit which by default only includes the package contents,
readme and license.
  • Loading branch information
petuzk committed Jun 2, 2024
1 parent 133acd0 commit 9b195e0
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = [
]
description = "Predicate-based equivalence testing"
readme = "README.rst"
license = "MIT"
license = {file = "LICENSE"}
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
Expand All @@ -25,14 +25,8 @@ dev = [
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build]
exclude = [
"/.github",
"/test",
]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"

[tool.pytest.ini_options]
addopts = "--doctest-modules"

1 comment on commit 9b195e0

@petuzk
Copy link
Owner Author

@petuzk petuzk commented on 9b195e0 Jun 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flit, not flint 🤦‍♂️

Please sign in to comment.