From ae12e2d4da66e3d8e16ce3e5c82718459ce9ece1 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 22 Apr 2026 01:26:37 -0700 Subject: [PATCH] packaging: ship DBC source files and runtime data in the wheel (#3349) * packaging: ship DBC source files and runtime data in the wheel The 0.3.0 wheel only shipped safety headers via package-data. Every other data file (.dbc, .capnp, .toml, CARS_template.md) was missing, which meant the published package couldn't load any DBC or initialize car interfaces out of the box. Declare explicit package-data patterns for opendbc.dbc and opendbc.car so the generator's source .dbc files, rlog.capnp, the torque_data TOMLs, and the docs template are all included. After this, a clean \`pip install opendbc\` successfully round-trips a CAN message through CANPacker + CANParser. Co-Authored-By: Claude Opus 4.7 (1M context) * bump --------- Co-authored-by: Claude Opus 4.7 (1M context) --- RELEASES.md | 4 ++++ pyproject.toml | 6 ++++-- uv.lock | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 04e2319a..6d64c979 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,3 +1,7 @@ +Version 0.3.1 (2026-04-22) +======================== +* Ship DBCs, capnp schemas, and torque data in the wheel + Version 0.3.0 (2026-04-22) ======================== * Supported car count: 345 → 397 diff --git a/pyproject.toml b/pyproject.toml index f517d03c..ddfa2599 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "opendbc" -version = "0.3.0" +version = "0.3.1" description = "a Python API for your car" license = "MIT" authors = [{ name = "Vehicle Researcher", email = "user@comma.ai" }] @@ -134,4 +134,6 @@ too-many-positional-arguments = "ignore" include-package-data = true [tool.setuptools.package-data] -"opendbc.safety" = ["*.h", "board/*.h", "board/drivers/*.h", "modes/*.h"] +"opendbc.car" = ["**/*.capnp", "**/*.toml"] +"opendbc.dbc" = ["**/*.dbc"] +"opendbc.safety" = ["*.h", "modes/*.h"] diff --git a/uv.lock b/uv.lock index 2ed43eea..4302fe2d 100644 --- a/uv.lock +++ b/uv.lock @@ -382,7 +382,7 @@ wheels = [ [[package]] name = "opendbc" -version = "0.3.0" +version = "0.3.1" source = { editable = "." } dependencies = [ { name = "numpy" },