Skip to content

Commit 2129962

Browse files
authored
Merge pull request #13 from robotpy/2024-beta
Update for 2024-beta
2 parents dcb5953 + e66995a commit 2129962

13 files changed

+128
-33
lines changed

.github/workflows/dist.yml

Lines changed: 102 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
check:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111
- uses: psf/black@stable
1212

1313
build:
@@ -23,16 +23,113 @@ jobs:
2323

2424
- name: Build packages
2525
run: python -m build
26+
27+
- name: Upload build artifacts
28+
uses: actions/upload-artifact@v3
29+
with:
30+
name: dist
31+
path: dist
2632

27-
- uses: actions/upload-artifact@v2
28-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
33+
test:
34+
needs: [build]
35+
runs-on: ${{ matrix.os }}
36+
strategy:
37+
matrix:
38+
os: [windows-2022, macos-12, ubuntu-22.04]
39+
python_version:
40+
- '3.8'
41+
- '3.9'
42+
- '3.10'
43+
- '3.11'
44+
- '3.12'
45+
architecture: [x64]
46+
47+
steps:
48+
- uses: actions/checkout@v4
49+
- uses: actions/setup-python@v4
50+
with:
51+
python-version: ${{ matrix.python_version }}
52+
architecture: ${{ matrix.architecture }}
53+
54+
- name: Download build artifacts
55+
uses: actions/download-artifact@v3
2956
with:
3057
name: dist
3158
path: dist
3259

60+
- name: Show installed packages
61+
shell: bash
62+
run: |
63+
python -m pip list
64+
65+
- name: Install native wheel
66+
shell: bash
67+
run: |
68+
cd dist
69+
WHEEL=$(ls *.whl)
70+
python -m pip --disable-pip-version-check install ${WHEEL}[all]
71+
72+
# Only need to test that the wheel installs
73+
74+
cross-test:
75+
runs-on: ubuntu-latest
76+
needs: [build]
77+
strategy:
78+
matrix:
79+
os:
80+
- container: wpilib/roborio-cross-ubuntu:2024-22.04-py312
81+
name: roborio
82+
83+
- container: wpilib/raspbian-cross-ubuntu:bullseye-22.04-py38
84+
name: raspbian
85+
- container: wpilib/raspbian-cross-ubuntu:bullseye-22.04-py39
86+
name: raspbian
87+
- container: wpilib/raspbian-cross-ubuntu:bullseye-22.04-py310
88+
name: raspbian
89+
- container: wpilib/raspbian-cross-ubuntu:bullseye-22.04-py311
90+
name: raspbian
91+
- container: wpilib/raspbian-cross-ubuntu:bullseye-22.04-py312
92+
name: raspbian
93+
94+
- container: wpilib/aarch64-cross-ubuntu:bullseye-22.04-py38
95+
name: raspbian
96+
- container: wpilib/aarch64-cross-ubuntu:bullseye-22.04-py39
97+
name: raspbian
98+
- container: wpilib/aarch64-cross-ubuntu:bullseye-22.04-py310
99+
name: raspbian
100+
- container: wpilib/aarch64-cross-ubuntu:bullseye-22.04-py311
101+
name: raspbian
102+
- container: wpilib/aarch64-cross-ubuntu:bullseye-22.04-py312
103+
name: raspbian
104+
105+
container:
106+
image: "${{ matrix.os.container }}"
107+
108+
steps:
109+
- uses: actions/checkout@v4
110+
if: (inputs.enable_raspbian && matrix.os.name == 'raspbian') || (inputs.enable_roborio && matrix.os.name == 'roborio')
111+
112+
- name: Show installed packages
113+
shell: bash
114+
run: |
115+
/build/venv/bin/cross-python -m pip list
116+
117+
- uses: actions/download-artifact@v3
118+
with:
119+
name: dist
120+
path: dist/
121+
122+
- name: Install
123+
working-directory: dist
124+
run: |
125+
WHEEL=$(ls *.whl)
126+
/build/venv/bin/cross-pip --disable-pip-version-check install ${WHEEL}[all]
127+
33128
publish:
34129
runs-on: ubuntu-latest
35-
needs: [check, build]
130+
needs: [check, test, cross-test]
131+
permissions:
132+
id-token: write
36133
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
37134

38135
steps:
@@ -42,6 +139,4 @@ jobs:
42139
path: dist/
43140

44141
- name: Publish to PyPI
45-
uses: pypa/[email protected]
46-
with:
47-
password: ${{ secrets.pypi_password }}
142+
uses: pypa/gh-action-pypi-publish@release/v1

apriltag-requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
robotpy-apriltag==2023.4.3.0
1+
robotpy-apriltag==2024.0.0b2.post1
22

33
# for other platforms there are a lot of ways to install numpy/OpenCV
44
# and we shouldn't dictate it
5-
numpy; platform_machine == "armv7l"
6-
robotpy-opencv; platform_machine == "armv7l"
5+
numpy==1.25.2; platform_machine == "roborio"
6+
robotpy-opencv; platform_machine == "roborio"

commands2-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
robotpy-commands-v2==2023.4.3.0
1+
#robotpy-commands-v2==2023.4.3.0

cscore-requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
robotpy-cscore==2023.4.3.0
1+
robotpy-cscore==2024.0.0b2.post1
22

33
# basic CameraServer works without NumPy/OpenCV installed, so only require
44
# them on a RoboRIO -- for other platforms there are a lot of ways to
55
# install OpenCV and we shouldn't dictate it
6-
numpy; platform_machine == "armv7l"
7-
robotpy-opencv; platform_machine == "armv7l"
6+
numpy==1.25.2; platform_machine == "roborio"
7+
robotpy-opencv; platform_machine == "roborio"

ctre-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
robotpy-ctre<2024.0.0,>=2023.0.0
1+
#robotpy-ctre<2024.0.0,>=2023.0.0

navx-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
robotpy-navx<2024.0.0,>=2023.0.1
1+
robotpy-navx<2025.0.0,>=2024.0.0b1

pathplannerlib-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
robotpy-pathplannerlib<2024.0.0,>=2023.0.0
1+
#robotpy-pathplannerlib<2024.0.0,>=2023.0.0

photonvision-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
robotpy-photonvision<2024.0.0,>=2023.1.2
1+
#robotpy-photonvision<2024.0.0,>=2023.1.2

playingwithfusion-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
robotpy-playingwithfusion<2024.0.0,>=2023.0.0
1+
#robotpy-playingwithfusion<2024.0.0,>=2023.0.0

requirements.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
# We now pin allwpilib based packages so that a specific install of robotpy-meta
66
# is directly associated with a specific set of wpilib packages
7-
robotpy-wpiutil==2023.4.3.0
8-
robotpy-wpimath==2023.4.3.0
9-
pyntcore==2023.4.3.0
10-
robotpy-hal==2023.4.3.0
11-
wpilib==2023.4.3.0
7+
robotpy-wpiutil==2024.0.0b2.post1
8+
robotpy-wpimath==2024.0.0b2.post1
9+
pyntcore==2024.0.0b2.post1
10+
robotpy-hal==2024.0.0b2.post1
11+
wpilib==2024.0.0b2.post1
1212

13-
robotpy-halsim-gui==2023.4.3.0; platform_machine != "armv7l" and platform_machine != "aarch64"
13+
robotpy-halsim-gui==2024.0.0b2.post1; platform_machine != "roborio" and platform_machine != "armv7l" and platform_machine != "aarch64"
1414

1515
# These are not pinned
16-
robotpy-wpilib-utilities<2024,>=2023.0.0
17-
robotpy-installer<2024.0.0,>=2023.0.2; platform_machine != "armv7l" and platform_machine != "aarch64"
18-
pyfrc<2024.0.0,>=2023.0.1; platform_machine != "armv7l" and platform_machine != "aarch64"
16+
robotpy-wpilib-utilities<2025,>=2024.0.0b1
17+
robotpy-installer<2025,>=2024.0.0b1; platform_machine != "roborio" and platform_machine != "armv7l" and platform_machine != "aarch64"
18+
pyfrc<2025,>=2024.0.0b1; platform_machine != "roborio" and platform_machine != "armv7l" and platform_machine != "aarch64"

0 commit comments

Comments
 (0)