@@ -3,23 +3,41 @@ name: wheel
33on : [push, workflow_dispatch]
44
55jobs :
6+ sdist :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v2
10+ - name : Reorganize repository
11+ run : |
12+ git config user.email ""
13+ git config user.name "dummy"
14+ git subtree add --prefix python/subprojects/dftd4 . HEAD
15+ git mv {assets,python/dftd4}/parameters.toml
16+ git mv python/{mesonpep517,pyproject}.toml
17+ git commit -m "Python dist"
18+ - run : |
19+ pipx run build python/ --sdist --outdir .
20+ - uses : actions/upload-artifact@v3
21+ with :
22+ name : dftd4-python-sdist
23+ path : ./*.tar.gz
24+ retention-days : 5
25+
626 manylinux :
27+ needs :
28+ - sdist
729 runs-on : ubuntu-latest
830 container : condaforge/linux-anvil-cos7-x86_64
931 strategy :
1032 fail-fast : false
1133 matrix :
12- python : ['3.6', '3. 7', '3.8', '3.9', '3.10']
34+ python : ['3.7', '3.8', '3.9', '3.10']
1335
1436 defaults :
1537 run :
1638 shell : ${{ matrix.shell || 'bash -l {0}' }}
1739
1840 steps :
19- - uses : actions/checkout@v2
20- - uses : actions/checkout@v2
21- with :
22- path : python/subprojects/dftd4
2341 - name : Create environment
2442 run : >-
2543 mamba create -n wheel
@@ -28,20 +46,33 @@ jobs:
2846 fortran-compiler
2947 python=${{ matrix.python }}
3048 auditwheel
31- --file assets/ci/wheel-req.txt
49+ git
50+ python
51+ pip
52+ python-build
53+ pkgconfig
54+ patchelf
55+ cffi
56+ numpy
57+ meson
58+ unzip
59+ wheel
60+ - name : Download sdist
61+ uses : actions/download-artifact@v2
62+ with :
63+ name : dftd4-python-sdist
3264 - name : Build wheel
3365 run : |
3466 conda activate wheel
3567 set -ex
36- cp ../assets/parameters.toml dftd4
37- cp {mesonpep517,pyproject}.toml
38- python -m build . --wheel
39- auditwheel show dist/*.whl
40- auditwheel repair -w dist dist/*.whl --plat ${{ env.plat }}
41- rm dist/*-linux_x86_64.whl
68+ tar xvf dftd4-*.tar.gz
69+ python -m build dftd4-*/ --wheel
70+ auditwheel show dftd4-*/dist/*.whl
71+ auditwheel repair -w . dftd4-*/dist/*.whl --plat ${{ env.plat }}
4272 env :
4373 plat : manylinux${{ matrix.python == '3.6' && '2010' || '_2_12' }}_x86_64
44- working-directory : python
4574 - uses : actions/upload-artifact@v3
4675 with :
47- path : python/dist/*.whl
76+ name : dftd4-python-${{ matrix.python }}
77+ path : ./*.whl
78+ retention-days : 5
0 commit comments