Skip to content

mgrs: add build-mgrs.yml for riscv64 wheels - #1389

Merged
luhenry merged 2 commits into
mainfrom
mgrs
Sep 7, 2026
Merged

mgrs: add build-mgrs.yml for riscv64 wheels#1389
luhenry merged 2 commits into
mainfrom
mgrs

Conversation

@luhenry

@luhenry luhenry commented Sep 7, 2026

Copy link
Copy Markdown
Member

Compiles libmgrs, a small C extension (ports GeoTrans 2.4.2) that mgrs's pure-Python ctypes wrapper loads to convert between MGRS grid references and lat/lon. Upstream publishes no riscv64 wheel.

Mirrors upstream's deploy.yml.

Differs from upstream

  • Enabled test-command - upstream ships it commented out; tests/test.txt is a doctest pytest's default --doctest-glob already collects.

Testing

  • Runs tests/test.txt (a doctest exercising toMGRS/toLatLon/dmstodd), which upstream's own CI leaves disabled.

License: OK, MIT, nothing vendored beyond the bundled GeoTrans C sources under the same licence.

Built on cp312; 1 passed.

luhenry added a commit that referenced this pull request Sep 7, 2026
@luhenry
luhenry merged commit 3a34603 into main Sep 7, 2026
9 checks passed
@luhenry
luhenry deleted the mgrs branch September 7, 2026 16:08
@luhenry luhenry mentioned this pull request Sep 7, 2026
@luhenry luhenry linked an issue Sep 7, 2026 that may be closed by this pull request
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.

mgrs riscv64 support

1 participant