Repository navigation
ymf: PyPI packaging and release workflow (C38 step 1) and the spaces vocabulary (round 4) - #30
Merged
Merged
Conversation
…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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two rounds from cekees/ymf, one train.
tools/check_dist.sh(sdist 388 KB, wheel 169 KB,twine check --strict, fresh-venv install runs),.github/workflows/release.yml(Trusted Publishing; TestPyPI onv1.2.3rc1-style tags, PyPI onv1.2.3; tag must equal built version; inert until a tag is pushed),RELEASING.mdymf/spaces.py, schema and vocabulary entries,examples/poisson_spaces.ymf,tests/test_spaces.pyCI 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