Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions ci/native-source.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
},
"asciiunits_python": {
"repository": "unitsml/asciiunits-python",
"revision": "2e85f6c9320199cbcba1e91556b6722723ef5d8d",
"revision": "9a405a54041dada2c1392fd0a467eb9b1cbaa2cc",
"public": true,
"build_wheel": true,
"note": "merged unitsml/asciiunits-python main; carries the qualified 5c185e27 sources plus delivery CI"
"note": "merged unitsml/asciiunits-python main (PR #3): asciiunits-rs 1f771ca with parsanol-rs 5206a33 (SDK 5206); replaces 2e85f6c (asciiunits-rs 498cec2, parsanol-rs 20d5e6c)"
},
"f40_corpus": {
"repository": "unitsml/unitsml-testsuite",
Expand All @@ -35,7 +35,8 @@
"data": null,
"tests": [
"tests/test_installed.py",
"tests/test_register_scope.py"
"tests/test_register_scope.py",
"tests/test_dependency_pins.py"
],
"python_runtime": {
"repository": "parsanol/parsanol-python",
Expand Down
4 changes: 2 additions & 2 deletions native-source.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"cargo_lock_sha256": "949a6198b0462cc6096a18fc85e0e3a220bea0ae66b0d2c6e2979c0bb7a80946",
"unitsdb_commit": "969a131b8992930a6ff6f869291f1f0d7cb68d33",
"unitsdb_data_sha256": "595e987112aed69d06ac2e68fda4b12e58266d5577ccd8cd8aa2cdc56eb765d4",
"asciiunits_python_commit": "5c185e271220604648da2a036b4dc94c729fa952",
"asciiunits_wheel_sha256": "0f83d4cb6c9a9897a9ce317f5442c961ccc0d8bb781d4caa893d0eab48471de9",
"asciiunits_python_commit": "9a405a54041dada2c1392fd0a467eb9b1cbaa2cc",
"asciiunits_wheel_sha256": "d474df17cde0ead700c449f96517236dfde6fceac259370cbd97c131ac181666",
"f40_corpus_commit": "877530fd9a04ed8c9026dafc2ee5127215e2bd00",
"f40_payload_sha256": "2cacb0b5b3c66f7c8a960b73e638b892afb86dd44ee4838371f132c2c5b60218",
"target": "x86_64-unknown-linux-gnu",
Expand Down
22 changes: 22 additions & 0 deletions tests/test_dependency_pins.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from importlib.resources import files
import json
import unittest


class InstalledDependencyPinTests(unittest.TestCase):
"""The installed asciiunits runtime carries the SDK 5206 Parsanol build."""

def test_asciiunits_native_build(self):
info = json.loads(files("asciiunits").joinpath("_native", "build-info.json").read_bytes())
self.assertEqual(info["native_source_commit"], "1f771caef878b9d383a5f29b02f434b8b614b780")
self.assertEqual(info["parsanol"], "5206a33b5417b4ecd3a601930461ed2967c871e7")

def test_unitsml_native_build(self):
info = json.loads(files("unitsml").joinpath("_native", "build-info.json").read_bytes())
self.assertEqual(info["native_source_commit"], "14c17076b7199940acaf9ce1f0272f3808b389bd")
notices = json.loads(files("unitsml").joinpath("_native", "licenses", "manifest.json").read_bytes())
self.assertNotIn("parsanol", [row["name"] for row in notices])


if __name__ == "__main__":
unittest.main()
Loading