File tree Expand file tree Collapse file tree 6 files changed +58
-14
lines changed Expand file tree Collapse file tree 6 files changed +58
-14
lines changed Original file line number Diff line number Diff line change 6
6
directory : " /"
7
7
schedule :
8
8
interval : monthly
9
+ - package-ecosystem : pip
10
+ directory : " /tools"
11
+ schedule :
12
+ interval : weekly
Original file line number Diff line number Diff line change 56
56
python : pypy-3.9
57
57
zmq : bundled
58
58
59
- - os : ubuntu-20 .04
59
+ - os : ubuntu-22 .04
60
60
python : " 3.8"
61
61
zmq : bundled
62
62
tornado : none
@@ -79,13 +79,13 @@ jobs:
79
79
python : " 3.11"
80
80
zmq : head
81
81
82
- - os : ubuntu-22 .04
82
+ - os : ubuntu-24 .04
83
83
python : " 3.12"
84
84
85
- - os : ubuntu-22 .04
85
+ - os : ubuntu-24 .04
86
86
python : " 3.13"
87
87
88
- - os : ubuntu-22 .04
88
+ - os : ubuntu-24 .04
89
89
python : " 3.13"
90
90
free_threading : free_threading
91
91
Original file line number Diff line number Diff line change @@ -120,8 +120,6 @@ jobs:
120
120
architecture : x86
121
121
cibw :
122
122
build : " cp*win32"
123
- # free-threaded doesn't seem to work on Windows
124
- skip : " *t-win*"
125
123
126
124
- os : windows-2019
127
125
name : win-pypy
@@ -134,16 +132,13 @@ jobs:
134
132
architecture : x64
135
133
cibw :
136
134
build : " cp*win_amd64"
137
- # free-threaded doesn't seem to work on Windows
138
- skip : " *t-win*"
139
135
140
136
- os : windows-2022
141
137
name : win_arm64
142
138
architecture : x64
143
139
cibw :
144
140
arch : ARM64
145
- # free-threaded doesn't seem to work on Windows
146
- skip : " cp37* *t-win*"
141
+ skip : " cp37*"
147
142
148
143
steps :
149
144
- uses : actions/checkout@v4
@@ -223,12 +218,15 @@ jobs:
223
218
- sdist
224
219
- wheel
225
220
steps :
221
+ - uses : actions/checkout@v4
226
222
- uses : actions/download-artifact@v4
227
223
with :
228
224
path : dist
229
225
merge-multiple : true
230
226
- name : list wheels
231
- run : ls -l dist
227
+ run : |
228
+ ls -l dist
229
+ python3 tools/wheel_summary.py dist | tee "$GITHUB_STEP_SUMMARY"
232
230
233
231
upload-pypi :
234
232
permissions :
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ search = '__version__: str = "{current_version}"'
142
142
143
143
[tool .cibuildwheel ]
144
144
build-verbosity = " 1"
145
- free-threaded-support = true
145
+ enable = [ " cpython-freethreading " , " pypy " ]
146
146
test-requires = [" pytest>=6" , " importlib_metadata" ]
147
147
test-command = " pytest -vsx {package}/tools/test_wheel.py"
148
148
@@ -170,6 +170,8 @@ MACOSX_DEPLOYMENT_TARGET = "10.15"
170
170
171
171
[tool .cibuildwheel .windows ]
172
172
before-all = " python buildutils/bundle.py licenses"
173
+ # free-threaded doesn't seem to work on Windows
174
+ enable = [" pypy" ]
173
175
repair-wheel-command = """ \
174
176
delvewheel repair \
175
177
-v \
Original file line number Diff line number Diff line change 1
- cibuildwheel==2.20 .*
2
- delvewheel==1.7.2 ; sys_platform == 'win32'
1
+ cibuildwheel==2.23 .*
2
+ delvewheel==1.10.* ; sys_platform == 'win32'
Original file line number Diff line number Diff line change
1
+ """Print a markdown table of sdist/wheel outputs
2
+
3
+ for use in github job summary
4
+ """
5
+
6
+ from pathlib import Path
7
+
8
+
9
+ def make_summary (dist_dir : str | Path ) -> str :
10
+ """Render a list of files as a markdown table
11
+
12
+ For use summarizing wheel outputs
13
+ """
14
+
15
+ dist_dir = Path (dist_dir )
16
+ all_dists = sorted (dist_dir .glob ("*" ))
17
+ lines = [
18
+ f"### { len (all_dists )} files" ,
19
+ "" ,
20
+ "| filename | size |" ,
21
+ "|----------|------|" ,
22
+ ]
23
+ for path in all_dists :
24
+ size = path .stat ().st_size
25
+ if size < 1e6 :
26
+ size_s = f"{ size / 1e3 :.0f} kB"
27
+ else :
28
+ size_s = f"{ size / 1e6 :.1f} MB"
29
+ lines .append (f"| { path .name } | { size_s } |" )
30
+ return "\n " .join (lines )
31
+
32
+
33
+ if __name__ == "__main__" :
34
+ import sys
35
+
36
+ if len (sys .argv ) > 1 :
37
+ dist_dir = Path (sys .argv [1 ])
38
+ else :
39
+ dist_dir = Path ("dist" )
40
+ print (make_summary (dist_dir ))
You can’t perform that action at this time.
0 commit comments