Skip to content

Publish a py3-none-any wheel (bump 1.1.4)#30

Merged
hugary1995 merged 1 commit into
mainfrom
feat/publish-wheel
Jul 9, 2026
Merged

Publish a py3-none-any wheel (bump 1.1.4)#30
hugary1995 merged 1 commit into
mainfrom
feat/publish-wheel

Conversation

@hugary1995

Copy link
Copy Markdown
Collaborator

Problem

The release workflow builds only an sdist (build --sdist), so every pyzag release on PyPI is source-only (1.1.3 has just pyzag-1.1.3.tar.gz). pip then has to build pyzag from source at install time, which fails under --no-build-isolation when wheel isn't in the environment:

error: invalid command 'bdist_wheel'

This is exactly what blocks neml2's Windows/MSVC build (pip install . --no-build-isolation), and it slows/roughens installs everywhere.

Fix

pyzag is pure Python, so a py3-none-any wheel is universal — pip installs it on every platform with no build step.

  • Build both sdist and wheel (build with no --sdist) and publish both on release.
  • Building on every push/PR also keeps the wheel build exercised in CI.
  • Bump 1.1.3 → 1.1.4 so the wheel ships as a new release.

Verified locally: python -m build produces pyzag-1.1.4-py3-none-any.whl + pyzag-1.1.4.tar.gz.

After merge

Publish a 1.1.4 GitHub release (auto-triggers the PyPI publish via the existing trusted-publishing job). Then neml2's pin can move pyzag==1.1.3 → 1.1.4 to pick up the wheel.

🤖 Generated with Claude Code

The release workflow built only an sdist (`build --sdist`), so every pyzag
release on PyPI is source-only. pip therefore has to *build* pyzag from
source at install time -- which fails under --no-build-isolation when
`wheel` isn't present in the environment (e.g. neml2's Windows/MSVC build:
"error: invalid command 'bdist_wheel'").

pyzag is pure Python, so a py3-none-any wheel is universal and installs on
every platform with no build step. Build both sdist and wheel (`build` with
no --sdist) and publish both. Building on every push/PR also keeps the wheel
build under CI.

Bump 1.1.3 -> 1.1.4 so the wheel ships as a new release.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-09 18:55 UTC

@hugary1995 hugary1995 merged commit 3cd79c1 into main Jul 9, 2026
7 checks passed
@hugary1995 hugary1995 deleted the feat/publish-wheel branch July 9, 2026 18:52
hugary1995 added a commit to applied-material-modeling/neml2 that referenced this pull request Jul 9, 2026
pyzag 1.1.4 is the first release with a py3-none-any wheel on PyPI
(applied-material-modeling/pyzag#30). Bumping the pin means pip installs
pyzag from that wheel instead of building the sdist -- which failed under
neml2's Windows --no-build-isolation build ("invalid command 'bdist_wheel'").

Bumped via dep_manager (dependencies.yaml + pyproject.toml + compat.yaml).
Also de-versioned the donated_buffer filterwarnings comment (reference pyzag
by name, not a pinned version) and clarified the Windows CI step installs
build deps only (runtime deps, incl. pyzag, are resolved by pip).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
hugary1995 added a commit to applied-material-modeling/neml2 that referenced this pull request Jul 9, 2026
pyzag 1.1.4 is the first release with a py3-none-any wheel on PyPI
(applied-material-modeling/pyzag#30). Bumping the pin means pip installs
pyzag from that wheel instead of building the sdist -- which failed under
neml2's Windows --no-build-isolation build ("invalid command 'bdist_wheel'").

Bumped via dep_manager (dependencies.yaml + pyproject.toml + compat.yaml).
Also de-versioned the donated_buffer filterwarnings comment (reference pyzag
by name, not a pinned version) and clarified the Windows CI step installs
build deps only (runtime deps, incl. pyzag, are resolved by pip).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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