Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
matplotlib/.github/workflows/cibuildwheel.yml at main · ifEricReturnTrue/matplotlib · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
ifEricReturnTrue
/
matplotlib
Public
forked from
matplotlib/matplotlib
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
main
Breadcrumbs
matplotlib
/
.github
/
workflows
/
cibuildwheel.yml
Copy path
View runs
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
193 lines (174 loc) · 6.07 KB
main
Breadcrumbs
matplotlib
/
.github
/
workflows
/
cibuildwheel.yml
Copy path
Top
File metadata and controls
Code
Blame
193 lines (174 loc) · 6.07 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
---
name
:
Build CI wheels
on
:
#
Save CI by only running this on release branches or tags.
push
:
branches
:
-
main
-
v[0-9]+.[0-9]+.x
tags
:
-
v*
#
Also allow running this action on PRs if requested by applying the
#
"Run cibuildwheel" label.
pull_request
:
types
:
-
opened
-
synchronize
-
reopened
-
labeled
permissions
:
contents
:
read
jobs
:
build_sdist
:
if
:
|
github.event_name == 'push' ||
github.event_name == 'pull_request' && (
(
github.event.action == 'labeled' &&
github.event.label.name == 'CI: Run cibuildwheel'
) ||
contains(github.event.pull_request.labels.*.name,
'CI: Run cibuildwheel')
)
name
:
Build sdist
runs-on
:
ubuntu-20.04
outputs
:
SDIST_NAME
:
${{ steps.sdist.outputs.SDIST_NAME }}
steps
:
-
uses
:
actions/checkout@v4
with
:
fetch-depth
:
0
-
uses
:
actions/setup-python@v4
name
:
Install Python
with
:
python-version
:
3.9
#
Something changed somewhere that prevents the downloaded-at-build-time
#
licenses from being included in built wheels, so pre-download them so
#
that they exist before the build and are included.
-
name
:
Pre-download bundled licenses
run
:
>
curl -Lo LICENSE/LICENSE_QHULL
https://github.com/qhull/qhull/raw/2020.2/COPYING.txt
-
name
:
Install dependencies
run
:
python -m pip install build twine
-
name
:
Build sdist
id
:
sdist
run
:
|
python -m build --sdist
python ci/export_sdist_name.py
-
name
:
Check README rendering for PyPI
run
:
twine check dist/*
-
name
:
Upload sdist result
uses
:
actions/upload-artifact@v3
with
:
name
:
sdist
path
:
dist/*.tar.gz
if-no-files-found
:
error
build_wheels
:
if
:
|
github.event_name == 'push' ||
github.event_name == 'pull_request' && (
(
github.event.action == 'labeled' &&
github.event.label.name == 'CI: Run cibuildwheel'
) ||
contains(github.event.pull_request.labels.*.name,
'CI: Run cibuildwheel')
)
needs
:
build_sdist
name
:
Build wheels on ${{ matrix.os }} for ${{ matrix.cibw_archs }}
runs-on
:
${{ matrix.os }}
env
:
CIBW_BEFORE_BUILD
:
>-
rm -rf {package}/build
CIBW_BEFORE_BUILD_WINDOWS
:
>-
pip install delvewheel &&
rm -rf {package}/build
#
Live on the edge when building on main or a PR against main since
#
these wheels are also used for nightlies and NumPy 2.0 transition
#
requires using the NumPy 2.0 nightlies for compatibility.
#
If using all `--pre` releases creates issues, the NumPy wheel can be
#
istalled more targeted.
CIBW_BUILD_FRONTEND
:
>-
${{ (((github.event_name == 'push' && github.ref == 'refs/heads/main') ||
(github.event_name == 'pull_request' && github.base_ref == 'main')) &&
'pip; args: --pre --extra-index-url "https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"') ||
'build' }}
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS
:
>-
delvewheel repair -w {dest_dir} {wheel}
CIBW_AFTER_BUILD
:
>-
twine check {wheel} &&
python {package}/ci/check_wheel_licenses.py {wheel}
CIBW_CONFIG_SETTINGS
:
setup-args="--vsenv"
CIBW_MANYLINUX_X86_64_IMAGE
:
manylinux2014
CIBW_SKIP
:
"
*-musllinux_aarch64
"
CIBW_TEST_COMMAND
:
>-
python {package}/ci/check_version_number.py
#
Apple Silicon machines are not available for testing, so silence the
#
warning from cibuildwheel. Remove the skip when they're available.
CIBW_TEST_SKIP
:
"
*-macosx_arm64
"
MACOSX_DEPLOYMENT_TARGET
:
"
10.12
"
MPL_DISABLE_FH4
:
"
yes
"
strategy
:
matrix
:
include
:
-
os
:
ubuntu-20.04
cibw_archs
:
"
x86_64
"
-
os
:
ubuntu-20.04
cibw_archs
:
"
aarch64
"
-
os
:
windows-latest
cibw_archs
:
"
auto64
"
-
os
:
macos-11
cibw_archs
:
"
x86_64 arm64
"
steps
:
-
name
:
Set up QEMU
if
:
matrix.cibw_archs == 'aarch64'
uses
:
docker/setup-qemu-action@v3
with
:
platforms
:
arm64
-
name
:
Download sdist
uses
:
actions/download-artifact@v3
with
:
name
:
sdist
path
:
dist/
-
name
:
Build wheels for CPython 3.12
uses
:
pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7
#
v2.16.2
with
:
package-dir
:
dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
env
:
CIBW_BUILD
:
"
cp312-*
"
CIBW_ARCHS
:
${{ matrix.cibw_archs }}
-
name
:
Build wheels for CPython 3.11
uses
:
pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7
#
v2.16.2
with
:
package-dir
:
dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
env
:
CIBW_BUILD
:
"
cp311-*
"
CIBW_ARCHS
:
${{ matrix.cibw_archs }}
-
name
:
Build wheels for CPython 3.10
uses
:
pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7
#
v2.16.2
with
:
package-dir
:
dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
env
:
CIBW_BUILD
:
"
cp310-*
"
CIBW_ARCHS
:
${{ matrix.cibw_archs }}
-
name
:
Build wheels for CPython 3.9
uses
:
pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7
#
v2.16.2
with
:
package-dir
:
dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
env
:
CIBW_BUILD
:
"
cp39-*
"
CIBW_ARCHS
:
${{ matrix.cibw_archs }}
-
name
:
Build wheels for PyPy
uses
:
pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7
#
v2.16.2
with
:
package-dir
:
dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
env
:
CIBW_BUILD
:
"
pp39-*
"
CIBW_ARCHS
:
${{ matrix.cibw_archs }}
if
:
matrix.cibw_archs != 'aarch64'
-
uses
:
actions/upload-artifact@v3
with
:
name
:
wheels
path
:
./wheelhouse/*.whl
if-no-files-found
:
error
You can’t perform that action at this time.