Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pypi release pipeline #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
bash -exc '/opt/python/cp39-cp39/bin/pip install --upgrade pip setuptools && \
yum install -y epel-release && \
yum-config-manager --enable epel && \
yum install -y openblas-devel gcc && \
yum install -y openblas-serial gcc && \
export src=${GITHUB_WORKSPACE:-/src/pyscf-forge} && \
export dst=${GITHUB_WORKSPACE:-/src/pyscf-forge}/linux-wheels && \
mkdir -p /root/wheelhouse $src/linux-wheels && \
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
bash -exc '/opt/python/cp39-cp39/bin/pip install --upgrade pip setuptools && \
yum install -y epel-release && \
yum-config-manager --enable epel && \
yum install -y openblas-devel gcc && \
yum install -y openblas-serial gcc && \
export src=${GITHUB_WORKSPACE:-/src/pyscf-forge} && \
export dst=${GITHUB_WORKSPACE:-/src/pyscf-forge}/linux-wheels && \
mkdir -p /root/wheelhouse $src/linux-wheels && \
Expand Down Expand Up @@ -86,20 +86,11 @@ jobs:
ls ${{ github.workspace }}/dist
- name: Publish to PyPI
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
#password: ${{ secrets.PYPI_TEST_API_TOKEN }}
#repository_url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: ${{ github.workspace }}/dist
verbose: true
- name: Publish to PyPI
run: |
pip3 install twine
export TWINE_USERNAME=__token__
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
twine upload --verbose linux-wheels/*
twine upload --verbose dist/*

# release-pypi-macos-x86:
# name: Build wheels for macos
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include MANIFEST.in
include README.md setup.py CHANGELOG LICENSE
include README.md setup.py CHANGELOG LICENSE NOTICE

global-exclude *.py[cod]
prune pyscf/lib/build
Expand Down