Skip to content

Commit

Permalink
Disable setuptools automatic discovery
Browse files Browse the repository at this point in the history
Automatic discovery, a.k.a. `packages.find` option, requires some tweak
on include/exclude so only required files are installed. Declaring
`packages` directly simplifies this by just adding the required package.
  • Loading branch information
mikelolasagasti authored and dlax committed Jun 1, 2023
1 parent 1f96da2 commit 8a5fa22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ Homepage = "https://github.com/dalibo/pg_activity"
[tool.setuptools.dynamic]
version = { attr = "pgactivity.__version__" }

[tool.setuptools.packages.find]
where = ["."]
[tool.setuptools]
packages = ["pgactivity"]

[tool.black]
line-length = 88
Expand Down

0 comments on commit 8a5fa22

Please sign in to comment.