|
1 | 1 | [build-system]
|
2 | 2 | build-backend = "hatchling.build"
|
3 | 3 | requires = [
|
4 |
| - "semiwrap", "hatch-meson", "hatch-vcs", "hatchling", |
5 |
| - "native.wpiutil==2025.3.2", |
| 4 | + "semiwrap~=0.1", |
| 5 | + "hatch-meson~=0.1.0b2", |
| 6 | + "hatch-robotpy~=0.2", |
| 7 | + "hatchling", |
| 8 | + "robotpy-native-wpiutil==2025.3.2", |
6 | 9 | ]
|
7 | 10 |
|
8 | 11 | [project]
|
9 | 12 | name = "robotpy-wpiutil"
|
10 |
| -dynamic = ["version"] |
| 13 | +version = "2025.3.2.2" |
11 | 14 | description = "Binary wrapper for FRC WPIUtil library"
|
12 | 15 | authors = [
|
13 | 16 | { name = "RobotPy Development Team", email = "[email protected]"},
|
14 | 17 | ]
|
15 | 18 | license = "BSD-3-Clause"
|
16 |
| -install_requires = [ |
17 |
| - "native.wpiutil==2025.3.2", |
18 |
| - "msvc-runtime>=14.42.34433; platform_system == 'Windows'" |
| 19 | +dependencies = [ |
| 20 | + "robotpy-native-wpiutil==2025.3.2", |
19 | 21 | ]
|
20 | 22 |
|
21 | 23 | [project.urls]
|
22 | 24 | "Source code" = "https://github.com/robotpy/mostrobotpy"
|
23 | 25 |
|
24 |
| -[tool.hatch.version] |
25 |
| -source = "vcs" |
26 |
| -raw-options.root = "../.." |
27 |
| - |
28 |
| -[tool.hatch.build.hooks.vcs] |
29 |
| -version-file = "wpiutil/version.py" |
30 |
| - |
31 | 26 |
|
| 27 | +[tool.hatch.build.hooks.robotpy] |
| 28 | +version_file = "wpiutil/version.py" |
32 | 29 |
|
33 | 30 | [tool.hatch.build.hooks.semiwrap]
|
34 |
| -# update_init = [ |
35 |
| -# "wpiutil", |
36 |
| -# "wpiutil.log wpiutil._wpiutil.log", |
37 |
| -# "wpiutil.sync wpiutil._wpiutil.sync", |
38 |
| -# "wpiutil.wpistruct wpiutil._wpiutil.wpistruct", |
39 |
| -# ] |
40 |
| -# scan_headers_ignore = [ |
41 |
| -# "fmt/*", |
42 |
| -# "google/*", |
43 |
| -# "wpi/*", |
44 |
| -# "wpystruct_fns.h", |
45 |
| -# "pb.h", |
46 |
| -# "pb_common.h", |
47 |
| -# "pb_decode.h", |
48 |
| -# "pb_encode.h", |
49 |
| -# ] |
50 | 31 |
|
51 | 32 | [tool.hatch.build.hooks.meson]
|
52 | 33 |
|
| 34 | +[tool.hatch.build.targets.wheel] |
| 35 | +packages = ["wpiutil"] |
| 36 | + |
53 | 37 |
|
54 | 38 | [tool.semiwrap]
|
| 39 | +update_init = [ |
| 40 | + "wpiutil", |
| 41 | + "wpiutil.log wpiutil._wpiutil.log", |
| 42 | + "wpiutil.sync wpiutil._wpiutil.sync", |
| 43 | + "wpiutil.wpistruct wpiutil._wpiutil.wpistruct", |
| 44 | +] |
| 45 | +scan_headers_ignore = [ |
| 46 | + "debugging.hpp", |
| 47 | + "debugging/*", |
| 48 | + "fmt/*", |
| 49 | + "google/*", |
| 50 | + "wpi/*", |
| 51 | + "wpystruct_fns.h", |
| 52 | + "pb.h", |
| 53 | + "pb_common.h", |
| 54 | + "pb_decode.h", |
| 55 | + "pb_encode.h", |
| 56 | +] |
| 57 | + |
55 | 58 | [tool.semiwrap.extension_modules."wpiutil._wpiutil"]
|
56 | 59 | name = "wpiutil"
|
57 | 60 | includes = [
|
58 | 61 | "wpiutil/src/wpistruct",
|
59 | 62 | ]
|
60 |
| -wraps = ["native.wpiutil"] |
| 63 | +wraps = ["robotpy-native-wpiutil"] |
61 | 64 | depends = ["wpiutil-casters"]
|
62 | 65 |
|
63 | 66 | [tool.semiwrap.extension_modules."wpiutil._wpiutil".headers]
|
|
0 commit comments