Skip to content

Commit bb27273

Browse files
feat(packaging): migrate packages out of setup.py (#1356)
1 parent bc85755 commit bb27273

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

changelog/1356.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Migrate determining which packages to include in the built wheel and package from a static setup.py list to dynamic configured in pyproject.toml.

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)