|
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-playingwithfusion" |
| 15 | +dynamic = ["version"] |
3 | 16 | description = "PlayingWithFusion for RobotPy" |
4 | | -author = "RobotPy Development Team" |
5 | | -author_email = "robotpy@googlegroups.com" |
6 | | -url = "https://github.com/robotpy/robotpy-playingwithfusion" |
7 | 17 | license = "BSD-3-Clause" |
8 | | -install_requires = [ |
| 18 | +dependencies = [ |
9 | 19 | "robotpy-wpiutil<2026.0.0,>=2025.3.2", |
10 | 20 | "robotpy-wpimath<2026.0.0,>=2025.3.2", |
11 | 21 | "wpilib<2026.0.0,>=2025.3.2", |
12 | 22 | ] |
13 | 23 |
|
14 | | -[build-system] |
15 | | -requires = [ |
16 | | - "robotpy-build~=2025.1.0", |
17 | | - "robotpy-wpiutil<2026.0.0,>=2025.3.2", |
18 | | - "robotpy-wpimath<2026.0.0,>=2025.3.2", |
19 | | - "wpilib<2026.0.0,>=2025.3.2", |
20 | | -] |
| 24 | +[[project.authors]] |
| 25 | +name = "RobotPy Development Team" |
| 26 | +email = "robotpy@googlegroups.com" |
| 27 | + |
| 28 | +[project.urls] |
| 29 | +"Source code" = "https://github.com/robotpy/robotpy-playingwithfusion" |
| 30 | + |
21 | 31 |
|
22 | | -[tool.robotpy-build] |
23 | | -base_package = "playingwithfusion" |
24 | 32 |
|
25 | | -[tool.robotpy-build.wrappers."playingwithfusion._pwf_driver".maven_lib_download] |
| 33 | +[tool.hatch.version] |
| 34 | +source = "vcs" |
| 35 | + |
| 36 | +[tool.hatch.build.hooks.vcs] |
| 37 | +version-file = "playingwithfusion/version.py" |
| 38 | + |
| 39 | +[tool.hatch.build.targets.wheel] |
| 40 | +packages = ["playingwithfusion"] |
| 41 | + |
| 42 | + |
| 43 | +[[tool.hatch.build.hooks.robotpy.maven_lib_download]] |
26 | 44 | artifact_id = "PlayingWithFusion-driver" |
27 | 45 | group_id = "com.playingwithfusion.frc" |
28 | 46 | repo_url = "https://www.playingwithfusion.com/frc/maven" |
29 | 47 | version = "2025.01.23" |
| 48 | +staticlibs = ["PlayingWithFusionDriver"] |
| 49 | +extract_to = "lib" |
30 | 50 |
|
31 | | -libs = ["PlayingWithFusionDriver"] |
32 | | - |
33 | | -[tool.robotpy-build.wrappers."playingwithfusion._pwf_driver"] |
34 | | -name = "playingwithfusion_driver" |
35 | | -depends = ["wpilib_core", "wpiHal", "wpiutil"] |
36 | | - |
37 | | -[tool.robotpy-build.wrappers."playingwithfusion".maven_lib_download] |
| 51 | +[[tool.hatch.build.hooks.robotpy.maven_lib_download]] |
38 | 52 | artifact_id = "PlayingWithFusion-cpp" |
39 | 53 | group_id = "com.playingwithfusion.frc" |
40 | 54 | repo_url = "https://www.playingwithfusion.com/frc/maven" |
41 | 55 | version = "2025.01.23" |
| 56 | +staticlibs = ["PlayingWithFusion"] |
| 57 | +extract_to = "lib" |
42 | 58 |
|
43 | | -libs = ["PlayingWithFusion"] |
44 | 59 |
|
45 | | -[tool.robotpy-build.wrappers."playingwithfusion"] |
| 60 | +[tool.hatch.build.hooks.semiwrap] |
| 61 | + |
| 62 | +[tool.hatch.build.hooks.meson] |
| 63 | + |
| 64 | + |
| 65 | +[tool.semiwrap] |
| 66 | +update_init = ["playingwithfusion"] |
| 67 | + |
| 68 | +[tool.semiwrap.extension_modules."playingwithfusion._playingwithfusion"] |
46 | 69 | name = "playingwithfusion" |
47 | | -sources = [ |
48 | | - "playingwithfusion/pwf.cpp" |
49 | | -] |
50 | 70 |
|
51 | | -depends = ["wpilibc", "wpilib_core", "wpiHal", "wpiutil", "playingwithfusion_driver"] |
| 71 | +depends = ["wpilib"] |
52 | 72 |
|
53 | | -generate = [ |
54 | | - { CANVenom = "CANVenom.h" }, |
55 | | - { TMD37003 = "TMD37003.h" }, |
56 | | - { TimeOfFlight = "TimeOfFlight.h" }, |
| 73 | +includes = [ |
| 74 | + "lib/include" |
57 | 75 | ] |
58 | 76 |
|
59 | | -generation_data = "gen" |
60 | | - |
| 77 | +[tool.semiwrap.extension_modules."playingwithfusion._playingwithfusion".headers] |
| 78 | +CANVenom = "CANVenom.h" |
| 79 | +TMD37003 = "TMD37003.h" |
| 80 | +TimeOfFlight = "TimeOfFlight.h" |
0 commit comments