Skip to content

Commit 668f9b7

Browse files
committed
bug fix
1 parent 76e1ba5 commit 668f9b7

File tree

2 files changed

+75
-1
lines changed

2 files changed

+75
-1
lines changed

.github/workflows/build_wppm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions: {}
1717

1818
env:
1919
python-version: '3.13'
20-
WINPYrequirements: './winpython/portable/cycle_2025_04/requir.wppmbuild.toml'
20+
WINPYrequirements: './winpython/portable/cycle_2025_04/requir.wppmbuild.txt'
2121

2222
jobs:
2323
build_wheels:
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: build_wppm
2+
# 2025-08-16: from TornadoWeb simple example, and full bash
3+
# object:
4+
# - learn the matrix method
5+
# - be compatible with cibuilds later
6+
# - copy the methods the most widly used
7+
#
8+
# using a predefined hashed wheel environnment: pylock.wppmbuild.toml
9+
# pip freeze>test.txt
10+
# python -m pip lock --no-deps --find-links=C:\WinP\packages.srcreq -r test.txt -o pylock.wppmbuild.toml
11+
# python -X utf8 -c "from wppm import wheelhouse as wh; wh.pylock_to_req('pylock.wppmbuild.toml', r'requir.wppmbuild.txt')"
12+
#
13+
on:
14+
workflow_dispatch:
15+
# Allow this workflow to be run manually (pushing to testpypi instead of pypi)
16+
permissions: {}
17+
18+
env:
19+
python-version: '3.13'
20+
WINPYrequirements: './winpython/portable/cycle_2025_04/requir.wppmbuild.txt'
21+
22+
jobs:
23+
build_wheels:
24+
name: Build wheels on ${{ matrix.os }}
25+
runs-on: ${{ matrix.os }}
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
os: [windows-latest]
30+
31+
steps:
32+
- uses: actions/checkout@v4
33+
with:
34+
persist-credentials: false
35+
36+
- uses: actions/setup-python@v5
37+
name: Install Python
38+
with:
39+
python-version: ${{ env.python-version }}
40+
41+
- name: Install dependencies to build
42+
shell: bash
43+
run: |
44+
python -m pip install --no-deps --no-index --require-hashes -r ${{ env.WINPYrequirements }}
45+
46+
- name: Build sdist
47+
shell: bash
48+
run: |
49+
python -m flit build && ls -l dist
50+
51+
52+
- name: prepare result
53+
shell: bash
54+
run: |
55+
mkdir wheelhouse
56+
cp dist/*.whl wheelhouse
57+
58+
- name: generate hashes wppm style
59+
shell: bash
60+
run: |
61+
DESTFILE = "./wheelhouse/hashes.md"
62+
python -c "import sys;from winpython import hash; hash.print_hashes(sys.argv[1:])" wheelhouse/*.whl > $DESTFILE
63+
64+
65+
- name: List wheelhouse contents (for debugging)
66+
shell: bash
67+
run: |
68+
ls -1 wheelhouse
69+
70+
- uses: actions/upload-artifact@v4
71+
with:
72+
name: artifacts-${{ matrix.os }}
73+
path: ./wheelhouse/*.*
74+
retention-days: 3 # keeps artifact for 3 days

0 commit comments

Comments
 (0)