Skip to content

ymf: PyPI packaging and release workflow (C38 step 1) and the spaces vocabulary (round 4) - #30

Merged
cekees merged 8 commits into
proteustoolkit:mainfrom
cekees:main
Nov 16, 2026
Merged

cekees merged 8 commits into
proteustoolkit:mainfrom
cekees:main

Conversation

@cekees

@cekees cekees commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Two rounds from cekees/ymf, one train.

cekees/ymf PR what
#14 C38 step 1: PyPI metadata, tools/check_dist.sh (sdist 388 KB, wheel 169 KB, twine check --strict, fresh-venv install runs), .github/workflows/release.yml (Trusted Publishing; TestPyPI on v1.2.3rc1-style tags, PyPI on v1.2.3; tag must equal built version; inert until a tag is pushed), RELEASING.md
#15 ymf round 4: the spaces vocabulary (basis, nodes, Bernstein operator, geometry order), ymf/spaces.py, schema and vocabulary entries, examples/poisson_spaces.ymf, tests/test_spaces.py

CI is green on cekees/ymf for both PRs (core, one-extra, linux-aarch64, macOS arm64/Intel). Nothing is tagged or uploaded by this PR.

🤖 Generated with Claude Code

cekees and others added 8 commits November 16, 2026 12:10
…ers, test extra, MANIFEST.in

Name check 2026-11-16: ymf is 404 on pypi.org and test.pypi.org (json API and
simple index). Version comes from setuptools_scm (git tag v*), unchanged;
setuptools floor raised to 77 for the SPDX license expression. Runtime
dependencies are unchanged: pyyaml alone (the CI core-only leg enforces it).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… wheel

Measured 2026-11-16 (macOS arm64, py3.14, SETUPTOOLS_SCM_PRETEND_VERSION=0.3.0rc1,
nothing uploaded): sdist 388 KB (limit 1024 KB), wheel 169 KB; twine check
--strict passes on both; no .log/.h5/.so/.pyc/.github files in the sdist, the
wheel holds only ymf/ and its dist-info; a fresh venv with the wheel (extras
frontend, examples) imports ymf 0.3.0rc1 from site-packages, loads
examples/poisson.ymf, runs ymf2xmf --help and converts the archive that
examples/write_archive.py writes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…t until a tag and a registered publisher)

Triggers only on tags v1.2.3 (PyPI) and v1.2.3a1/b1/rc1 (TestPyPI). The build
job runs tools/check_dist.sh, then refuses unless the tag equals v<built
version> (simulated locally: v0.3.0rc1 accepted as a pre-release, v0.3.0
refused against an rc build). Publish jobs use environments testpypi and pypi
(named, not created), id-token: write only there, pypa/gh-action-pypi-publish
by commit SHA; no token or secret anywhere. Actions are pinned by SHA, all
releases >= 3 weeks old on 2026-11-16: checkout v7.0.1, setup-python v7.1.0,
upload-artifact v7.0.2, download-artifact v8.0.2, gh-action-pypi-publish
v1.14.3. actionlint (actionlint-py) passes on release.yml and tests.yml; the
workflow itself has not been run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… the proteus pin afterwards

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… geometry order), checked on load

A finite_element entry now says, beyond family and order, the choices proteus's FemTools (C8 rounds 1-5) made runs depend
on: basis (lagrange | bernstein | monomial), nodes (gll | equispaced), bernstein_operator, and geometry_order beside the
spaces. ymf.spaces.resolve fills the defaults FemTools uses; the checks refuse nodes on a non-Lagrange basis, the Bernstein
operator on a non-Bernstein basis, a basis or nodes on RT/BDM/RTF/N1curl, orders below RT0/BDM1/N1curl0/CG1, geometry
order below 1. implemented_in_proteus is information, not a refusal. Existing specs and fixtures are unchanged.

Measured (macOS arm64, env proteus-pro-261015, sympy 1.14): tests/test_spaces.py 17 passed; the whole ymf suite 905 passed,
12 skipped (the same 888 + 12 as main plus the 17 new). proteus CI installs ymf from proteustoolkit/ymf@main: proteus sees
this only after the ymf merge.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… its geometry_order

CI failed on test_validate_spec_walks_every_example_and_shows_the_unit_error: the script read every finite_element entry as a
space and geometry_order is an integer. My local run of d3f8ade had no pint, so the example tests were skipped (the 905 passed
counted without them). With pint (env petsc-dev, sympy 1.14): the whole suite 979 passed, 1 skipped.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
C38 step 1: ymf packaging for TestPyPI/PyPI (metadata, build check, release workflow, RELEASING.md)
ymf round 4: the spaces vocabulary (basis, nodes, Bernstein operator, geometry order)
@cekees
cekees merged commit c74d336 into proteustoolkit:main Nov 16, 2026
10 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