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) <noreply@anthropic.com>

* bump

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Shane Smiskol
2026-04-22 01:26:37 -07:00
committed by GitHub
parent b69cb4d030
commit ae12e2d4da
3 changed files with 9 additions and 3 deletions

View File

@@ -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

View File

@@ -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"]

2
uv.lock generated
View File

@@ -382,7 +382,7 @@ wheels = [
[[package]]
name = "opendbc"
version = "0.3.0"
version = "0.3.1"
source = { editable = "." }
dependencies = [
{ name = "numpy" },