Skip to content

Fix wheel build - #40

Merged
sidchaini merged 3 commits into
mainfrom
fix-wheel-build
Nov 15, 2026
Merged

sidchaini merged 3 commits into
mainfrom
fix-wheel-build

Conversation

@sidchaini

Copy link
Copy Markdown
Owner

Fixed bug that failed pypi upload

The v0.3.0 release run failed in cibuildwheel with

  PackageDiscoveryError: Multiple top-level packages discovered in a
  flat-layout: ['wheelhouse', 'distclassipy']

pyproject.toml relied on setuptools' automatic flat-layout discovery,
which treats any top-level directory as a candidate package; inside the
cibuildwheel build tree that includes its wheelhouse/ output directory.
The sdist job passed only because a clean checkout has no such
directory. Listing packages = ["distclassipy"] disables discovery.

Also add the Python 3.14 trove classifier (wheels are built for cp314).
Add a workflow_dispatch trigger so the sdist + full wheel matrix can be
built and tested on any branch from the Actions tab before cutting a
release. The publish job only runs for release events, so manual runs
never upload to PyPI.
0.3.0 was tagged but never reached PyPI (the wheel build failed on
package discovery, fixed in the previous commits).
@sidchaini
sidchaini merged commit f859639 into main Nov 15, 2026
20 checks passed
@sidchaini
sidchaini deleted the fix-wheel-build branch November 15, 2026 23:05
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