Skip to content

Commit 5f75619

Browse files
spacey-sootymcm001
andauthored
Bump python projects to 2025.2.1 (#1705)
Blocked on robotpy release --------- Signed-off-by: Jade Turner <[email protected]> Co-authored-by: Matt Morley <[email protected]>
1 parent 03ff935 commit 5f75619

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

.github/workflows/python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ permissions:
55

66
on:
77
push:
8-
branches: [ master ]
8+
branches: [ main ]
99
tags:
1010
- 'v*'
1111
pull_request:
12-
branches: [ master ]
12+
branches: [ main ]
1313
merge_group:
1414

1515
concurrency:

photon-lib/py/setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@
5959
version=versionString,
6060
install_requires=[
6161
"numpy~=2.1",
62-
"wpilib<2026,>=2025.0.0b1",
63-
"robotpy-wpimath<2026,>=2025.0.0b1",
64-
"robotpy-apriltag<2026,>=2025.0.0b1",
65-
"robotpy-cscore<2026,>=2025.0.0b1",
66-
"pyntcore<2026,>=2025.0.0b1",
62+
"wpilib<2026,>=2025.2.1",
63+
"robotpy-wpimath<2026,>=2025.2.1",
64+
"robotpy-apriltag<2026,>=2025.2.1",
65+
"robotpy-cscore<2026,>=2025.2.1",
66+
"pyntcore<2026,>=2025.2.1",
6767
"opencv-python;platform_machine!='roborio'",
6868
],
6969
description=descriptionStr,

photon-lib/py/test/visionSystemSim_test.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,10 +604,14 @@ def test_TagAmbiguity() -> None:
604604

605605
robotPose = Pose2d()
606606
visionSysSim.update(robotPose)
607-
ambiguity = camera.getLatestResult().getBestTarget().getPoseAmbiguity()
607+
tgt = camera.getLatestResult().getBestTarget()
608+
assert tgt is not None
609+
ambiguity = tgt.getPoseAmbiguity()
608610
assert ambiguity > 0.5, "Tag ambiguity expected to be high"
609611

610612
robotPose = Pose2d(Translation2d(-2.0, -2.0), Rotation2d.fromDegrees(30.0))
611613
visionSysSim.update(robotPose)
612-
ambiguity = camera.getLatestResult().getBestTarget().getPoseAmbiguity()
614+
tgt = camera.getLatestResult().getBestTarget()
615+
assert tgt is not None
616+
ambiguity = tgt.getPoseAmbiguity()
613617
assert 0 < ambiguity < 0.2, "Tag ambiguity expected to be high"

photonlib-python-examples/aimandrange/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[tool.robotpy]
77

88
# Version of robotpy this project depends on
9-
robotpy_version = "2024.3.2.2"
9+
robotpy_version = "2025.2.1"
1010

1111
# Which extra RobotPy components should be installed
1212
# -> equivalent to `pip install robotpy[extra1, ...]

photonlib-python-examples/aimattarget/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[tool.robotpy]
77

88
# Version of robotpy this project depends on
9-
robotpy_version = "2024.3.2.2"
9+
robotpy_version = "2025.2.1"
1010

1111
# Which extra RobotPy components should be installed
1212
# -> equivalent to `pip install robotpy[extra1, ...]

photonlib-python-examples/poseest/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[tool.robotpy]
77

88
# Version of robotpy this project depends on
9-
robotpy_version = "2024.3.2.2"
9+
robotpy_version = "2025.2.1"
1010

1111
# Which extra RobotPy components should be installed
1212
# -> equivalent to `pip install robotpy[extra1, ...]

0 commit comments

Comments
 (0)