Skip to content

fix: ship self-contained Python wheels and documentation site - #64

Merged
LunaStev merged 2 commits into
wavefnd:masterfrom
LunaStev:fix/self-contained-python-wheels
Oct 28, 2026
Merged

LunaStev merged 2 commits into
wavefnd:masterfrom
LunaStev:fix/self-contained-python-wheels

Conversation

@LunaStev

@LunaStev LunaStev commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

A normal pip install hmath-python currently installs only Python wrappers, so importing HMath fails with OSError: libhmath.so on a clean machine. Prepare patch release 1.0.1 with a self-contained Linux x86-64 wheel (glibc >= 2.28), including HMath and its required GHC, GMP, and libffi shared libraries and license notices. Both Python wrappers prefer the bundled library; the explicit developer override remains supported.

The publishing workflow now uses the same reusable wheel pipeline as PR validation. It builds and repairs the platform wheel with auditwheel, verifies the sdist independently builds, and tests installation in clean CPython 3.9–3.14 containers before any PyPI upload. No system HMath/GHC library or environment override is supplied to those tests. Production publication still creates the matching GitHub release.

Add a searchable MkDocs documentation site under docs/, including installation, tutorials, Python/C/Wave reference, generated Haddock reference, ownership and release explanations, and troubleshooting. Keep README concise and link detailed instructions to the site. Publish through GitHub Pages after merge. Haskell source changes only repair documentation markup and links.

Reduce CI duplication: cache Cabal outputs and dependencies, avoid downloading Hackage indices for boot-package-only builds, run differential/property checks once in the representative release job, and avoid duplicate fork-feature-push and upstream-PR runs. All compiler/build-type core checks and portability probes remain.

Validation:

  • Clean Python 3.9 and 3.14 containers: installation, scalar/matrix calculations, full ctypes/cffi/NumPy ownership, errors, threads and asyncio suite, and documentation Python examples pass.
  • Host Python 3.14 virtual environment: wheel installation and bundled-runtime checks pass.
  • Source distribution independently builds a native wheel; auditwheel repair/show and strict twine validation pass.
  • Incompatible ABI rejection passes for both Python loaders.
  • Strict documentation build, generated Haddock reference, search index, and all local site links pass.
  • actionlint, Ruff checks/formatting, Fourmolu, shell syntax and whitespace checks pass.

Remote validation at e5bc98a: all 14 executable checks pass, including clean wheel installation on CPython 3.9–3.14, both GHC versions in Debug/Release, macOS/Windows compilation probes, and the documentation build.

@LunaStev
LunaStev merged commit e2ec12d into wavefnd:master Oct 28, 2026
15 checks passed
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