Skip to content

Fix wheel packaging to include xtalpaint subpackages - #80

Merged
t-reents merged 1 commit into
mainfrom
fix/pyproject
Aug 3, 2026
Merged

t-reents merged 1 commit into
mainfrom
fix/pyproject

Conversation

@t-reents

@t-reents t-reents commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

The static packages = ["xtalpaint"] list only declared the top-level package, so setuptools built wheels containing src/xtalpaint/*.py and nothing else. Subpackages such as xtalpaint.aiida were silently omitted, breaking non-editable installs and the aiida.data entry points that reference xtalpaint.aiida.data. Editable installs masked this because they import straight from the source tree.

Replace the static list with automatic discovery via [tool.setuptools.packages.find], which picks up all subpackages under src/. The where setting supersedes the previous package-dir mapping, so both are removed.

The static `packages = ["xtalpaint"]` list only declared the top-level
package, so setuptools built wheels containing `src/xtalpaint/*.py` and
nothing else. Subpackages such as `xtalpaint.aiida` were silently
omitted, breaking non-editable installs and the aiida.data entry points
that reference `xtalpaint.aiida.data`. Editable installs masked this
because they import straight from the source tree.

Replace the static list with automatic discovery via
`[tool.setuptools.packages.find]`, which picks up all subpackages under
`src/`. The `where` setting supersedes the previous `package-dir`
mapping, so both are removed.
@t-reents
t-reents merged commit 36adadc into main Aug 3, 2026
5 checks passed
@t-reents
t-reents deleted the fix/pyproject branch August 3, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant