Skip to content

Commit c6b7f4e

Browse files
committed
Fix pypi release pipeline
1 parent bc57364 commit c6b7f4e

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
bash -exc '/opt/python/cp39-cp39/bin/pip install --upgrade pip setuptools && \
1818
yum install -y epel-release && \
1919
yum-config-manager --enable epel && \
20-
yum install -y openblas-devel gcc && \
20+
yum install -y openblas-serial gcc && \
2121
export src=${GITHUB_WORKSPACE:-/src/pyscf-forge} && \
2222
export dst=${GITHUB_WORKSPACE:-/src/pyscf-forge}/linux-wheels && \
2323
mkdir -p /root/wheelhouse $src/linux-wheels && \
@@ -54,7 +54,7 @@ jobs:
5454
bash -exc '/opt/python/cp39-cp39/bin/pip install --upgrade pip setuptools && \
5555
yum install -y epel-release && \
5656
yum-config-manager --enable epel && \
57-
yum install -y openblas-devel gcc && \
57+
yum install -y openblas-serial gcc && \
5858
export src=${GITHUB_WORKSPACE:-/src/pyscf-forge} && \
5959
export dst=${GITHUB_WORKSPACE:-/src/pyscf-forge}/linux-wheels && \
6060
mkdir -p /root/wheelhouse $src/linux-wheels && \
@@ -86,20 +86,11 @@ jobs:
8686
ls ${{ github.workspace }}/dist
8787
- name: Publish to PyPI
8888
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
89-
uses: pypa/gh-action-pypi-publish@release/v1
90-
with:
91-
user: __token__
92-
#password: ${{ secrets.PYPI_TEST_API_TOKEN }}
93-
#repository_url: https://test.pypi.org/legacy/
94-
password: ${{ secrets.PYPI_API_TOKEN }}
95-
packages-dir: ${{ github.workspace }}/dist
96-
verbose: true
97-
- name: Publish to PyPI
9889
run: |
9990
pip3 install twine
10091
export TWINE_USERNAME=__token__
10192
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
102-
twine upload --verbose linux-wheels/*
93+
twine upload --verbose dist/*
10394
10495
# release-pypi-macos-x86:
10596
# name: Build wheels for macos

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
include MANIFEST.in
2-
include README.md setup.py CHANGELOG LICENSE
2+
include README.md setup.py CHANGELOG LICENSE NOTICE
33

44
global-exclude *.py[cod]
55
prune pyscf/lib/build

0 commit comments

Comments
 (0)