{"url":"https://api.github.com/repos/OpenCyphal/nunavut/pulls/427","id":5114918015,"node_id":"PR_kwDOCqNdsM8AAAABMN90fw","html_url":"https://github.com/OpenCyphal/nunavut/pull/427","diff_url":"https://github.com/OpenCyphal/nunavut/pull/427.diff","patch_url":"https://github.com/OpenCyphal/nunavut/pull/427.patch","issue_url":"https://api.github.com/repos/OpenCyphal/nunavut/issues/427","commits_url":"https://api.github.com/repos/OpenCyphal/nunavut/pulls/427/commits","review_comments_url":"https://api.github.com/repos/OpenCyphal/nunavut/pulls/427/comments","review_comment_url":"https://api.github.com/repos/OpenCyphal/nunavut/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenCyphal/nunavut/issues/427/comments","statuses_url":"https://api.github.com/repos/OpenCyphal/nunavut/statuses/ff39cf98943840b32fe2071be5ba589bb941e690","number":427,"state":"closed","locked":false,"title":"Ship the CMake package in the PyPI wheel (#422)","user":{"login":"thirtytwobits","id":19180861,"node_id":"MDQ6VXNlcjE5MTgwODYx","avatar_url":"https://avatars.githubusercontent.com/u/19180861?v=4","gravatar_id":"","url":"https://api.github.com/users/thirtytwobits","html_url":"https://github.com/thirtytwobits","followers_url":"https://api.github.com/users/thirtytwobits/followers","following_url":"https://api.github.com/users/thirtytwobits/following{/other_user}","gists_url":"https://api.github.com/users/thirtytwobits/gists{/gist_id}","starred_url":"https://api.github.com/users/thirtytwobits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thirtytwobits/subscriptions","organizations_url":"https://api.github.com/users/thirtytwobits/orgs","repos_url":"https://api.github.com/users/thirtytwobits/repos","events_url":"https://api.github.com/users/thirtytwobits/events{/privacy}","received_events_url":"https://api.github.com/users/thirtytwobits/received_events","type":"User","user_view_type":"public","site_admin":false},"body":"Closes #422. Implements the approved design and test plan: https://github.com/OpenCyphal/nunavut/issues/422#issuecomment-6568384475\n\n## What changes\n\n- **The package moves into the wheel.** `NunavutConfig.cmake` and `NunavutConfigVersion.cmake` move to `src/nunavut/cmake/` and become package data. New `nunavut.cmake_dir()` and `nnvg --cmake-dir`, so a pip-installed Nunavut works with:\n\n  ```bash\n  cmake -DNunavut_DIR=$(nnvg --cmake-dir) ...\n  ```\n\n- **Source checkouts are unchanged.** The repository root keeps a one-line `NunavutConfig.cmake` and `NunavutConfigVersion.cmake` that `include()` the package files. The root config marks the load as a source checkout, so FetchContent and `verification/` behave as before.\n- **An installed Nunavut runs from the Python it is installed in.**\n  - `find_package(Python3)` stays (it prefers an active virtualenv and honours `-DPython3_EXECUTABLE`).\n  - Configure fails unless that Python imports the Nunavut that provides the config file.\n  - No `PYTHONPATH` is set unless `PYDSDL_PATH` is given.\n- **Public regulated types (installed).** They aren't added as a default lookup folder; callers list them in `DSDL_NAMESPACES`.\n- **Docs.** A short note in the existing `NunavutConfig` section of `docs/cmake/cmake.rst`, plus notes on the affected options.\n\n## Tests\n\n- **T1/T2** `cmake_dir()` and `--cmake-dir` (`test/gentest_nnvg/test_nnvg.py`).\n- **T3** The version-literal test reads the moved files and requires the root files to have none.\n- **T4** The `package` nox session checks that the wheel contains both files.\n- **T5** The new `cmake-package-installed` job (toolshed image) installs the `pypi-package` wheel the `test` job built into a fresh venv and builds `test/cmake_installed/` against it. It checks:\n  - the configure and build steps both ran the installed nunavut;\n  - only the project's own lookup folder is used;\n  - a Python without Nunavut is refused.\n\n## Local verification (macOS)\n\n- All of these pass: lint, docs, nnvg, doctest, rstdoctest, and the main suite with slow tests on 3.11 and 3.15. T5 passes against the built wheel, and the C11 verification workflow passes through the root files.\n- T5 failed, as it should, against two deliberately broken wheels: one with the default lookup folder added back, one with the Python check switched off.\n\nNot verified locally: Windows CI, and the `docs/cmake` example, which no CI job builds.\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n","labels":[],"milestone":null,"active_lock_reason":null,"created_at":"2026-11-02T04:23:22Z","updated_at":"2026-11-11T17:06:37Z","closed_at":"2026-11-11T17:06:34Z","merged_at":"2026-11-11T17:06:34Z","merge_commit_sha":"1640da5a121893f36dcbe7ba6084d8bd42989407","assignee":null,"assignees":[],"requested_reviewers":[{"login":"MAMONTBOT","id":262130053,"node_id":"U_kgDOD5_JhQ","avatar_url":"https://avatars.githubusercontent.com/u/262130053?v=4","gravatar_id":"","url":"https://api.github.com/users/MAMONTBOT","html_url":"https://github.com/MAMONTBOT","followers_url":"https://api.github.com/users/MAMONTBOT/followers","following_url":"https://api.github.com/users/MAMONTBOT/following{/other_user}","gists_url":"https://api.github.com/users/MAMONTBOT/gists{/gist_id}","starred_url":"https://api.github.com/users/MAMONTBOT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MAMONTBOT/subscriptions","organizations_url":"https://api.github.com/users/MAMONTBOT/orgs","repos_url":"https://api.github.com/users/MAMONTBOT/repos","events_url":"https://api.github.com/users/MAMONTBOT/events{/privacy}","received_events_url":"https://api.github.com/users/MAMONTBOT/received_events","type":"User","user_view_type":"public","site_admin":false}],"requested_teams":[],"head":{"label":"OpenCyphal:issue422-cmake-in-wheel","ref":"issue422-cmake-in-wheel","repo":{"id":178478512,"node_id":"MDEwOlJlcG9zaXRvcnkxNzg0Nzg1MTI=","name":"nunavut","full_name":"OpenCyphal/nunavut","owner":{"login":"OpenCyphal","id":10167381,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTY3Mzgx","avatar_url":"https://avatars.githubusercontent.com/u/10167381?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenCyphal","html_url":"https://github.com/OpenCyphal","followers_url":"https://api.github.com/users/OpenCyphal/followers","following_url":"https://api.github.com/users/OpenCyphal/following{/other_user}","gists_url":"https://api.github.com/users/OpenCyphal/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenCyphal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenCyphal/subscriptions","organizations_url":"https://api.github.com/users/OpenCyphal/orgs","repos_url":"https://api.github.com/users/OpenCyphal/repos","events_url":"https://api.github.com/users/OpenCyphal/events{/privacy}","received_events_url":"https://api.github.com/users/OpenCyphal/received_events","type":"Organization","user_view_type":"public","site_admin":false},"private":false,"fork":false,"archived":false,"disabled":false,"description":"Generate code from DSDL using PyDSDL and Jinja2","homepage":"https://nunavut.readthedocs.io/","language":"Python","visibility":"public","is_template":false,"topics":["code-generation","code-generator","cpp","cyphal","dsdl","opencyphal","python"],"forks_count":26,"forks":26,"stargazers_count":48,"watchers_count":48,"watchers":48,"open_issues_count":35,"open_issues":35,"size":2874,"default_branch":"main","has_issues":true,"has_projects":true,"has_wiki":false,"has_pages":false,"has_downloads":false,"has_discussions":false,"has_pull_requests":true,"pushed_at":"2026-11-11T18:17:19Z","created_at":"2019-03-29T21:37:20Z","updated_at":"2026-11-11T20:54:43Z","allow_forking":true,"web_commit_signoff_required":false,"pull_request_creation_policy":"all","license":{"key":"other","name":"Other","url":null,"spdx_id":"NOASSERTION","node_id":"MDc6TGljZW5zZTA="},"url":"https://api.github.com/repos/OpenCyphal/nunavut","html_url":"https://github.com/OpenCyphal/nunavut","archive_url":"https://api.github.com/repos/OpenCyphal/nunavut/{archive_format}{/ref}","assignees_url":"https://api.github.com/repos/OpenCyphal/nunavut/assignees{/user}","blobs_url":"https://api.github.com/repos/OpenCyphal/nunavut/git/blobs{/sha}","branches_url":"https://api.github.com/repos/OpenCyphal/nunavut/branches{/branch}","collaborators_url":"https://api.github.com/repos/OpenCyphal/nunavut/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/OpenCyphal/nunavut/comments{/number}","commits_url":"https://api.github.com/repos/OpenCyphal/nunavut/commits{/sha}","compare_url":"https://api.github.com/repos/OpenCyphal/nunavut/compare/{base}...{head}","contents_url":"https://api.github.com/repos/OpenCyphal/nunavut/contents/{+path}","contributors_url":"https://api.github.com/repos/OpenCyphal/nunavut/contributors","deployments_url":"https://api.github.com/repos/OpenCyphal/nunavut/deployments","downloads_url":"https://api.github.com/repos/OpenCyphal/nunavut/downloads","events_url":"https://api.github.com/repos/OpenCyphal/nunavut/events","forks_url":"https://api.github.com/repos/OpenCyphal/nunavut/forks","git_commits_url":"https://api.github.com/repos/OpenCyphal/nunavut/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/OpenCyphal/nunavut/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/OpenCyphal/nunavut/git/tags{/sha}","git_url":"git://github.com/OpenCyphal/nunavut.git","issue_comment_url":"https://api.github.com/repos/OpenCyphal/nunavut/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/OpenCyphal/nunavut/issues/events{/number}","issues_url":"https://api.github.com/repos/OpenCyphal/nunavut/issues{/number}","keys_url":"https://api.github.com/repos/OpenCyphal/nunavut/keys{/key_id}","labels_url":"https://api.github.com/repos/OpenCyphal/nunavut/labels{/name}","languages_url":"https://api.github.com/repos/OpenCyphal/nunavut/languages","merges_url":"https://api.github.com/repos/OpenCyphal/nunavut/merges","milestones_url":"https://api.github.com/repos/OpenCyphal/nunavut/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenCyphal/nunavut/notifications{?since,all,participating}","pulls_url":"https://api.github.com/repos/OpenCyphal/nunavut/pulls{/number}","releases_url":"https://api.github.com/repos/OpenCyphal/nunavut/releases{/id}","ssh_url":"git@github.com:OpenCyphal/nunavut.git","stargazers_url":"https://api.github.com/repos/OpenCyphal/nunavut/stargazers","statuses_url":"https://api.github.com/repos/OpenCyphal/nunavut/statuses/{sha}","subscribers_url":"https://api.github.com/repos/OpenCyphal/nunavut/subscribers","subscription_url":"https://api.github.com/repos/OpenCyphal/nunavut/subscription","tags_url":"https://api.github.com/repos/OpenCyphal/nunavut/tags","teams_url":"https://api.github.com/repos/OpenCyphal/nunavut/teams","trees_url":"https://api.github.com/repos/OpenCyphal/nunavut/git/trees{/sha}","clone_url":"https://github.com/OpenCyphal/nunavut.git","mirror_url":null,"hooks_url":"https://api.github.com/repos/OpenCyphal/nunavut/hooks","svn_url":"https://github.com/OpenCyphal/nunavut"},"sha":"ff39cf98943840b32fe2071be5ba589bb941e690","user":{"login":"OpenCyphal","id":10167381,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTY3Mzgx","avatar_url":"https://avatars.githubusercontent.com/u/10167381?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenCyphal","html_url":"https://github.com/OpenCyphal","followers_url":"https://api.github.com/users/OpenCyphal/followers","following_url":"https://api.github.com/users/OpenCyphal/following{/other_user}","gists_url":"https://api.github.com/users/OpenCyphal/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenCyphal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenCyphal/subscriptions","organizations_url":"https://api.github.com/users/OpenCyphal/orgs","repos_url":"https://api.github.com/users/OpenCyphal/repos","events_url":"https://api.github.com/users/OpenCyphal/events{/privacy}","received_events_url":"https://api.github.com/users/OpenCyphal/received_events","type":"Organization","user_view_type":"public","site_admin":false}},"base":{"label":"OpenCyphal:main","ref":"main","repo":{"id":178478512,"node_id":"MDEwOlJlcG9zaXRvcnkxNzg0Nzg1MTI=","name":"nunavut","full_name":"OpenCyphal/nunavut","owner":{"login":"OpenCyphal","id":10167381,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTY3Mzgx","avatar_url":"https://avatars.githubusercontent.com/u/10167381?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenCyphal","html_url":"https://github.com/OpenCyphal","followers_url":"https://api.github.com/users/OpenCyphal/followers","following_url":"https://api.github.com/users/OpenCyphal/following{/other_user}","gists_url":"https://api.github.com/users/OpenCyphal/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenCyphal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenCyphal/subscriptions","organizations_url":"https://api.github.com/users/OpenCyphal/orgs","repos_url":"https://api.github.com/users/OpenCyphal/repos","events_url":"https://api.github.com/users/OpenCyphal/events{/privacy}","received_events_url":"https://api.github.com/users/OpenCyphal/received_events","type":"Organization","user_view_type":"public","site_admin":false},"private":false,"fork":false,"archived":false,"disabled":false,"description":"Generate code from DSDL using PyDSDL and Jinja2","homepage":"https://nunavut.readthedocs.io/","language":"Python","visibility":"public","is_template":false,"topics":["code-generation","code-generator","cpp","cyphal","dsdl","opencyphal","python"],"forks_count":26,"forks":26,"stargazers_count":48,"watchers_count":48,"watchers":48,"open_issues_count":35,"open_issues":35,"size":2874,"default_branch":"main","has_issues":true,"has_projects":true,"has_wiki":false,"has_pages":false,"has_downloads":false,"has_discussions":false,"has_pull_requests":true,"pushed_at":"2026-11-11T18:17:19Z","created_at":"2019-03-29T21:37:20Z","updated_at":"2026-11-11T20:54:43Z","allow_forking":true,"web_commit_signoff_required":false,"pull_request_creation_policy":"all","license":{"key":"other","name":"Other","url":null,"spdx_id":"NOASSERTION","node_id":"MDc6TGljZW5zZTA="},"url":"https://api.github.com/repos/OpenCyphal/nunavut","html_url":"https://github.com/OpenCyphal/nunavut","archive_url":"https://api.github.com/repos/OpenCyphal/nunavut/{archive_format}{/ref}","assignees_url":"https://api.github.com/repos/OpenCyphal/nunavut/assignees{/user}","blobs_url":"https://api.github.com/repos/OpenCyphal/nunavut/git/blobs{/sha}","branches_url":"https://api.github.com/repos/OpenCyphal/nunavut/branches{/branch}","collaborators_url":"https://api.github.com/repos/OpenCyphal/nunavut/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/OpenCyphal/nunavut/comments{/number}","commits_url":"https://api.github.com/repos/OpenCyphal/nunavut/commits{/sha}","compare_url":"https://api.github.com/repos/OpenCyphal/nunavut/compare/{base}...{head}","contents_url":"https://api.github.com/repos/OpenCyphal/nunavut/contents/{+path}","contributors_url":"https://api.github.com/repos/OpenCyphal/nunavut/contributors","deployments_url":"https://api.github.com/repos/OpenCyphal/nunavut/deployments","downloads_url":"https://api.github.com/repos/OpenCyphal/nunavut/downloads","events_url":"https://api.github.com/repos/OpenCyphal/nunavut/events","forks_url":"https://api.github.com/repos/OpenCyphal/nunavut/forks","git_commits_url":"https://api.github.com/repos/OpenCyphal/nunavut/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/OpenCyphal/nunavut/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/OpenCyphal/nunavut/git/tags{/sha}","git_url":"git://github.com/OpenCyphal/nunavut.git","issue_comment_url":"https://api.github.com/repos/OpenCyphal/nunavut/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/OpenCyphal/nunavut/issues/events{/number}","issues_url":"https://api.github.com/repos/OpenCyphal/nunavut/issues{/number}","keys_url":"https://api.github.com/repos/OpenCyphal/nunavut/keys{/key_id}","labels_url":"https://api.github.com/repos/OpenCyphal/nunavut/labels{/name}","languages_url":"https://api.github.com/repos/OpenCyphal/nunavut/languages","merges_url":"https://api.github.com/repos/OpenCyphal/nunavut/merges","milestones_url":"https://api.github.com/repos/OpenCyphal/nunavut/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenCyphal/nunavut/notifications{?since,all,participating}","pulls_url":"https://api.github.com/repos/OpenCyphal/nunavut/pulls{/number}","releases_url":"https://api.github.com/repos/OpenCyphal/nunavut/releases{/id}","ssh_url":"git@github.com:OpenCyphal/nunavut.git","stargazers_url":"https://api.github.com/repos/OpenCyphal/nunavut/stargazers","statuses_url":"https://api.github.com/repos/OpenCyphal/nunavut/statuses/{sha}","subscribers_url":"https://api.github.com/repos/OpenCyphal/nunavut/subscribers","subscription_url":"https://api.github.com/repos/OpenCyphal/nunavut/subscription","tags_url":"https://api.github.com/repos/OpenCyphal/nunavut/tags","teams_url":"https://api.github.com/repos/OpenCyphal/nunavut/teams","trees_url":"https://api.github.com/repos/OpenCyphal/nunavut/git/trees{/sha}","clone_url":"https://github.com/OpenCyphal/nunavut.git","mirror_url":null,"hooks_url":"https://api.github.com/repos/OpenCyphal/nunavut/hooks","svn_url":"https://github.com/OpenCyphal/nunavut"},"sha":"c49bed8053789f95435a6d1a85d9080d6b9ad9fd","user":{"login":"OpenCyphal","id":10167381,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTY3Mzgx","avatar_url":"https://avatars.githubusercontent.com/u/10167381?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenCyphal","html_url":"https://github.com/OpenCyphal","followers_url":"https://api.github.com/users/OpenCyphal/followers","following_url":"https://api.github.com/users/OpenCyphal/following{/other_user}","gists_url":"https://api.github.com/users/OpenCyphal/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenCyphal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenCyphal/subscriptions","organizations_url":"https://api.github.com/users/OpenCyphal/orgs","repos_url":"https://api.github.com/users/OpenCyphal/repos","events_url":"https://api.github.com/users/OpenCyphal/events{/privacy}","received_events_url":"https://api.github.com/users/OpenCyphal/received_events","type":"Organization","user_view_type":"public","site_admin":false}},"_links":{"comments":{"href":"https://api.github.com/repos/OpenCyphal/nunavut/issues/427/comments"},"commits":{"href":"https://api.github.com/repos/OpenCyphal/nunavut/pulls/427/commits"},"statuses":{"href":"https://api.github.com/repos/OpenCyphal/nunavut/statuses/ff39cf98943840b32fe2071be5ba589bb941e690"},"html":{"href":"https://github.com/OpenCyphal/nunavut/pull/427"},"issue":{"href":"https://api.github.com/repos/OpenCyphal/nunavut/issues/427"},"review_comments":{"href":"https://api.github.com/repos/OpenCyphal/nunavut/pulls/427/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenCyphal/nunavut/pulls/comments{/number}"},"self":{"href":"https://api.github.com/repos/OpenCyphal/nunavut/pulls/427"}},"author_association":"MEMBER","auto_merge":null,"draft":false,"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"thirtytwobits","id":19180861,"node_id":"MDQ6VXNlcjE5MTgwODYx","avatar_url":"https://avatars.githubusercontent.com/u/19180861?v=4","gravatar_id":"","url":"https://api.github.com/users/thirtytwobits","html_url":"https://github.com/thirtytwobits","followers_url":"https://api.github.com/users/thirtytwobits/followers","following_url":"https://api.github.com/users/thirtytwobits/following{/other_user}","gists_url":"https://api.github.com/users/thirtytwobits/gists{/gist_id}","starred_url":"https://api.github.com/users/thirtytwobits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thirtytwobits/subscriptions","organizations_url":"https://api.github.com/users/thirtytwobits/orgs","repos_url":"https://api.github.com/users/thirtytwobits/repos","events_url":"https://api.github.com/users/thirtytwobits/events{/privacy}","received_events_url":"https://api.github.com/users/thirtytwobits/received_events","type":"User","user_view_type":"public","site_admin":false},"comments":8,"review_comments":2,"maintainer_can_modify":false,"commits":5,"additions":1288,"deletions":890,"changed_files":17}