@@ -126,18 +126,12 @@ jobs:
126126 with :
127127 version : ${{ env.TOOL_VERSION_PNPM }}
128128
129- - name : Set up Python
130- uses : actions /setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3 .0
129+ - name : Install uv
130+ uses : astral-sh /setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8 .0
131131 with :
132+ version : ' ${{ env.TOOL_VERSION_UV }}'
132133 python-version : ' ${{ env.TOOL_VERSION_PYTHON }}'
133-
134- - name : Install and configure Poetry
135- uses : snok/install-poetry@a783c322200f0519c7926aa6faa857c4e23e9263 # v1.4.2
136- with :
137- version : ' ${{ env.TOOL_VERSION_POETRY }}'
138- virtualenvs-create : true
139- virtualenvs-in-project : true
140- installer-parallel : true
134+ enable-cache : true
141135
142136 - name : Configure pnpm
143137 run : |
@@ -154,13 +148,12 @@ jobs:
154148
155149 - name : Release new versions
156150 run : |
157- poetry build
158- poetry config pypi-token.pypi ${PYPI_TOKEN}
159- poetry publish --skip-existing
151+ uv build
152+ uv publish --check-url https://pypi.org/simple/
160153 working-directory : ./chart_data_extractor
161154 env :
162155 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
163- PYPI_TOKEN : ${{ secrets.CHARTS_PYPI_TOKEN }}
156+ UV_PUBLISH_TOKEN : ${{ secrets.CHARTS_PYPI_TOKEN }}
164157
165158 - name : Output new version
166159 id : output_version
@@ -207,13 +200,16 @@ jobs:
207200
208201 sed -i "s/e2b_charts/e2b_charts==${VERSION}/g" requirements.txt
209202
210- - uses : actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
203+ - name : Install uv
204+ uses : astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
211205 with :
206+ version : ' ${{ env.TOOL_VERSION_UV }}'
212207 python-version : ' ${{ env.TOOL_VERSION_PYTHON }}'
208+ activate-environment : true
213209
214210 - name : Install development dependencies
215211 working-directory : ./template
216- run : pip install -r requirements-dev.txt
212+ run : uv pip install -r requirements-dev.txt
217213
218214 - name : Build and push to DockerHub
219215 working-directory : ./template
@@ -241,13 +237,16 @@ jobs:
241237 uppercase : ' true'
242238 prefix : ' tool_version_'
243239
244- - uses : actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
240+ - name : Install uv
241+ uses : astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
245242 with :
243+ version : ' ${{ env.TOOL_VERSION_UV }}'
246244 python-version : ' ${{ env.TOOL_VERSION_PYTHON }}'
245+ activate-environment : true
247246
248247 - name : Install development dependencies
249248 working-directory : ./template
250- run : pip install -r requirements-dev.txt
249+ run : uv pip install -r requirements-dev.txt
251250
252251 - name : Build E2B template
253252 id : build-template
@@ -287,18 +286,12 @@ jobs:
287286 uppercase : ' true'
288287 prefix : ' tool_version_'
289288
290- - name : Set up Python
291- uses : actions /setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3 .0
289+ - name : Install uv
290+ uses : astral-sh /setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8 .0
292291 with :
292+ version : ' ${{ env.TOOL_VERSION_UV }}'
293293 python-version : ' ${{ env.TOOL_VERSION_PYTHON }}'
294-
295- - name : Install and configure Poetry
296- uses : snok/install-poetry@a783c322200f0519c7926aa6faa857c4e23e9263 # v1.4.2
297- with :
298- version : ' ${{ env.TOOL_VERSION_POETRY }}'
299- virtualenvs-create : true
300- virtualenvs-in-project : true
301- installer-parallel : true
294+ enable-cache : true
302295
303296 - uses : pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
304297 with :
0 commit comments