Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ build:
python: "3.11"
jobs:
post_install:
- python -m robotpy_sphinx.download_and_install robotpy mostrobotpy main dist pypi-other-X64-3.11
- python -m robotpy_sphinx.download_and_install robotpy mostrobotpy main dist pypi-Linux-X64-3.11
- python -m robotpy_sphinx.download_and_install robotpy mostrobotpy main dist pypi-meson-Linux-X64-3.11
post_build:
- mkdir --parents _readthedocs/htmlzip
- cp --recursive _readthedocs/html _readthedocs/$READTHEDOCS_PROJECT
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ Next install dependencies using pip:
pip install -r rdev_requirements.txt
pip install numpy

Then run this command to build all the wheels.
Then run these commands to build all the wheels for the current operating system.

./rdev.sh ci run
./rdev.sh ci build-other-wheels
./rdev.sh ci build-meson-wheels

All the resulting wheels are in `dist`, which can be installed using `pip`.

To build wheels for the robot platform, you need to use a crossenv docker image.
See `.github/workflows/dist.yml` for details.

Development environment
-----------------------
Expand Down
86 changes: 6 additions & 80 deletions subprojects/robotpy-hal/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,31 +40,12 @@ packages = ["hal"]

[tool.semiwrap]
update_init = []

# 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!

scan_headers_ignore = [
"wpi/hal/Errors.h",
"wpi/hal/HAL.h",
"wpi/hal/IMU.h",
"wpi/hal/IMUTypes.h",
"wpi/hal/SystemServer.h",
"wpi/hal/Types.h",
"wpi/hal/Value.h",

"wpi/hal/cpp/fpga_clock.h",

"wpi/hal/handles/DigitalHandleResource.h",
"wpi/hal/handles/IndexedClassedHandleResource.h",
"wpi/hal/handles/IndexedHandleResource.h",
"wpi/hal/handles/LimitedClassedHandleResource.h",
"wpi/hal/handles/LimitedHandleResource.h",
"wpi/hal/handles/UnlimitedHandleResource.h",

"wpi/hal/proto/*",

"wpi/hal/simulation/CanData.h",
"wpi/hal/simulation/I2CData.h",
"wpi/hal/simulation/NotifyListener.h",
"wpi/hal/simulation/SimCallbackRegistry.h",
"wpi/hal/simulation/SimDataValue.h",
"wpi/hal/*",

# TODO: might want this in the future
"mrc/*",
Expand All @@ -81,55 +62,16 @@ depends = ["wpiutil", "ntcore"]

[tool.semiwrap.extension_modules."hal._wpiHal".headers]
# hal
AddressableLED = "wpi/hal/AddressableLED.h"
AddressableLEDTypes = "wpi/hal/AddressableLEDTypes.h"
AnalogInput = "wpi/hal/AnalogInput.h"
CAN = "wpi/hal/CAN.h"
CANAPI = "wpi/hal/CANAPI.h"
CANAPITypes = "wpi/hal/CANAPITypes.h"
CTREPCM = "wpi/hal/CTREPCM.h"
Constants = "wpi/hal/Constants.h"
Counter = "wpi/hal/Counter.h"
DIO = "wpi/hal/DIO.h"
# DMA = "hal/DMA.h"
DriverStation = "wpi/hal/DriverStation.h"
DriverStationTypes = "wpi/hal/DriverStationTypes.h"
DutyCycle = "wpi/hal/DutyCycle.h"
Encoder = "wpi/hal/Encoder.h"
# Errors = "wpi/hal/Errors.h"
Extensions = "wpi/hal/Extensions.h"
# HAL = "wpi/hal/HAL.h"
HALBase = "wpi/hal/HALBase.h"
I2C = "wpi/hal/I2C.h"
I2CTypes = "wpi/hal/I2CTypes.h"
# IMU = "wpi/hal/IMU.h"
# IMUTypes = "wpi/hal/IMUTypes.h"
Main = "wpi/hal/Main.h"
Notifier = "wpi/hal/Notifier.h"
PWM = "wpi/hal/PWM.h"
Ports = "wpi/hal/Ports.h"
Power = "wpi/hal/Power.h"
PowerDistribution = "wpi/hal/PowerDistribution.h"
REVPH = "wpi/hal/REVPH.h"
SerialPort = "wpi/hal/SerialPort.h"
SimDevice = "wpi/hal/SimDevice.h"
UsageReporting = "wpi/hal/UsageReporting.h"
Threads = "wpi/hal/Threads.h"
# Types = "wpi/hal/Types.h"
# Value = "wpi/hal/Value.h"

# hal/cpp
# fpga_clock = "wpi/hal/cpp/fpga_clock.h"

# hal/handles
# DigitalHandleResource = "wpi/hal/handles/DigitalHandleResource.h"
HandlesInternal = "wpi/hal/handles/HandlesInternal.h"
# IndexedClassedHandleResource = "wpi/hal/handles/IndexedClassedHandleResource.h"
# IndexedHandleResource = "wpi/hal/handles/IndexedHandleResource.h"
# LimitedClassedHandleResource = "wpi/hal/handles/LimitedClassedHandleResource.h"
# LimitedHandleResource = "wpi/hal/handles/LimitedHandleResource.h"
# UnlimitedHandleResource = "wpi/hal/handles/UnlimitedHandleResource.h"

UsageReporting = "wpi/hal/UsageReporting.h"

[tool.semiwrap.extension_modules."hal.simulation._simulation"]
name = "hal_simulation"
Expand All @@ -138,24 +80,8 @@ depends = ["wpiutil", "ntcore"]
yaml_path = "semiwrap/simulation"

[tool.semiwrap.extension_modules."hal.simulation._simulation".headers]
AddressableLEDData = "wpi/hal/simulation/AddressableLEDData.h"
AnalogInData = "wpi/hal/simulation/AnalogInData.h"
CTREPCMData = "wpi/hal/simulation/CTREPCMData.h"
# CanData = "wpi/hal/simulation/CanData.h"
DIOData = "wpi/hal/simulation/DIOData.h"
DigitalPWMData = "wpi/hal/simulation/DigitalPWMData.h"
DriverStationData = "wpi/hal/simulation/DriverStationData.h"
DutyCycleData = "wpi/hal/simulation/DutyCycleData.h"
EncoderData = "wpi/hal/simulation/EncoderData.h"
# I2CData = "wpi/hal/simulation/I2CData.h"
MockHooks = "wpi/hal/simulation/MockHooks.h"
NotifierData = "wpi/hal/simulation/NotifierData.h"
# NotifyListener = "wpi/hal/simulation/NotifyListener.h"
PWMData = "wpi/hal/simulation/PWMData.h"
PowerDistributionData = "wpi/hal/simulation/PowerDistributionData.h"
REVPHData = "wpi/hal/simulation/REVPHData.h"
Reset = "wpi/hal/simulation/Reset.h"
RoboRioData = "wpi/hal/simulation/RoboRioData.h"
# SimCallbackRegistry = "wpi/hal/simulation/SimCallbackRegistry.h"
# SimDataValue = "wpi/hal/simulation/SimDataValue.h"
SimDeviceData = "wpi/hal/simulation/SimDeviceData.h"
9 changes: 0 additions & 9 deletions subprojects/robotpy-hal/semiwrap/AddressableLED.yml

This file was deleted.

14 changes: 0 additions & 14 deletions subprojects/robotpy-hal/semiwrap/AddressableLEDTypes.yml

This file was deleted.

23 changes: 0 additions & 23 deletions subprojects/robotpy-hal/semiwrap/AnalogInput.yml

This file was deleted.

16 changes: 0 additions & 16 deletions subprojects/robotpy-hal/semiwrap/CAN.yml

This file was deleted.

13 changes: 0 additions & 13 deletions subprojects/robotpy-hal/semiwrap/CANAPI.yml

This file was deleted.

26 changes: 0 additions & 26 deletions subprojects/robotpy-hal/semiwrap/CTREPCM.yml

This file was deleted.

5 changes: 0 additions & 5 deletions subprojects/robotpy-hal/semiwrap/Constants.yml

This file was deleted.

12 changes: 0 additions & 12 deletions subprojects/robotpy-hal/semiwrap/Counter.yml

This file was deleted.

22 changes: 0 additions & 22 deletions subprojects/robotpy-hal/semiwrap/DIO.yml

This file was deleted.

11 changes: 0 additions & 11 deletions subprojects/robotpy-hal/semiwrap/DutyCycle.yml

This file was deleted.

31 changes: 0 additions & 31 deletions subprojects/robotpy-hal/semiwrap/Encoder.yml

This file was deleted.

15 changes: 0 additions & 15 deletions subprojects/robotpy-hal/semiwrap/HandlesInternal.yml

This file was deleted.

16 changes: 0 additions & 16 deletions subprojects/robotpy-hal/semiwrap/I2C.yml

This file was deleted.

6 changes: 0 additions & 6 deletions subprojects/robotpy-hal/semiwrap/I2CTypes.yml

This file was deleted.

11 changes: 0 additions & 11 deletions subprojects/robotpy-hal/semiwrap/PWM.yml

This file was deleted.

Loading
Loading