@@ -36,28 +36,24 @@ jobs:
36
36
37
37
- name : compute ibis version
38
38
id : get_version
39
- run : echo "value=$(poetry version)" >> "$GITHUB_OUTPUT"
39
+ run : |
40
+ set -euo pipefail
40
41
41
- - name : run some poetry sanity checks
42
- run : poetry check
43
- if : contains(steps.get_version.outputs.value, '.dev')
42
+ VERSION="$(uvx dunamai from git --style pep440 --no-metadata --latest-tag --pattern default-unprefixed)"
43
+ echo "value=${VERSION}" >> "$GITHUB_OUTPUT"
44
44
45
45
- name : build wheel and source dist
46
- run : poetry build
47
- if : contains(steps.get_version.outputs.value, '.dev')
48
-
49
- - name : add test pypi index
46
+ run : uv build
50
47
if : contains(steps.get_version.outputs.value, '.dev')
51
- run : poetry config repositories.test-pypi https://test.pypi.org/legacy/
52
48
53
49
- name : publish pre-release wheel to test pypi index
54
50
if : contains(steps.get_version.outputs.value, '.dev')
55
- run : poetry publish -r test- pypi
51
+ run : uv publish --publish-url https:// test. pypi.org/legacy/
56
52
env :
57
- POETRY_PYPI_TOKEN_TEST_PYPI : ${{ secrets.TEST_PYPI_TOKEN }}
53
+ UV_PUBLISH_TOKEN : ${{ secrets.TEST_PYPI_TOKEN }}
58
54
59
55
- name : publish pre-release wheel to pypi
60
56
if : contains(steps.get_version.outputs.value, '.dev')
61
- run : poetry publish
57
+ run : uv publish
62
58
env :
63
- POETRY_PYPI_TOKEN_PYPI : ${{ secrets.PYPI_TOKEN }}
59
+ UV_PUBLISH_TOKEN : ${{ secrets.PYPI_TOKEN }}
0 commit comments