Skip to content

Commit 16b961a

Browse files
feat: migrate packages out of setup.py
Previously, new modules or files would need to be explicitly added to setup.py This moves the configuration to pyproject.toml and drops the requirement they must be explicit
1 parent a6d2255 commit 16b961a

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ build = [
104104
"twine~=5.1.1",
105105
]
106106

107+
[tool.setuptools.packages.find]
108+
where = ["."]
109+
include = ["disnake*"]
110+
107111
[tool.nox]
108112
script-venv-backend = "uv|virtualenv"
109113

setup.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,6 @@
3131
except Exception:
3232
pass
3333

34-
packages = [
35-
"disnake",
36-
"disnake.bin",
37-
"disnake.types",
38-
"disnake.ui",
39-
"disnake.ui.select",
40-
"disnake.webhook",
41-
"disnake.interactions",
42-
"disnake.ext.commands",
43-
"disnake.ext.tasks",
44-
"disnake.ext.mypy_plugin",
45-
]
46-
4734
setup(
4835
version=version,
49-
packages=packages,
50-
include_package_data=True,
5136
)

0 commit comments

Comments
 (0)