Skip to content

Commit a1d757f

Browse files
committed
Merge branch 'main' of https://github.com/pypa/manylinux into dev3
2 parents e11e421 + 9fc1a89 commit a1d757f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1054
-742
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
groups:
9+
actions:
10+
patterns:
11+
- "*"

.github/workflows/build.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ on:
1414
paths:
1515
- ".github/workflows/build.yml"
1616
- "docker/**"
17+
- "tests/**"
1718
- "*.sh"
1819
pull_request:
1920
paths:
2021
- ".github/workflows/build.yml"
2122
- "docker/**"
22-
- "build.sh"
23+
- "tests/**"
24+
- "*.sh"
2325

2426
concurrency:
2527
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
@@ -29,10 +31,12 @@ jobs:
2931
build_manylinux:
3032
name: ${{ matrix.policy }}_${{ matrix.platform }}
3133
runs-on: ubuntu-22.04
34+
permissions:
35+
actions: write # this permission is needed to delete cache
3236
strategy:
3337
fail-fast: false
3438
matrix:
35-
policy: ["manylinux2014", "musllinux_1_1", "musllinux_1_2"]
39+
policy: ["manylinux2014", "musllinux_1_2"]
3640
platform: ["i686", "x86_64"]
3741
include:
3842
- policy: "manylinux_2_28"
@@ -46,6 +50,8 @@ jobs:
4650
steps:
4751
- name: Checkout
4852
uses: actions/checkout@v4
53+
with:
54+
fetch-depth: 50
4955

5056
- name: Set up emulation
5157
if: matrix.platform != 'i686' && matrix.platform != 'x86_64'
@@ -56,17 +62,31 @@ jobs:
5662
- name: Set up Docker Buildx
5763
uses: docker/setup-buildx-action@v3
5864

59-
- name: Setup cache
65+
- name: Restore cache
6066
if: github.event_name != 'workflow_dispatch' || fromJSON(github.event.inputs.useCache)
61-
uses: actions/cache@v3
67+
uses: actions/cache/restore@v4
6268
with:
6369
path: .buildx-cache-${{ matrix.policy }}_${{ matrix.platform }}/*
64-
key: buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}-${{ hashFiles('docker/**') }}
65-
restore-keys: buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}-
70+
key: buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}
6671

6772
- name: Build
6873
run: ./build.sh
6974

75+
- name: Delete cache
76+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
77+
run: |
78+
KEY="buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}"
79+
gh cache delete ${KEY} || true
80+
env:
81+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
83+
- name: Save cache
84+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
85+
uses: actions/cache/save@v4
86+
with:
87+
path: .buildx-cache-${{ matrix.policy }}_${{ matrix.platform }}/*
88+
key: buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}
89+
7090
- name: Deploy
7191
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'pypa/manylinux'
7292
run: ./deploy.sh

.github/workflows/update-dependencies.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,45 @@ on:
66
- '.github/workflows/update-dependencies.yml'
77
workflow_dispatch:
88
schedule:
9-
- cron: '0 18 * * 0' # "At 18:00 on Sunday."
9+
- cron: '0 18 * * 5' # "At 18:00 on Friday."
10+
11+
env:
12+
FORCE_COLOR: '1'
1013

1114
jobs:
1215
update-dependencies:
1316
name: Update dependencies
14-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-latest
1518
steps:
1619
- uses: actions/checkout@v4
17-
- uses: wntrblm/nox@2022.11.21
20+
- uses: wntrblm/nox@2024.10.09
1821
with:
19-
python-versions: "3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12-dev"
20-
- name: "Allow nox to run with python 3.6"
21-
run: pipx runpip nox install 'virtualenv<20.22.0'
22+
python-versions: "3.12"
23+
- name: "Install uv"
24+
run: pipx install uv
2225
- name: "Setup bot user"
2326
run: |
2427
git config --global user.name "manylinux-bot[bot]"
2528
git config --global user.email "89297709+manylinux-bot[bot]@users.noreply.github.com"
2629
# we use this step to grab a Github App auth token, so that lastversion can query GitHub API
2730
# without rate-limit and PRs get run by GHA.
28-
- uses: tibdex/github-app-token@v2
31+
- uses: actions/create-github-app-token@v1
2932
id: generate-token
3033
if: github.ref == 'refs/heads/main' && github.repository == 'pypa/manylinux'
3134
with:
3235
app_id: ${{ secrets.MANYLINUX_BOT_APP_ID }}
3336
private_key: ${{ secrets.MANYLINUX_BOT_APP_PRIVATE_KEY }}
3437
- name: "Run update native dependencies"
35-
run: nox --force-color --error-on-missing-interpreters -s update_native_dependencies
38+
run: nox -s update_native_dependencies
3639
env:
3740
GITHUB_API_TOKEN: ${{ steps.generate-token.outputs.token || github.token }}
3841
- name: "Run update downloaded interpreters"
39-
run: nox --force-color --error-on-missing-interpreters -s update_interpreters_download
42+
run: nox -s update_interpreters_download
4043
- name: "Run update python dependencies"
41-
run: nox --force-color --error-on-missing-interpreters -s update_python_dependencies update_python_tools
44+
run: nox -s update_python_dependencies
4245
- name: Create Pull Request
4346
if: github.ref == 'refs/heads/main' && github.repository == 'pypa/manylinux'
44-
uses: peter-evans/create-pull-request@v5
47+
uses: peter-evans/create-pull-request@v7
4548
with:
4649
commit-message: Update python dependencies
4750
title: '[Bot] Update dependencies'
@@ -50,7 +53,6 @@ jobs:
5053
5154
PR generated by "Update dependencies" [workflow](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
5255
branch: update-dependencies-pr
53-
committer: "manylinux-bot[bot] <89297709+manylinux-bot[bot]@users.noreply.github.com>"
54-
author: "manylinux-bot[bot] <89297709+manylinux-bot[bot]@users.noreply.github.com>"
56+
sign-commits: true
5557
token: ${{ steps.generate-token.outputs.token }}
5658
delete-branch: true

.travis.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
language: c
22
os: linux
33
dist: focal
4+
addons:
5+
apt:
6+
sources:
7+
- sourceline: 'deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable'
8+
key_url: 'https://download.docker.com/linux/ubuntu/gpg'
9+
packages:
10+
- docker-ce docker-ce-cli containerd.io docker-buildx-plugin
411
services:
512
- docker
613

@@ -41,15 +48,11 @@ jobs:
4148
- arch: arm64-graviton2
4249
virt: vm
4350
group: edge
44-
env: POLICY="musllinux_1_1" PLATFORM="aarch64"
45-
- arch: s390x
46-
env: POLICY="musllinux_1_1" PLATFORM="s390x"
47-
- arch: ppc64le
48-
env: POLICY="musllinux_1_1" PLATFORM="ppc64le"
51+
env: POLICY="musllinux_1_2" PLATFORM="aarch64"
4952
- arch: arm64-graviton2
5053
virt: vm
5154
group: edge
52-
env: POLICY="musllinux_1_2" PLATFORM="aarch64"
55+
env: POLICY="musllinux_1_2" PLATFORM="armv7l"
5356
- arch: s390x
5457
env: POLICY="musllinux_1_2" PLATFORM="s390x"
5558
- arch: ppc64le
@@ -59,11 +62,10 @@ before_install:
5962
- if [ -d "${HOME}/buildx-cache/.buildx-cache-${POLICY}_${PLATFORM}" ]; then cp -rlf ${HOME}/buildx-cache/.buildx-cache-${POLICY}_${PLATFORM} ./; fi
6063

6164
install:
62-
- uptime
63-
- nproc
64-
- free
65-
- cat /proc/cpuinfo
66-
- ./travisci-install-buildx.sh
65+
- docker version
66+
- docker buildx version
67+
- docker buildx create --name builder-manylinux --driver docker-container --use
68+
- docker buildx inspect --bootstrap --builder builder-manylinux 2>&1 | tee /dev/null
6769

6870
script: |
6971
BUILD_STATUS=success
@@ -84,11 +86,8 @@ script: |
8486
8587
deploy:
8688
provider: script
89+
dpl_version: 1.10.16
8790
script: COMMIT_SHA=${TRAVIS_COMMIT} ./deploy.sh
8891
on:
8992
branch: main
9093
repo: pypa/manylinux
91-
92-
after_script:
93-
- if [ -f ${HOME}/dockerd-rootless.pid ]; then kill -15 $(cat ${HOME}/dockerd-rootless.pid); fi
94-
- if [ -f /tmp/buildkitd.pid ]; then sudo kill -15 $(cat /tmp/buildkitd.pid); fi

0 commit comments

Comments
 (0)