@@ -2,11 +2,11 @@ name: Build and upload to PyPI
2
2
3
3
on :
4
4
workflow_dispatch :
5
- release :
6
- types :
7
- - published
5
+ # release:
6
+ # types:
7
+ # - published
8
8
9
- jobs :
9
+ jobs :
10
10
build_wheels :
11
11
name : Build wheels on ${{ matrix.os }}
12
12
runs-on : ${{ matrix.os }}
18
18
steps :
19
19
- uses : actions/checkout@v4
20
20
21
+ - name : Install build dependencies (for prebuild)
22
+ run : |
23
+ pip install --upgrade pip
24
+ pip install guidata babel
25
+
21
26
- name : Build wheels
22
27
28
+ env :
29
+ CIBW_BEFORE_BUILD : pip install guidata babel && python -m plotpy.utils.translations compile --name plotpy --directory .
23
30
24
31
- uses : actions/upload-artifact@v4
25
32
with :
32
39
steps :
33
40
- uses : actions/checkout@v4
34
41
42
+ - name : Install build dependencies
43
+ run : |
44
+ pip install guidata babel
45
+
46
+ - name : Compile translations
47
+ run : |
48
+ python -m plotpy.utils.translations compile --name plotpy --directory .
49
+
35
50
- name : Build sdist
36
51
run : pipx run build --sdist
37
52
@@ -40,21 +55,21 @@ jobs:
40
55
name : cibw-sdist
41
56
path : dist/*.tar.gz
42
57
43
- upload_pypi :
44
- needs : [build_wheels, build_sdist]
45
- runs-on : ubuntu-latest
46
- environment : pypi
47
- permissions :
48
- id-token : write
49
- if : github.event_name == 'release' && github.event.action == 'published'
50
- steps :
51
- - uses : actions/download-artifact@v4
52
- with :
53
- # unpacks all CIBW artifacts into dist/
54
- pattern : cibw-*
55
- path : dist
56
- merge-multiple : true
58
+ # upload_pypi:
59
+ # needs: [build_wheels, build_sdist]
60
+ # runs-on: ubuntu-latest
61
+ # environment: pypi
62
+ # permissions:
63
+ # id-token: write
64
+ # if: github.event_name == 'release' && github.event.action == 'published'
65
+ # steps:
66
+ # - uses: actions/download-artifact@v4
67
+ # with:
68
+ # # unpacks all CIBW artifacts into dist/
69
+ # pattern: cibw-*
70
+ # path: dist
71
+ # merge-multiple: true
57
72
58
- - uses : pypa/gh-action-pypi-publish@release/v1
59
- with :
60
- password : ${{ secrets.PYPI_API_TOKEN }}
73
+ # - uses: pypa/gh-action-pypi-publish@release/v1
74
+ # with:
75
+ # password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments