Skip to content

Commit d673205

Browse files
committed
Update robotpy-wpiutil test package to semiwrap
1 parent 7e318f9 commit d673205

32 files changed

+73
-76
lines changed

subprojects/robotpy-wpiutil/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ project('robotpy-wpiutil', ['cpp'],
22
default_options: ['warning_level=1', 'cpp_std=c++20',
33
'b_colorout=auto', 'optimization=2', 'b_pie=true'])
44

5-
subdir('wrapcfg')
5+
subdir('semiwrap')
66

77
wpiutil_sources += files(
88
'wpiutil/src/main.cpp',
@@ -11,4 +11,4 @@ wpiutil_sources += files(
1111
'wpiutil/src/wpistruct/wpystruct_fns.cpp',
1212
)
1313

14-
subdir('wrapcfg/modules')
14+
subdir('semiwrap/modules')

subprojects/robotpy-wpiutil/pyproject.toml

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,66 @@
11
[build-system]
22
build-backend = "hatchling.build"
33
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",
69
]
710

811
[project]
912
name = "robotpy-wpiutil"
10-
dynamic = ["version"]
13+
version = "2025.3.2.2"
1114
description = "Binary wrapper for FRC WPIUtil library"
1215
authors = [
1316
{name = "RobotPy Development Team", email = "[email protected]"},
1417
]
1518
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",
1921
]
2022

2123
[project.urls]
2224
"Source code" = "https://github.com/robotpy/mostrobotpy"
2325

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-
3126

27+
[tool.hatch.build.hooks.robotpy]
28+
version_file = "wpiutil/version.py"
3229

3330
[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-
# ]
5031

5132
[tool.hatch.build.hooks.meson]
5233

34+
[tool.hatch.build.targets.wheel]
35+
packages = ["wpiutil"]
36+
5337

5438
[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+
5558
[tool.semiwrap.extension_modules."wpiutil._wpiutil"]
5659
name = "wpiutil"
5760
includes = [
5861
"wpiutil/src/wpistruct",
5962
]
60-
wraps = ["native.wpiutil"]
63+
wraps = ["robotpy-native-wpiutil"]
6164
depends = ["wpiutil-casters"]
6265

6366
[tool.semiwrap.extension_modules."wpiutil._wpiutil".headers]

0 commit comments

Comments
 (0)