|
1 | | -[tool.robotpy-build.metadata] |
| 1 | +[build-system] |
| 2 | +build-backend = "hatchling.build" |
| 3 | +requires = [ |
| 4 | + "semiwrap~=0.1", |
| 5 | + "hatch-meson~=0.1.0b2", |
| 6 | + "hatch-robotpy~=0.2", |
| 7 | + "hatchling", |
| 8 | + "robotpy-native-romi==2025.3.2", |
| 9 | + "wpilib==2025.3.2.2", |
| 10 | +] |
| 11 | + |
| 12 | + |
| 13 | +[project] |
2 | 14 | name = "robotpy-romi" |
| 15 | +version = "2025.3.2.2" |
3 | 16 | description = "Binary wrapper for WPILib Romi Vendor library" |
4 | | -author = "RobotPy Development Team" |
5 | | -author_email = "robotpy@googlegroups.com" |
6 | | -url = "https://github.com/robotpy/mostrobotpy" |
| 17 | +authors = [ |
| 18 | + {name = "RobotPy Development Team", email = "robotpy@googlegroups.com"}, |
| 19 | +] |
7 | 20 | license = "BSD-3-Clause" |
8 | | -install_requires = [ |
9 | | - "wpilib==THIS_VERSION" |
| 21 | +dependencies = [ |
| 22 | + "wpilib==2025.3.2.2" |
10 | 23 | ] |
11 | 24 |
|
12 | | -[build-system] |
13 | | -requires = [ |
14 | | - "robotpy-build~=2025.1.0", |
15 | | - "wpilib~=2025.3.2" |
16 | | -] |
| 25 | +[project.urls] |
| 26 | +"Source code" = "https://github.com/robotpy/mostrobotpy" |
| 27 | + |
| 28 | + |
| 29 | +[tool.hatch.build.hooks.robotpy] |
| 30 | +version_file = "romi/version.py" |
| 31 | + |
| 32 | +[tool.hatch.build.hooks.semiwrap] |
17 | 33 |
|
18 | | -[tool.robotpy-build] |
19 | | -base_package = "romi" |
| 34 | +[tool.hatch.build.hooks.meson] |
20 | 35 |
|
21 | | -[tool.robotpy-build.wrappers."romi"] |
| 36 | +[tool.hatch.build.targets.wheel] |
| 37 | +packages = ["romi"] |
| 38 | + |
| 39 | + |
| 40 | +[tool.semiwrap] |
| 41 | +update_init = ["romi"] |
| 42 | + |
| 43 | +[tool.semiwrap.extension_modules."romi._romi"] |
22 | 44 | name = "romi" |
23 | | -sources = ["romi/src/main.cpp"] |
24 | | -generation_data = "gen" |
| 45 | +wraps = ["robotpy-native-romi"] |
25 | 46 | depends = [ |
26 | | - "wpilib_core", "wpilibc_interfaces", "wpilibc", |
27 | | - "wpimath_cpp", "wpimath_geometry", |
28 | | - "wpiHal", "wpiutil", "ntcore", |
| 47 | + "wpilib", "wpimath_geometry" |
29 | 48 | ] |
30 | 49 |
|
31 | | -[tool.robotpy-build.wrappers."romi".autogen_headers] |
| 50 | +[tool.semiwrap.extension_modules."romi._romi".headers] |
32 | 51 | # frc/romi |
33 | 52 | OnBoardIO = "frc/romi/OnBoardIO.h" |
34 | 53 | RomiGyro = "frc/romi/RomiGyro.h" |
35 | 54 | RomiMotor = "frc/romi/RomiMotor.h" |
36 | | - |
37 | | -[tool.robotpy-build.wrappers."romi".maven_lib_download] |
38 | | -artifact_id = "romiVendordep-cpp" |
39 | | -group_id = "edu.wpi.first.romiVendordep" |
40 | | -# repo_url = "https://frcmaven.wpi.edu/artifactory/release" |
41 | | -repo_url = "https://frcmaven.wpi.edu/artifactory/release" |
42 | | -version = "2025.3.2" |
43 | | -libs = ["romiVendordep"] |
|
0 commit comments