Bump python projects to 2025.2.1 (#1705)

Blocked on robotpy release

---------

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
Co-authored-by: Matt Morley <matthew.morley.ca@gmail.com>
This commit is contained in:
Jade
2025-01-13 05:24:36 +08:00
committed by GitHub
parent 03ff9357d7
commit 5f75619063
6 changed files with 16 additions and 12 deletions

View File

@@ -5,11 +5,11 @@ permissions:
on:
push:
branches: [ master ]
branches: [ main ]
tags:
- 'v*'
pull_request:
branches: [ master ]
branches: [ main ]
merge_group:
concurrency:

View File

@@ -59,11 +59,11 @@ setup(
version=versionString,
install_requires=[
"numpy~=2.1",
"wpilib<2026,>=2025.0.0b1",
"robotpy-wpimath<2026,>=2025.0.0b1",
"robotpy-apriltag<2026,>=2025.0.0b1",
"robotpy-cscore<2026,>=2025.0.0b1",
"pyntcore<2026,>=2025.0.0b1",
"wpilib<2026,>=2025.2.1",
"robotpy-wpimath<2026,>=2025.2.1",
"robotpy-apriltag<2026,>=2025.2.1",
"robotpy-cscore<2026,>=2025.2.1",
"pyntcore<2026,>=2025.2.1",
"opencv-python;platform_machine!='roborio'",
],
description=descriptionStr,

View File

@@ -604,10 +604,14 @@ def test_TagAmbiguity() -> None:
robotPose = Pose2d()
visionSysSim.update(robotPose)
ambiguity = camera.getLatestResult().getBestTarget().getPoseAmbiguity()
tgt = camera.getLatestResult().getBestTarget()
assert tgt is not None
ambiguity = tgt.getPoseAmbiguity()
assert ambiguity > 0.5, "Tag ambiguity expected to be high"
robotPose = Pose2d(Translation2d(-2.0, -2.0), Rotation2d.fromDegrees(30.0))
visionSysSim.update(robotPose)
ambiguity = camera.getLatestResult().getBestTarget().getPoseAmbiguity()
tgt = camera.getLatestResult().getBestTarget()
assert tgt is not None
ambiguity = tgt.getPoseAmbiguity()
assert 0 < ambiguity < 0.2, "Tag ambiguity expected to be high"

View File

@@ -6,7 +6,7 @@
[tool.robotpy]
# Version of robotpy this project depends on
robotpy_version = "2024.3.2.2"
robotpy_version = "2025.2.1"
# Which extra RobotPy components should be installed
# -> equivalent to `pip install robotpy[extra1, ...]

View File

@@ -6,7 +6,7 @@
[tool.robotpy]
# Version of robotpy this project depends on
robotpy_version = "2024.3.2.2"
robotpy_version = "2025.2.1"
# Which extra RobotPy components should be installed
# -> equivalent to `pip install robotpy[extra1, ...]

View File

@@ -6,7 +6,7 @@
[tool.robotpy]
# Version of robotpy this project depends on
robotpy_version = "2024.3.2.2"
robotpy_version = "2025.2.1"
# Which extra RobotPy components should be installed
# -> equivalent to `pip install robotpy[extra1, ...]