FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnative/.github/workflows/wheels.yml at main · pythonnative/pythonnative · GitHub
pythonnative
/
pythonnative
Public
Notifications
You must be signed in to change notification settings
Fork
23
Star
131
Code
Issues
11
Pull requests
4
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnative
/
.github
/
workflows
/
wheels.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
106 lines (101 loc) · 3.24 KB
Breadcrumbs
pythonnative
/
.github
/
workflows
/
wheels.yml
Copy path
File metadata and controls
106 lines (101 loc) · 3.24 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
name
:
Distributions
on
:
pull_request
:
branches
:
[main]
workflow_dispatch
:
inputs
:
source-ref
:
description
:
Commit or tag to build and test (no publishing)
type
:
string
required
:
true
default
:
main
workflow_call
:
inputs
:
source-ref
:
description
:
Immutable source commit selected by the release workflow
type
:
string
required
:
true
permissions
:
contents
:
read
jobs
:
sdist
:
name
:
Source distribution
runs-on
:
ubuntu-24.04
outputs
:
filename
:
${{ steps.build.outputs.filename }}
version
:
${{ steps.build.outputs.version }}
steps
:
-
uses
:
actions/checkout@v4
with
:
ref
:
${{ inputs.source-ref || github.sha }}
persist-credentials
:
false
-
uses
:
astral-sh/setup-uv@v10.0.1
with
:
python-version
:
'
3.13
'
-
name
:
Build source distribution
id
:
build
run
:
|
uv build --sdist --python 3.13
echo "filename=$(basename dist/*.tar.gz)" >> "$GITHUB_OUTPUT"
python -c 'import tomllib; print("version=" + tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])' >> "$GITHUB_OUTPUT"
-
uses
:
actions/upload-artifact@v4
with
:
name
:
distribution-sdist
path
:
dist/*.tar.gz
if-no-files-found
:
error
wheels
:
name
:
Wheels (${{ matrix.runner }})
needs
:
sdist
runs-on
:
${{ matrix.runner }}
strategy
:
fail-fast
:
false
matrix
:
runner
:
[ubuntu-24.04, ubuntu-24.04-arm, macos-15-intel, macos-14, windows-2022]
steps
:
#
Build policy comes from the workflow revision, source from the sdist.
#
Recovery uses fixed tooling with an existing tag's unmodified source.
-
uses
:
actions/checkout@v4
with
:
persist-credentials
:
false
-
uses
:
actions/download-artifact@v4
with
:
name
:
distribution-sdist
path
:
dist
-
name
:
Build, repair, install, and test wheels
uses
:
pypa/cibuildwheel@v4.2.1
with
:
package-dir
:
dist/${{ needs.sdist.outputs.filename }}
config-file
:
${{ github.workspace }}/scripts/cibuildwheel.toml
output-dir
:
wheelhouse
-
uses
:
actions/upload-artifact@v4
with
:
name
:
distribution-${{ matrix.runner }}
path
:
wheelhouse/*.whl
if-no-files-found
:
error
validate
:
name
:
Validate release distributions
needs
:
[sdist, wheels]
runs-on
:
ubuntu-24.04
steps
:
-
uses
:
actions/checkout@v4
with
:
persist-credentials
:
false
-
uses
:
actions/download-artifact@v4
with
:
pattern
:
distribution-*
merge-multiple
:
true
path
:
dist
-
uses
:
astral-sh/setup-uv@v10.0.1
with
:
python-version
:
'
3.13
'
-
name
:
Check metadata, platform tags, and complete wheel matrix
env
:
RELEASE_VERSION
:
${{ needs.sdist.outputs.version }}
run
:
|
uv run --no-project --with packaging python scripts/check-distributions.py dist --version "$RELEASE_VERSION"
uvx twine check --strict dist/*
-
uses
:
actions/upload-artifact@v4
with
:
name
:
release-distributions
path
:
dist/*
if-no-files-found
:
error
Back
|
FazBrowse Home
|
New Git URL