Skip to content

Commit

Permalink
build and upload only wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentRouvreau committed Apr 11, 2023
1 parent bbaf724 commit ed92b1f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/pip-packaging-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
cd build_36
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$PYTHON36/bin/python ..
cd src/python
$PYTHON36/bin/python -m build -n
$PYTHON36/bin/python -m build -n -w
auditwheel repair dist/*.whl
- name: Install and test wheel for Python 3.6
run: |
Expand All @@ -33,7 +33,7 @@ jobs:
cd build_37
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$PYTHON37/bin/python ..
cd src/python
$PYTHON37/bin/python -m build -n
$PYTHON37/bin/python -m build -n -w
auditwheel repair dist/*.whl
- name: Install and test wheel for Python 3.7
run: |
Expand All @@ -46,7 +46,7 @@ jobs:
cd build_38
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$PYTHON38/bin/python ..
cd src/python
$PYTHON38/bin/python -m build -n
$PYTHON38/bin/python -m build -n -w
auditwheel repair dist/*.whl
- name: Install and test wheel for Python 3.8
run: |
Expand All @@ -59,7 +59,7 @@ jobs:
cd build_39
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$PYTHON39/bin/python ..
cd src/python
$PYTHON39/bin/python -m build -n
$PYTHON39/bin/python -m build -n -w
auditwheel repair dist/*.whl
- name: Install and test wheel for Python 3.9
run: |
Expand All @@ -72,7 +72,7 @@ jobs:
cd build_310
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$PYTHON310/bin/python ..
cd src/python
$PYTHON310/bin/python -m build -n
$PYTHON310/bin/python -m build -n -w
auditwheel repair dist/*.whl
- name: Install and test wheel for Python 3.10
run: |
Expand All @@ -85,7 +85,7 @@ jobs:
cd build_311
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$PYTHON311/bin/python ..
cd src/python
$PYTHON311/bin/python -m build -n
$PYTHON311/bin/python -m build -n -w
auditwheel repair dist/*.whl
- name: Install and test wheel for Python 3.11
run: |
Expand All @@ -97,9 +97,9 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
$PYTHON36/bin/python -m twine upload build_36/src/python/wheelhouse/*
$PYTHON36/bin/python -m twine upload build_37/src/python/wheelhouse/*
$PYTHON36/bin/python -m twine upload build_38/src/python/wheelhouse/*
$PYTHON36/bin/python -m twine upload build_39/src/python/wheelhouse/*
$PYTHON36/bin/python -m twine upload build_310/src/python/wheelhouse/*
$PYTHON36/bin/python -m twine upload build_311/src/python/wheelhouse/*
$PYTHON36/bin/python -m twine upload build_36/src/python/wheelhouse/*.whl
$PYTHON36/bin/python -m twine upload build_37/src/python/wheelhouse/*.whl
$PYTHON36/bin/python -m twine upload build_38/src/python/wheelhouse/*.whl
$PYTHON36/bin/python -m twine upload build_39/src/python/wheelhouse/*.whl
$PYTHON36/bin/python -m twine upload build_310/src/python/wheelhouse/*.whl
$PYTHON36/bin/python -m twine upload build_311/src/python/wheelhouse/*.whl
8 changes: 4 additions & 4 deletions .github/workflows/pip-packaging-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DPython_ADDITIONAL_VERSIONS=3 ..
cd src/python
python -m build -n
python -m build -n -w
- name: Install and test python wheel
run: |
python -m pip install --user pytest build/src/python/dist/*.whl
Expand All @@ -56,6 +56,6 @@ jobs:
run: |
mkdir wheelhouse
export PATH="$PATH:`python -m site --user-base`/bin"
delocate-listdeps build/src/python/dist/*
delocate-wheel --require-archs universal2 -w wheelhouse build/src/python/dist/*
python -m twine upload wheelhouse/*
delocate-listdeps build/src/python/dist/*.whl
delocate-wheel --require-archs universal2 -w wheelhouse build/src/python/dist/*.whl
python -m twine upload wheelhouse/*.whl
4 changes: 2 additions & 2 deletions .github/workflows/pip-packaging-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
cd ".\src\python\"
cp "C:\vcpkg\installed\x64-windows\bin\mpfr*.dll" ".\gudhi\"
cp "C:\vcpkg\installed\x64-windows\bin\gmp*.dll" ".\gudhi\"
python -m build -n
python -m build -n -w
ls ".\dist\"
cd ".\dist\"
Get-ChildItem *.whl | ForEach-Object{python -m pip install --user $_.Name}
Expand All @@ -50,4 +50,4 @@ jobs:
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: python -m twine upload build/src/python/dist/*
run: python -m twine upload build/src/python/dist/*.whl

0 comments on commit ed92b1f

Please sign in to comment.