FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
winpython/.github/workflows/build_wppm_prod_publish.yml at master · admariner/winpython · GitHub
admariner
/
winpython
Public
forked from
winpython/winpython
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
Expand file tree
Breadcrumbs
winpython
/
.github
/
workflows
/
build_wppm_prod_publish.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
93 lines (81 loc) · 2.73 KB
Breadcrumbs
winpython
/
.github
/
workflows
/
build_wppm_prod_publish.yml
Copy path
File metadata and controls
93 lines (81 loc) · 2.73 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
name
:
build_wppm_prod_publish
#
2025-08-16: from TornadoWeb simple example, and full bash
#
object:
#
- learn the matrix method
#
- be compatible with cibuilds later
#
- copy the methods the most widly used
#
#
using a predefined hashed wheel environnment: pylock.wppmbuild.toml
#
pip freeze>test.txt
#
python -m pip lock --no-deps --find-links=C:\WinP\packages.srcreq -r test.txt -o pylock.wppmbuild.toml
#
python -X utf8 -c "from wppm import wheelhouse as wh; wh.pylock_to_req('pylock.wppmbuild.toml', r'requir.wppmbuild.txt')"
#
on
:
workflow_dispatch
:
#
Allow this workflow to be run manually (pushing to testpypi instead of pypi)
permissions
:
{}
env
:
python-version
:
'
3.13
'
WINPYrequirements
:
'
./winpython/portable/cycle_2025_04/requir.wppmbuild.txt
'
jobs
:
build_wheels
:
name
:
Build wheels on ${{ matrix.os }}
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[windows-latest]
steps
:
-
uses
:
actions/checkout@v6
with
:
persist-credentials
:
false
-
uses
:
actions/setup-python@v6
name
:
Install Python
with
:
python-version
:
${{ env.python-version }}
-
name
:
Install dependencies to build with bash
shell
:
bash
run
:
|
python -m pip install --no-deps --require-hashes -r ${{ env.WINPYrequirements }}
-
name
:
Build sdist
shell
:
bash
run
:
|
python -m flit build && ls -l dist
-
name
:
prepare result
shell
:
bash
run
:
|
mkdir wheelhouse
cp dist/*.whl wheelhouse
-
name
:
generate hashes wppm style
shell
:
bash
run
:
|
DESTFILE="./wheelhouse/hashes.md"
python -c "import sys;from wppm import hash; hash.print_hashes(sys.argv[1:])" wheelhouse/*.whl > $DESTFILE
cat $DESTFILE
-
name
:
List wheelhouse contents (for debugging)
shell
:
bash
run
:
|
ls -1 wheelhouse
-
uses
:
actions/upload-artifact@v6
with
:
name
:
artifacts-${{ matrix.os }}
path
:
./dist/wppm*.whl
retention-days
:
88
#
keeps artifact for 8 days
upload_pypi_test
:
name
:
Upload to PyPI (prod)
needs
:
[build_wheels]
runs-on
:
ubuntu-24.04
environment
:
pypi
#
must match the environment declared in the PyPI trusted publisher
permissions
:
#
This permission is required for pypi's "trusted publisher" feature
id-token
:
write
steps
:
-
uses
:
actions/download-artifact@v6
with
:
pattern
:
artifacts-*
path
:
dist
merge-multiple
:
true
-
uses
:
pypa/gh-action-pypi-publish@release/v1
with
:
skip-existing
:
true
verbose
:
true
#
Enable verbose output
Back
|
FazBrowse Home
|
New Git URL