Skip to content

Commit

Permalink
Trying to get wheel renaming working again
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwright committed Jul 15, 2024
1 parent 214cf49 commit c755d6d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-vtk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,9 @@ jobs:
sed -i 's/Version:.9.2.6.dev0$/Version: 9.2.6/' wheel_build/*.dist-info/METADATA # Remove the .dev0 from the version in the METADATA file
mv wheel_build/*.dist-info wheel_build/cadquery_vtk-9.2.6.dist-info # Rename the dist-info file to the new name
wheel pack wheel_build/; # Create a new wheel file with the new name by prepending "cadquery_" to the name
rm ../vtk/build/dist/*.whl # Remove the old wheel file
mv cadquery_${wheel_file} ../vtk/build/dist/ # Move the new wheel file to the dist directory
cd ../
# mv vtk/build/dist/vtk-9.2.6.dev0-cp${{ env.PYTHON_VERSION_NO_DOTS }}-cp${{ env.PYTHON_VERSION_NO_DOTS }}-${{ env.WHEEL_OS_VERSION }}.whl vtk/build/dist/cadquery-vtk-9.2.6-cp${{ env.PYTHON_VERSION_NO_DOTS }}-cp${{ env.PYTHON_VERSION_NO_DOTS }}-${{ env.WHEEL_OS_VERSION }}.whl
rm ./vtk/build/dist/*.whl # Remove the old wheel file
mv pack ./wheel_build/cadquery_${wheel_file} ./vtk/build/dist/ # Move the new wheel file to the dist directory
mv vtk/build/dist/vtk-9.2.6.dev0-cp${{ env.PYTHON_VERSION_NO_DOTS }}-cp${{ env.PYTHON_VERSION_NO_DOTS }}-${{ env.WHEEL_OS_VERSION }}.whl vtk/build/dist/cadquery-vtk-9.2.6-cp${{ env.PYTHON_VERSION_NO_DOTS }}-cp${{ env.PYTHON_VERSION_NO_DOTS }}-${{ env.WHEEL_OS_VERSION }}.whl
- name: Test wheel
shell: bash -l {0}
Expand Down

0 comments on commit c755d6d

Please sign in to comment.