|
1 | | -[tool.robotpy-build.metadata] |
| 1 | +[build-system] |
| 2 | +build-backend = "hatchling.build" |
| 3 | +requires = [ |
| 4 | + "hatchling", |
| 5 | + "hatch-vcs", |
| 6 | + "semiwrap~=0.1", |
| 7 | + "hatch-meson~=0.1.0b2", |
| 8 | + "hatch-robotpy~=0.2.0", |
| 9 | + "wpilib~=2025.3.2.2", |
| 10 | +] |
| 11 | + |
| 12 | + |
| 13 | +[project] |
2 | 14 | name = "robotpy-rev" |
| 15 | +dynamic = ["version"] |
3 | 16 | description = "REVLib for RobotPy" |
4 | | -author = "RobotPy Development Team" |
5 | | -author_email = "robotpy@googlegroups.com" |
6 | | -url = "https://github.com/robotpy/robotpy-rev" |
7 | 17 | license = "BSD-3-Clause" |
8 | | -install_requires = [ |
9 | | - "wpilib<2026.0.0,>=2025.3.2", |
| 18 | +dependencies = [ |
| 19 | + "wpilib~=2025.3.2.2", |
10 | 20 | ] |
11 | 21 |
|
12 | | -[build-system] |
13 | | -requires = [ |
14 | | - "robotpy-build<2026.0.0,~=2025.1.0", |
15 | | - "wpilib<2026.0.0,>=2025.3.2", |
16 | | -] |
| 22 | +[[project.authors]] |
| 23 | +name = "RobotPy Development Team" |
| 24 | +email = "robotpy@googlegroups.com" |
17 | 25 |
|
18 | | -[tool.robotpy-build] |
19 | | -base_package = "rev" |
20 | | -update_init = ["rev"] |
| 26 | +[project.urls] |
| 27 | +"Source code" = "https://github.com/robotpy/robotpy-ctre" |
21 | 28 |
|
22 | | -[tool.robotpy-build.static_libs."revlib_driver".maven_lib_download] |
23 | | -artifact_id = "REVLib-driver" |
| 29 | + |
| 30 | +[tool.hatch.version] |
| 31 | +source = "vcs" |
| 32 | + |
| 33 | +[tool.hatch.build.hooks.vcs] |
| 34 | +version-file = "rev/version.py" |
| 35 | + |
| 36 | +[tool.hatch.build.targets.wheel] |
| 37 | +packages = ["rev"] |
| 38 | + |
| 39 | +# |
| 40 | +# Autogenerated TOML via `python3 -m hatch_robotpy.from_vendor` |
| 41 | +# |
| 42 | + |
| 43 | +[[tool.hatch.build.hooks.robotpy.maven_lib_download]] |
| 44 | +artifact_id = "REVLib-cpp" |
24 | 45 | group_id = "com.revrobotics.frc" |
25 | 46 | repo_url = "https://maven.revrobotics.com" |
26 | 47 | version = "2025.0.3" |
27 | | -libs = ["REVLibDriver"] |
| 48 | +staticlibs = ["REVLib"] |
| 49 | +extract_to = "lib" |
28 | 50 |
|
29 | | -[tool.robotpy-build.static_libs."revlib".maven_lib_download] |
30 | | -artifact_id = "REVLib-cpp" |
| 51 | +[[tool.hatch.build.hooks.robotpy.maven_lib_download]] |
| 52 | +artifact_id = "REVLib-driver" |
31 | 53 | group_id = "com.revrobotics.frc" |
32 | 54 | repo_url = "https://maven.revrobotics.com" |
33 | 55 | version = "2025.0.3" |
34 | | -libs = ["REVLib"] |
| 56 | +staticlibs = [ "REVLibDriver"] |
| 57 | +extract_to = "lib" |
| 58 | + |
| 59 | +# |
| 60 | +# End autogenerated TOML |
| 61 | +# |
| 62 | + |
| 63 | + |
| 64 | +[tool.hatch.build.hooks.semiwrap] |
| 65 | + |
| 66 | +[tool.hatch.build.hooks.meson] |
35 | 67 |
|
36 | | -[tool.robotpy-build.wrappers."rev"] |
| 68 | + |
| 69 | + |
| 70 | +[tool.semiwrap] |
| 71 | +update_init = ["rev"] |
| 72 | + |
| 73 | + |
| 74 | +[tool.semiwrap.extension_modules."rev._rev"] |
37 | 75 | name = "rev" |
38 | | -sources = [ |
39 | | - "rev/rev.cpp" |
40 | | -] |
41 | 76 |
|
42 | 77 | depends = [ |
43 | | - "wpilibc", |
44 | | - "wpilib_core", |
45 | | - "wpimath_cpp", |
46 | | - "wpiHal", |
47 | | - "wpiutil", |
48 | | - "revlib_driver", |
49 | | - "revlib", |
| 78 | + "wpilib", |
50 | 79 | ] |
51 | 80 |
|
52 | | -generation_data = "gen" |
| 81 | +includes = [ |
| 82 | + "lib/include" |
| 83 | +] |
53 | 84 |
|
54 | | -[tool.robotpy-build.wrappers."rev".autogen_headers] |
| 85 | +[tool.semiwrap.extension_modules."rev._rev".headers] |
55 | 86 | # rev |
56 | 87 | # CANSparkDriver = "rev/CANSparkDriver.h" |
57 | 88 | # CANSparkDriverPrivate = "rev/CANSparkDriverPrivate.h" |
|
0 commit comments