Skip to content

Commit abf0de9

Browse files
committed
Add most native library packages
- Fixes #101
1 parent 929566a commit abf0de9

File tree

18 files changed

+379
-0
lines changed

18 files changed

+379
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/src
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling",
5+
"hatch-nativelib",
6+
"hatch-robotpy",
7+
"native.wpiutil==2025.3.2",
8+
"native.wpimath==2025.3.2",
9+
]
10+
11+
[project]
12+
name = "native.apriltag"
13+
version = "2025.3.2"
14+
description = "WPILib AprilTag Library"
15+
license = "BSD-3-Clause"
16+
17+
dependencies = [
18+
"native.wpiutil==2025.3.2",
19+
"native.wpimath==2025.3.2",
20+
]
21+
22+
[tool.hatch.build.targets.wheel]
23+
packages = ["src/native"]
24+
25+
[[tool.hatch.build.hooks.robotpy.maven_lib_download]]
26+
artifact_id = "apriltag-cpp"
27+
group_id = "edu.wpi.first.apriltag"
28+
repo_url = "https://frcmaven.wpi.edu/artifactory/release"
29+
version = "2025.3.2"
30+
31+
extract_to = "src/native/apriltag"
32+
libs = ["apriltag"]
33+
34+
[[tool.hatch.build.hooks.nativelib.pcfile]]
35+
pcfile = "src/native/apriltag/native.apriltag.pc"
36+
name = "apriltag"
37+
38+
includedir = "src/native/apriltag/include"
39+
libdir = "src/native/apriltag/lib"
40+
shared_libraries = ["apriltag"]
41+
requires = ["native.wpiutil", "native.wpimath"]

subprojects/native.ntcore/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/src
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling",
5+
"hatch-nativelib",
6+
"hatch-robotpy",
7+
"native.wpiutil==2025.3.2",
8+
"native.wpinet==2025.3.2",
9+
]
10+
11+
[project]
12+
name = "native.ntcore"
13+
version = "2025.3.2"
14+
description = "WPILib NetworkTables Library"
15+
license = "BSD-3-Clause"
16+
17+
dependencies = [
18+
"native.wpiutil==2025.3.2",
19+
"native.wpinet==2025.3.2",
20+
]
21+
22+
[tool.hatch.build.targets.wheel]
23+
packages = ["src/native"]
24+
25+
[[tool.hatch.build.hooks.robotpy.maven_lib_download]]
26+
artifact_id = "ntcore-cpp"
27+
group_id = "edu.wpi.first.ntcore"
28+
repo_url = "https://frcmaven.wpi.edu/artifactory/release"
29+
version = "2025.3.2"
30+
31+
extract_to = "src/native/ntcore"
32+
libs = ["ntcore"]
33+
34+
[[tool.hatch.build.hooks.nativelib.pcfile]]
35+
pcfile = "src/native/ntcore/native.ntcore.pc"
36+
name = "ntcore"
37+
38+
includedir = "src/native/ntcore/include"
39+
libdir = "src/native/ntcore/lib"
40+
shared_libraries = ["ntcore"]
41+
requires = ["native.wpinet", "native.wpiutil"]

subprojects/native.romi/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/src
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling",
5+
"hatch-nativelib",
6+
"hatch-robotpy",
7+
"native.wpilib==2025.3.2",
8+
]
9+
10+
[project]
11+
name = "native.romi"
12+
version = "2025.3.2"
13+
description = "WPILib Romi support library"
14+
license = "BSD-3-Clause"
15+
16+
dependencies = [
17+
"native.wpilib==2025.3.2",
18+
]
19+
20+
[tool.hatch.build.targets.wheel]
21+
packages = ["src/native"]
22+
23+
[[tool.hatch.build.hooks.robotpy.maven_lib_download]]
24+
artifact_id = "romiVendordep-cpp"
25+
group_id = "edu.wpi.first.romiVendordep"
26+
repo_url = "https://frcmaven.wpi.edu/artifactory/release"
27+
version = "2025.3.2"
28+
29+
extract_to = "src/native/romi"
30+
libs = ["romiVendordep"]
31+
32+
[[tool.hatch.build.hooks.nativelib.pcfile]]
33+
pcfile = "src/native/romi/native.romi.pc"
34+
name = "romi"
35+
36+
includedir = "src/native/romi/include"
37+
libdir = "src/native/romi/lib"
38+
shared_libraries = ["romiVendordep"]
39+
requires = ["native.wpilib"]

subprojects/native.wpihal/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/src
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling",
5+
"hatch-nativelib",
6+
"hatch-robotpy",
7+
"native.wpiutil==2025.3.2",
8+
]
9+
10+
[project]
11+
name = "native.wpihal"
12+
version = "2025.3.2"
13+
description = "WPILib HAL implementation"
14+
license = "BSD-3-Clause"
15+
16+
dependencies = [
17+
"native.wpiutil==2025.3.2",
18+
]
19+
20+
[tool.hatch.build.targets.wheel]
21+
packages = ["src/native"]
22+
23+
[[tool.hatch.build.hooks.robotpy.maven_lib_download]]
24+
artifact_id = "hal-cpp"
25+
group_id = "edu.wpi.first.hal"
26+
repo_url = "https://frcmaven.wpi.edu/artifactory/release"
27+
version = "2025.3.2"
28+
29+
extract_to = "src/native/wpihal"
30+
libs = ["wpiHal"]
31+
32+
[[tool.hatch.build.hooks.nativelib.pcfile]]
33+
pcfile = "src/native/wpihal/native.wpihal.pc"
34+
name = "wpihal"
35+
36+
includedir = "src/native/wpihal/include"
37+
libdir = "src/native/wpihal/lib"
38+
shared_libraries = ["wpiHal"]
39+
requires = ["native.wpiutil"]

subprojects/native.wpilib/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/src
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling",
5+
"hatch-nativelib",
6+
"hatch-robotpy",
7+
"native.wpiutil==2025.3.2",
8+
"native.wpinet==2025.3.2",
9+
"native.ntcore==2025.3.2",
10+
"native.wpimath==2025.3.2",
11+
"native.wpihal==2025.3.2",
12+
]
13+
14+
[project]
15+
name = "native.wpilib"
16+
version = "2025.3.2"
17+
description = "WPILib Robotics Library"
18+
license = "BSD-3-Clause"
19+
20+
dependencies = [
21+
"native.wpiutil==2025.3.2",
22+
"native.wpinet==2025.3.2",
23+
"native.ntcore==2025.3.2",
24+
"native.wpimath==2025.3.2",
25+
"native.wpihal==2025.3.2",
26+
]
27+
28+
[tool.hatch.build.targets.wheel]
29+
packages = ["src/native"]
30+
31+
[[tool.hatch.build.hooks.robotpy.maven_lib_download]]
32+
artifact_id = "wpilibc-cpp"
33+
group_id = "edu.wpi.first.wpilibc"
34+
repo_url = "https://frcmaven.wpi.edu/artifactory/release"
35+
version = "2025.3.2"
36+
37+
extract_to = "src/native/wpilib"
38+
libs = ["wpilibc"]
39+
40+
[[tool.hatch.build.hooks.nativelib.pcfile]]
41+
pcfile = "src/native/wpilib/native.wpilib.pc"
42+
name = "wpilib"
43+
44+
includedir = "src/native/wpilib/include"
45+
libdir = "src/native/wpilib/lib"
46+
shared_libraries = ["wpilibc"]
47+
requires = ["native.wpiutil", "native.wpinet", "native.ntcore", "native.wpimath", "native.wpihal"]

subprojects/native.wpimath/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/src
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling",
5+
"hatch-nativelib",
6+
"hatch-robotpy",
7+
"native.wpiutil==2025.3.2",
8+
]
9+
10+
[project]
11+
name = "native.wpimath"
12+
version = "2025.3.2"
13+
description = "WPILib Math Library"
14+
license = "BSD-3-Clause"
15+
16+
dependencies = [
17+
"native.wpiutil==2025.3.2",
18+
]
19+
20+
[tool.hatch.build.targets.wheel]
21+
packages = ["src/native"]
22+
23+
[[tool.hatch.build.hooks.robotpy.maven_lib_download]]
24+
artifact_id = "wpimath-cpp"
25+
group_id = "edu.wpi.first.wpimath"
26+
repo_url = "https://frcmaven.wpi.edu/artifactory/release"
27+
version = "2025.3.2"
28+
29+
extract_to = "src/native/wpimath"
30+
libs = ["wpimath"]
31+
32+
[[tool.hatch.build.hooks.nativelib.pcfile]]
33+
pcfile = "src/native/wpimath/native.wpimath.pc"
34+
name = "wpimath"
35+
36+
includedir = "src/native/wpimath/include"
37+
libdir = "src/native/wpimath/lib"
38+
shared_libraries = ["wpimath"]
39+
requires = ["native.wpiutil"]

subprojects/native.wpinet/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/src
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling",
5+
"hatch-nativelib",
6+
"hatch-robotpy",
7+
"native.wpiutil==2025.3.2",
8+
]
9+
10+
[project]
11+
name = "native.wpinet"
12+
version = "2025.3.2"
13+
description = "WPILib Networking Library"
14+
license = "BSD-3-Clause"
15+
16+
dependencies = [
17+
"native.wpiutil==2025.3.2",
18+
]
19+
20+
[tool.hatch.build.targets.wheel]
21+
packages = ["src/native"]
22+
23+
[[tool.hatch.build.hooks.robotpy.maven_lib_download]]
24+
artifact_id = "wpinet-cpp"
25+
group_id = "edu.wpi.first.wpinet"
26+
repo_url = "https://frcmaven.wpi.edu/artifactory/release"
27+
version = "2025.3.2"
28+
29+
extract_to = "src/native/wpinet"
30+
libs = ["wpinet"]
31+
32+
[[tool.hatch.build.hooks.nativelib.pcfile]]
33+
pcfile = "src/native/wpinet/native.wpinet.pc"
34+
name = "wpinet"
35+
36+
includedir = "src/native/wpinet/include"
37+
libdir = "src/native/wpinet/lib"
38+
shared_libraries = ["wpinet"]
39+
requires = ["native.wpiutil"]

subprojects/native.wpiutil/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/src
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling",
5+
"hatch-nativelib",
6+
"hatch-robotpy",
7+
]
8+
9+
[project]
10+
name = "native.wpiutil"
11+
version = "2025.3.2"
12+
description = "WPILib Utility Library"
13+
license = "BSD-3-Clause"
14+
15+
dependencies = [
16+
"msvc-runtime>=14.42.34433; platform_system == 'Windows'"
17+
]
18+
19+
[tool.hatch.build.targets.wheel]
20+
packages = ["src/native"]
21+
22+
[[tool.hatch.build.hooks.robotpy.maven_lib_download]]
23+
artifact_id = "wpiutil-cpp"
24+
group_id = "edu.wpi.first.wpiutil"
25+
repo_url = "https://frcmaven.wpi.edu/artifactory/release"
26+
version = "2025.3.2"
27+
28+
extract_to = "src/native/wpiutil"
29+
libs = ["wpiutil"]
30+
31+
[[tool.hatch.build.hooks.nativelib.pcfile]]
32+
pcfile = "src/native/wpiutil/native.wpiutil.pc"
33+
name = "wpiutil"
34+
35+
includedir = "src/native/wpiutil/include"
36+
libdir = "src/native/wpiutil/lib"
37+
shared_libraries = ["wpiutil"]

subprojects/native.xrp/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/src

subprojects/native.xrp/pyproject.toml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling",
5+
"hatch-nativelib",
6+
"hatch-robotpy",
7+
"native.wpilib==2025.3.2",
8+
]
9+
10+
[project]
11+
name = "native.xrp"
12+
version = "2025.3.2"
13+
description = "WPILib XRP vendor library"
14+
license = "BSD-3-Clause"
15+
16+
dependencies = [
17+
"native.wpilib==2025.3.2",
18+
]
19+
20+
[tool.hatch.build.targets.wheel]
21+
packages = ["src/native"]
22+
23+
[[tool.hatch.build.hooks.robotpy.maven_lib_download]]
24+
artifact_id = "xrpVendordep-cpp"
25+
group_id = "edu.wpi.first.xrpVendordep"
26+
repo_url = "https://frcmaven.wpi.edu/artifactory/release"
27+
version = "2025.3.2"
28+
29+
extract_to = "src/native/xrp"
30+
libs = ["xrpVendordep"]
31+
32+
[[tool.hatch.build.hooks.nativelib.pcfile]]
33+
pcfile = "src/native/xrp/native.xrp.pc"
34+
name = "xrp"
35+
36+
includedir = "src/native/xrp/include"
37+
libdir = "src/native/xrp/lib"
38+
shared_libraries = ["xrpVendordep"]
39+
requires = ["native.wpilib"]

0 commit comments

Comments
 (0)