Skip to content

Commit 64e3b54

Browse files
authored
accesscontrol: Add version 7.5 (#2936)
1 parent bc5d0ce commit 64e3b54

2 files changed

Lines changed: 113 additions & 0 deletions

File tree

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# SPDX-FileCopyrightText: 2026 The RISE Project
2+
# SPDX-License-Identifier: MIT
3+
---
4+
# This workflow is based on: https://github.com/zopefoundation/AccessControl/blob/7.5/.github/workflows/tests.yml
5+
name: Build accesscontrol 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/accesscontrol.yaml not released yet'
12+
required: false
13+
default: ''
14+
pull_request:
15+
branches: [main]
16+
paths:
17+
- '.github/workflows/build-accesscontrol.yml'
18+
- 'docs/packages/accesscontrol.yaml'
19+
push:
20+
branches: [main]
21+
paths:
22+
- '.github/workflows/build-accesscontrol.yml'
23+
- 'docs/packages/accesscontrol.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+
MANYLINUX_RISCV64_IMAGE: quay.io/pypa/manylinux_2_39_riscv64
34+
35+
jobs:
36+
setup:
37+
uses: $/.github/workflows/_setup.yml
38+
with:
39+
package: accesscontrol
40+
version: ${{ inputs.version }}
41+
42+
build_wheels:
43+
needs: [setup]
44+
if: needs.setup.outputs.versions != '[]'
45+
name: Build accesscontrol ${{ matrix.version }} ${{ matrix.python }}-manylinux_riscv64
46+
runs-on: ubuntu-24.04-riscv
47+
timeout-minutes: 60
48+
strategy:
49+
fail-fast: false
50+
matrix:
51+
version: ${{ fromJSON(needs.setup.outputs.versions) }}
52+
# Upstream ships no free-threaded wheel and cAccessControl declares no
53+
# Py_mod_gil slot.
54+
python:
55+
- "cp312"
56+
- "cp313"
57+
- "cp314"
58+
59+
env:
60+
ACCESSCONTROL_VERSION: ${{ matrix.version }}
61+
62+
steps:
63+
- name: Checkout AccessControl ${{ env.ACCESSCONTROL_VERSION }}
64+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
65+
with:
66+
repository: zopefoundation/AccessControl
67+
ref: ${{ env.ACCESSCONTROL_VERSION }}
68+
persist-credentials: false
69+
70+
- name: Build wheels
71+
uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0
72+
with:
73+
output-dir: wheelhouse/
74+
only: ${{ matrix.python }}-manylinux_riscv64
75+
env:
76+
CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }}
77+
# The compiled test-time dependencies (zope.interface, ExtensionClass,
78+
# BTrees, persistent, ...) have no riscv64 wheel on public PyPI.
79+
CIBW_ENVIRONMENT: PIP_EXTRA_INDEX_URL=https://pypi.riseproject.dev/simple/
80+
CIBW_TEST_EXTRAS: test
81+
CIBW_TEST_ENVIRONMENT: ZOPE_INTERFACE_STRICT_IRO=1
82+
# Upstream's two test steps: with and without the C extension.
83+
CIBW_TEST_COMMAND: >-
84+
PURE_PYTHON=0 python -m zope.testrunner --test-path={package}/src &&
85+
PURE_PYTHON=1 python -m zope.testrunner --test-path={package}/src
86+
87+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
88+
with:
89+
name: accesscontrol-${{ env.ACCESSCONTROL_VERSION }}-${{ matrix.python }}-manylinux_riscv64
90+
path: wheelhouse/*.whl
91+
if-no-files-found: error
92+
93+
publish:
94+
name: Publish accesscontrol ${{ matrix.version }}
95+
needs: [setup, build_wheels]
96+
if: needs.setup.outputs.versions != '[]'
97+
strategy:
98+
fail-fast: false
99+
matrix:
100+
version: ${{ fromJSON(needs.setup.outputs.versions) }}
101+
permissions:
102+
contents: write
103+
pull-requests: write
104+
uses: $/.github/workflows/_publish-wheel.yml
105+
secrets:
106+
app-private-key: ${{ secrets.RISEPROJECT_APP_PRIVATE_KEY }}
107+
with:
108+
artifact-pattern: accesscontrol-${{ matrix.version }}-*-manylinux_riscv64

‎docs/packages/accesscontrol.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package-name: accesscontrol
2+
source-code: https://github.com/zopefoundation/AccessControl
3+
license: ZPL-2.1
4+
versions:
5+
- version: '7.5'

0 commit comments

Comments
 (0)