Skip to content

Commit 6c1acbd

Browse files
authoredDec 18, 2024··
Merge pull request #89 from sunqm/pep-625
PEP 625
2 parents 8ed37ed + 0d89553 commit 6c1acbd

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed
 

‎.github/workflows/publish.yml

+16-19
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,11 @@ jobs:
3131
run: |
3232
ls ${{ github.workspace }}/linux-wheels
3333
- 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/*
4339
4440
release-pypi-aarch64:
4541
runs-on: ubuntu-latest
@@ -64,7 +60,6 @@ jobs:
6460
mkdir -p /root/wheelhouse $src/linux-wheels && \
6561
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 && \
6662
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 && \
6863
export PATH=/opt/python/cp39-cp39/bin:$PATH && \
6964
/opt/python/cp39-cp39/bin/pip wheel -v --no-deps --no-clean -w /root/wheelhouse $src && \
7065
export whl=`ls /root/wheelhouse/pyscf_forge-*-linux_*.whl` && \
@@ -73,15 +68,11 @@ jobs:
7368
run: |
7469
ls ${{ github.workspace }}/linux-wheels
7570
- 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/*
8576
8677
release-pypi-sdist:
8778
runs-on: ubuntu-latest
@@ -103,6 +94,12 @@ jobs:
10394
password: ${{ secrets.PYPI_API_TOKEN }}
10495
packages-dir: ${{ github.workspace }}/dist
10596
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/*
106103
107104
# release-pypi-macos-x86:
108105
# name: Build wheels for macos

‎setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
NAME = 'pyscf-forge'
16+
NAME = 'pyscf_forge'
1717
AUTHOR = 'Pyscf Developer'
1818
AUTHOR_EMAIL = None
1919
DESCRIPTION = 'Staging ground for PySCF core features'

0 commit comments

Comments
 (0)
Please sign in to comment.