Skip to content

Commit 1615975

Browse files
committed
twine must be 6.0.1 for uploading pip wheels
1 parent ce3d8f9 commit 1615975

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/pypi_wheel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
ls ${{ github.workspace }}/wheelhouse
2929
- name: Publish to PyPI
3030
run: |
31-
pip install twine
31+
pip install twine==6.0.1
3232
export TWINE_USERNAME=__token__
3333
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
3434
twine upload --verbose "${{ github.workspace }}/wheelhouse/*"
@@ -51,7 +51,7 @@ jobs:
5151
ls ${{ github.workspace }}/wheelhouse
5252
- name: Publish to PyPI
5353
run: |
54-
pip install twine
54+
pip install twine==6.0.1
5555
export TWINE_USERNAME=__token__
5656
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
5757
twine upload --verbose "${{ github.workspace }}/wheelhouse/*"
@@ -74,7 +74,7 @@ jobs:
7474
ls ${{ github.workspace }}/wheelhouse
7575
- name: Publish to PyPI
7676
run: |
77-
pip install twine
77+
pip install twine==6.0.1
7878
export TWINE_USERNAME=__token__
7979
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
8080
twine upload --verbose "${{ github.workspace }}/wheelhouse/*"

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def initialize_with_default_plat_name(self):
124124
version=VERSION,
125125
description=DESCRIPTION,
126126
license=LICENSE,
127+
license_files=('LICENSE',),
127128
author=AUTHOR,
128129
author_email=AUTHOR_EMAIL,
129130
package_dir={'gpu4pyscf': 'gpu4pyscf'}, # packages are under directory pyscf

0 commit comments

Comments
 (0)