Skip to content

Commit ed572c3

Browse files
authored
strongtyping: Add version 3.14.5 (#2955)
1 parent 380adf5 commit ed572c3

2 files changed

Lines changed: 109 additions & 0 deletions

File tree

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# SPDX-FileCopyrightText: 2026 The RISE Project
2+
# SPDX-License-Identifier: MIT
3+
---
4+
# This workflow is based on: https://github.com/FelixTheC/strongtyping/blob/v3.14.5/.github/workflows/python-publish.yml
5+
name: Build strongtyping wheels (riscv64)
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
version:
11+
description: 'Version glob to (re)build; empty builds every version of docs/packages/strongtyping.yaml not released yet'
12+
required: false
13+
default: ''
14+
pull_request:
15+
branches: [main]
16+
paths:
17+
- '.github/workflows/build-strongtyping.yml'
18+
- 'docs/packages/strongtyping.yaml'
19+
push:
20+
branches: [main]
21+
paths:
22+
- '.github/workflows/build-strongtyping.yml'
23+
- 'docs/packages/strongtyping.yaml'
24+
25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
27+
cancel-in-progress: true
28+
29+
permissions:
30+
contents: read # to fetch code (actions/checkout)
31+
32+
env:
33+
# The release workflow tags first and commits the version bump afterwards, so
34+
# the v3.14.5 tag still reads 3.14.4; this is "chore: bump version to v3.14.5",
35+
# whose tree matches the 3.14.5 PyPI sdist. Update alongside STRONGTYPING_VERSION.
36+
STRONGTYPING_REF: 0d92e98db40276615786220bb7f9d5534b5be2e4
37+
MANYLINUX_RISCV64_IMAGE: quay.io/pypa/manylinux_2_39_riscv64
38+
39+
jobs:
40+
setup:
41+
uses: $/.github/workflows/_setup.yml
42+
with:
43+
package: strongtyping
44+
version: ${{ inputs.version }}
45+
46+
build_wheels:
47+
needs: [setup]
48+
if: needs.setup.outputs.versions != '[]'
49+
name: Build strongtyping ${{ matrix.version }} ${{ matrix.python }}-manylinux_riscv64
50+
runs-on: ubuntu-24.04-riscv
51+
strategy:
52+
fail-fast: false
53+
matrix:
54+
version: ${{ fromJSON(needs.setup.outputs.versions) }}
55+
python: ["cp314", "cp314t"]
56+
57+
env:
58+
STRONGTYPING_VERSION: ${{ matrix.version }}
59+
60+
steps:
61+
- name: Checkout FelixTheC/strongtyping ${{ env.STRONGTYPING_VERSION }}
62+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
63+
with:
64+
repository: FelixTheC/strongtyping
65+
ref: ${{ env.STRONGTYPING_REF }}
66+
persist-credentials: false
67+
68+
- name: Build wheels
69+
uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0
70+
with:
71+
output-dir: wheelhouse/
72+
only: ${{ matrix.python }}-manylinux_riscv64
73+
env:
74+
CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }}
75+
CIBW_ENVIRONMENT: PIP_EXTRA_INDEX_URL=https://pypi.riseproject.dev/simple/
76+
CIBW_TEST_REQUIRES: pytest pytest-asyncio
77+
CIBW_TEST_SOURCES: tests
78+
# Upstream skips wheel tests and runs pytest from the source tree; test_skills.py only inspects that tree.
79+
CIBW_TEST_COMMAND: >-
80+
python -c "import strongtyping.strong_typing_utils as m; assert m.__file__.endswith('.so'), m.__file__"
81+
&& python -m pytest tests --ignore=tests/test_skills.py
82+
83+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
84+
with:
85+
name: strongtyping-${{ env.STRONGTYPING_VERSION }}-${{ matrix.python }}-manylinux_riscv64
86+
path: wheelhouse/*.whl
87+
if-no-files-found: error
88+
89+
publish:
90+
name: Publish strongtyping ${{ matrix.version }}
91+
needs: [setup, build_wheels]
92+
if: needs.setup.outputs.versions != '[]'
93+
strategy:
94+
fail-fast: false
95+
matrix:
96+
version: ${{ fromJSON(needs.setup.outputs.versions) }}
97+
permissions:
98+
contents: write
99+
pull-requests: write
100+
uses: $/.github/workflows/_publish-wheel.yml
101+
secrets:
102+
app-private-key: ${{ secrets.RISEPROJECT_APP_PRIVATE_KEY }}
103+
with:
104+
artifact-pattern: strongtyping-${{ matrix.version }}-*-manylinux_riscv64

‎docs/packages/strongtyping.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package-name: strongtyping
2+
source-code: https://github.com/FelixTheC/strongtyping
3+
license: CC-BY-ND-4.0
4+
versions:
5+
- version: 3.14.5

0 commit comments

Comments
 (0)