Skip to content

Commit

Permalink
update wheel name (#7882)
Browse files Browse the repository at this point in the history
  • Loading branch information
zpcore committed Aug 19, 2024
1 parent b075cf8 commit e30927a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions infra/ansible/roles/build_srcs/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,13 @@
ansible.builtin.shell: |
pushd /tmp/staging-wheels
cp {{ item.dir }}/*.whl .
rename -v "s/^{{ item.prefix }}-(.*?)-cp/{{ item.prefix }}-\1+nightly-cp/" *.whl
# First rename to add '.dev'
rename -v "s/^{{ item.prefix }}-(.*?)(\+.*?)-cp/{{ item.prefix }}-\1.dev-cp/" *.whl
mv /tmp/staging-wheels/* /dist/
popd
rename -v "s/^{{ item.prefix }}-(.*?)-cp/{{ item.prefix }}-\1+nightly+$(date -u +%Y%m%d)-cp/" *.whl
# Second rename to append the date in YYYYMMDD format
rename -v "s/^{{ item.prefix }}-(.*?)-cp/{{ item.prefix }}-\1.dev$(date -u +%Y%m%d)-cp/" *.whl
args:
executable: /bin/bash
chdir: "{{ item.dir }}"
Expand Down

0 comments on commit e30927a

Please sign in to comment.