2025-10-24 01:28:04 -04:00
|
|
|
[build-system]
|
|
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
requires = [
|
2026-03-09 00:38:21 -04:00
|
|
|
"semiwrap~=0.3.0",
|
2026-04-26 11:25:15 -04:00
|
|
|
"hatch-meson~=0.1.2",
|
2025-10-24 01:28:04 -04:00
|
|
|
"hatchling",
|
2025-11-01 13:28:05 -04:00
|
|
|
"pyntcore==0.0.0",
|
|
|
|
|
"robotpy-native-wpihal==0.0.0",
|
|
|
|
|
"robotpy-wpiutil==0.0.0",
|
2025-10-24 01:28:04 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[project]
|
|
|
|
|
name = "robotpy-hal"
|
2025-11-01 13:28:05 -04:00
|
|
|
version = "0.0.0"
|
2026-03-13 23:05:55 -07:00
|
|
|
description = "Binary wrapper for WPILib HAL"
|
2025-10-24 01:28:04 -04:00
|
|
|
authors = [
|
|
|
|
|
{name = "RobotPy Development Team", email = "robotpy@googlegroups.com"},
|
|
|
|
|
]
|
|
|
|
|
license = "BSD-3-Clause"
|
|
|
|
|
dependencies = [
|
2025-11-01 13:28:05 -04:00
|
|
|
"pyntcore==0.0.0",
|
|
|
|
|
"robotpy-native-wpihal==0.0.0",
|
|
|
|
|
"robotpy-wpiutil==0.0.0",
|
2025-10-24 01:28:04 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[project.urls]
|
|
|
|
|
"Source code" = "https://github.com/robotpy/mostrobotpy"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.hooks.robotpy]
|
|
|
|
|
version_file = "hal/version.py"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.hooks.semiwrap]
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.hooks.meson]
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
|
|
|
packages = ["hal"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[tool.semiwrap]
|
|
|
|
|
update_init = []
|
2025-12-31 12:06:01 -05:00
|
|
|
|
|
|
|
|
# NOTE: By default we ignore all HAL APIs, as most of them are exposed in WPILib
|
|
|
|
|
# somewhere. If you find something that you need, file a bug and we can add it!
|
|
|
|
|
|
2025-10-24 01:28:04 -04:00
|
|
|
scan_headers_ignore = [
|
2025-12-31 12:06:01 -05:00
|
|
|
"wpi/hal/*",
|
2025-10-24 01:28:04 -04:00
|
|
|
|
|
|
|
|
# TODO: might want this in the future
|
|
|
|
|
"mrc/*",
|
|
|
|
|
|
|
|
|
|
"src/ds_types_fmt.h",
|
|
|
|
|
"sim_cb.h",
|
|
|
|
|
"sim_value_cb.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.semiwrap.extension_modules."hal._wpiHal"]
|
|
|
|
|
name = "wpihal"
|
|
|
|
|
wraps = ["robotpy-native-wpihal"]
|
|
|
|
|
depends = ["wpiutil", "ntcore"]
|
|
|
|
|
|
|
|
|
|
[tool.semiwrap.extension_modules."hal._wpiHal".headers]
|
|
|
|
|
# hal
|
2025-11-07 19:56:21 -05:00
|
|
|
CANAPITypes = "wpi/hal/CANAPITypes.h"
|
2026-01-04 00:41:53 -08:00
|
|
|
DriverStation_c = "wpi/hal/DriverStation.h"
|
|
|
|
|
DriverStation = "wpi/hal/DriverStation.hpp"
|
|
|
|
|
DriverStationTypes_c = "wpi/hal/DriverStationTypes.h"
|
|
|
|
|
DriverStationTypes = "wpi/hal/DriverStationTypes.hpp"
|
2025-11-07 19:56:21 -05:00
|
|
|
Extensions = "wpi/hal/Extensions.h"
|
2026-03-13 17:19:39 -07:00
|
|
|
HAL = "wpi/hal/HAL.h"
|
2025-11-07 19:56:21 -05:00
|
|
|
Main = "wpi/hal/Main.h"
|
2026-01-04 00:41:53 -08:00
|
|
|
Notifier_c = "wpi/hal/Notifier.h"
|
|
|
|
|
Notifier = "wpi/hal/Notifier.hpp"
|
|
|
|
|
SimDevice_c = "wpi/hal/SimDevice.h"
|
|
|
|
|
SimDevice = "wpi/hal/SimDevice.hpp"
|
2025-11-07 19:56:21 -05:00
|
|
|
Threads = "wpi/hal/Threads.h"
|
2026-01-04 00:41:53 -08:00
|
|
|
UsageReporting = "wpi/hal/UsageReporting.hpp"
|
2025-10-24 01:28:04 -04:00
|
|
|
|
|
|
|
|
[tool.semiwrap.extension_modules."hal.simulation._simulation"]
|
|
|
|
|
name = "hal_simulation"
|
|
|
|
|
wraps = ["robotpy-native-wpihal"]
|
|
|
|
|
depends = ["wpiutil", "ntcore"]
|
|
|
|
|
yaml_path = "semiwrap/simulation"
|
|
|
|
|
|
|
|
|
|
[tool.semiwrap.extension_modules."hal.simulation._simulation".headers]
|
2025-11-07 19:56:21 -05:00
|
|
|
DriverStationData = "wpi/hal/simulation/DriverStationData.h"
|
2026-01-04 00:41:53 -08:00
|
|
|
MockHooks_c = "wpi/hal/simulation/MockHooks.h"
|
|
|
|
|
MockHooks = "wpi/hal/simulation/MockHooks.hpp"
|
2025-11-07 19:56:21 -05:00
|
|
|
NotifierData = "wpi/hal/simulation/NotifierData.h"
|
|
|
|
|
Reset = "wpi/hal/simulation/Reset.h"
|
|
|
|
|
SimDeviceData = "wpi/hal/simulation/SimDeviceData.h"
|