Repository navigation
Conversation
Unit-conversion candidate distinct from the already-published cf-units (SciTools/Iris climate stack): gimli.units is CSDMS's object-oriented Cython interface to UDUNITS-2, used for generic earth-science unit conversion rather than CF-convention data. Builds directly from an upstream checkout (mirroring upstream's own test.yml cibuildwheel job) since upstream stopped publishing an sdist at 0.3.3; expat 2.6.0 and UDUNITS-2 2.2.28 are vendored under extern/ and compiled to static libs via CMake in the project's own before-build commands, with no external dependency beyond a C compiler and cmake (both already in the manylinux_riscv64 image) - unlike cf-units, no EPEL workaround is needed since upstream already builds UDUNITS-2 from source on every platform. Widens license-files to ship the vendored expat/UDUNITS-2 notices alongside gimli.units' own LICENSE.md, matching the netcdf4/cf-units precedent.
luhenry
marked this pull request as draft
October 16, 2026 00:03
This branch has not been deployed
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.
gimli.units0.4.1Cython extension that statically links vendored expat and UDUNITS-2 for object-oriented unit conversion. Upstream publishes no riscv64 wheel.
Mirrors upstream's
test.ymlbuild-wheels job, checked out at the release tag since upstream stopped publishing an sdist at 0.3.3.Differs from upstream
Testing
License: wheel bundles expat (MIT) and UDUNITS-2 (free, BSD-style UCAR licence); upstream's license-files names only its own LICENSE.md, so the patch adds both.
Patches
0001-pyproject-widen-license-files-to-cover-vendored-expat-udunits2.patch- To upstream. Without it neither vendored licence ships in the wheel; reproduces on every platform, not riscv64-only.CI running on cp312/cp313/cp314, manylinux and musllinux.