mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
[robotpy] Sync robotpy (#8318)
Project import generated by Copybara. GitOrigin-RevId: f6818c55dda55da1226e47a05a22d30f7cc477f1
This commit is contained in:
@@ -4,21 +4,21 @@ requires = [
|
||||
"hatchling",
|
||||
"hatch-nativelib~=0.2.0",
|
||||
"hatch-robotpy~=0.2.1",
|
||||
"robotpy-native-wpiutil==2027.0.0a2",
|
||||
"robotpy-native-wpinet==2027.0.0a2",
|
||||
"robotpy-native-datalog==2027.0.0a2",
|
||||
"robotpy-native-wpiutil==0.0.0",
|
||||
"robotpy-native-wpinet==0.0.0",
|
||||
"robotpy-native-datalog==0.0.0",
|
||||
]
|
||||
|
||||
[project]
|
||||
name = "robotpy-native-ntcore"
|
||||
version = "2027.0.0a2"
|
||||
version = "0.0.0"
|
||||
description = "WPILib NetworkTables Library"
|
||||
license = "BSD-3-Clause"
|
||||
|
||||
dependencies = [
|
||||
"robotpy-native-wpiutil==2027.0.0a2",
|
||||
"robotpy-native-wpinet==2027.0.0a2",
|
||||
"robotpy-native-datalog==2027.0.0a2",
|
||||
"robotpy-native-wpiutil==0.0.0",
|
||||
"robotpy-native-wpinet==0.0.0",
|
||||
"robotpy-native-datalog==0.0.0",
|
||||
]
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
@@ -28,7 +28,7 @@ packages = ["src/native"]
|
||||
artifact_id = "ntcore-cpp"
|
||||
group_id = "edu.wpi.first.ntcore"
|
||||
repo_url = "https://frcmaven.wpi.edu/artifactory/release-2027"
|
||||
version = "2027.0.0-alpha-2"
|
||||
version = "0.0.0"
|
||||
|
||||
extract_to = "src/native/ntcore"
|
||||
libs = ["ntcore"]
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
[build-system]
|
||||
build-backend = "hatchling.build"
|
||||
requires = [
|
||||
"semiwrap~=0.1.7",
|
||||
"hatch-meson~=0.1.0b2",
|
||||
"semiwrap~=0.2.1",
|
||||
"hatch-meson~=0.1.0",
|
||||
"hatch-robotpy~=0.2.1",
|
||||
"hatchling",
|
||||
"robotpy-native-ntcore==2027.0.0a2",
|
||||
"robotpy-wpiutil==2027.0.0a2",
|
||||
"robotpy-wpinet==2027.0.0a2",
|
||||
"robotpy-wpilog==2027.0.0a2",
|
||||
"robotpy-native-ntcore==0.0.0",
|
||||
"robotpy-wpiutil==0.0.0",
|
||||
"robotpy-wpinet==0.0.0",
|
||||
"robotpy-wpilog==0.0.0",
|
||||
]
|
||||
|
||||
|
||||
[project]
|
||||
name = "pyntcore"
|
||||
version = "2027.0.0a2"
|
||||
version = "0.0.0"
|
||||
description = "Binary wrappers for the FRC ntcore library"
|
||||
authors = [
|
||||
{name = "RobotPy Development Team", email = "robotpy@googlegroups.com"},
|
||||
]
|
||||
license = "BSD-3-Clause"
|
||||
dependencies = [
|
||||
"robotpy-native-ntcore==2027.0.0a2",
|
||||
"robotpy-wpiutil==2027.0.0a2",
|
||||
"robotpy-wpinet==2027.0.0a2",
|
||||
"robotpy-wpilog==2027.0.0a2",
|
||||
"robotpy-native-ntcore==0.0.0",
|
||||
"robotpy-wpiutil==0.0.0",
|
||||
"robotpy-wpinet==0.0.0",
|
||||
"robotpy-wpilog==0.0.0",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# works correctly
|
||||
#
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import pytest
|
||||
|
||||
import logging
|
||||
|
||||
@@ -27,7 +27,7 @@ from ntcore.util import ntproperty, ChooserControl
|
||||
|
||||
|
||||
def test_ntproperty(nt: NetworkTableInstance):
|
||||
class Foo(object):
|
||||
class Foo:
|
||||
robotTime = ntproperty(
|
||||
"/SmartDashboard/robotTime", 0.0, writeDefault=False, inst=nt
|
||||
)
|
||||
@@ -85,14 +85,14 @@ def test_ntproperty(nt: NetworkTableInstance):
|
||||
def test_ntproperty_emptyarray(nt: NetworkTableInstance):
|
||||
with pytest.raises(TypeError):
|
||||
|
||||
class Foo1(object):
|
||||
class Foo1:
|
||||
testArray = ntproperty(
|
||||
"/SmartDashboard/testArray", [], writeDefault=True, inst=nt
|
||||
)
|
||||
|
||||
with pytest.raises(TypeError):
|
||||
|
||||
class Foo2(object):
|
||||
class Foo2:
|
||||
testArray = ntproperty(
|
||||
"/SmartDashboard/testArray", [], writeDefault=False, inst=nt
|
||||
)
|
||||
@@ -106,7 +106,7 @@ def test_ntproperty_multitest(nt: NetworkTableInstance):
|
||||
pyfrc tests
|
||||
"""
|
||||
|
||||
class Foo(object):
|
||||
class Foo:
|
||||
robotTime = ntproperty(
|
||||
"/SmartDashboard/robotTime", 0.0, writeDefault=False, inst=nt
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user