mirror of
https://github.com/commaai/opendbc.git
synced 2026-06-08 06:04:45 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user