@@ -31,15 +31,11 @@ jobs:
31
31
run : |
32
32
ls ${{ github.workspace }}/linux-wheels
33
33
- name : Publish to PyPI
34
- # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
35
- uses : pypa/gh-action-pypi-publish@release/v1
36
- with :
37
- user : __token__
38
- # password: ${{ secrets.PYPI_TEST_API_TOKEN }}
39
- # repository_url: https://test.pypi.org/legacy/
40
- password : ${{ secrets.PYPI_API_TOKEN }}
41
- packages-dir : ${{ github.workspace }}/linux-wheels
42
- verbose : true
34
+ run : |
35
+ pip3 install twine
36
+ export TWINE_USERNAME=__token__
37
+ export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
38
+ twine upload --verbose linux-wheels/*
43
39
44
40
release-pypi-aarch64 :
45
41
runs-on : ubuntu-latest
64
60
mkdir -p /root/wheelhouse $src/linux-wheels && \
65
61
sed -i "/if basename(fn) not in needed_libs:/s/basename.*libs/1/" /opt/_internal/pipx/venvs/auditwheel/lib/python*/site-packages/auditwheel/wheel_abi.py && \
66
62
sed -i "/if src_path is None/a\ continue" /opt/_internal/pipx/venvs/auditwheel/lib/python*/site-packages/auditwheel/repair.py && \
67
- sed -i "s/numpy/h5py==3.10/" $src/pyproject.toml && \
68
63
export PATH=/opt/python/cp39-cp39/bin:$PATH && \
69
64
/opt/python/cp39-cp39/bin/pip wheel -v --no-deps --no-clean -w /root/wheelhouse $src && \
70
65
export whl=`ls /root/wheelhouse/pyscf_forge-*-linux_*.whl` && \
@@ -73,15 +68,11 @@ jobs:
73
68
run : |
74
69
ls ${{ github.workspace }}/linux-wheels
75
70
- name : Publish to PyPI
76
- # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
77
- uses : pypa/gh-action-pypi-publish@release/v1
78
- with :
79
- user : __token__
80
- # password: ${{ secrets.PYPI_TEST_API_TOKEN }}
81
- # repository_url: https://test.pypi.org/legacy/
82
- password : ${{ secrets.PYPI_API_TOKEN }}
83
- packages-dir : ${{ github.workspace }}/linux-wheels
84
- verbose : true
71
+ run : |
72
+ pip3 install twine
73
+ export TWINE_USERNAME=__token__
74
+ export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
75
+ twine upload --verbose linux-wheels/*
85
76
86
77
release-pypi-sdist :
87
78
runs-on : ubuntu-latest
@@ -103,6 +94,12 @@ jobs:
103
94
password : ${{ secrets.PYPI_API_TOKEN }}
104
95
packages-dir : ${{ github.workspace }}/dist
105
96
verbose : true
97
+ - name : Publish to PyPI
98
+ run : |
99
+ pip3 install twine
100
+ export TWINE_USERNAME=__token__
101
+ export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
102
+ twine upload --verbose linux-wheels/*
106
103
107
104
# release-pypi-macos-x86:
108
105
# name: Build wheels for macos
0 commit comments