@@ -141,7 +141,7 @@ def manage(c, command, running=True, backupdb=False):
141
141
if backupdb :
142
142
c .run (f'{ DOCKER_COMPOSE_COMMAND } { subcmd } database pg_dumpall -c -U docs_user > dump_`date +%d-%m-%Y"_"%H_%M_%S`__`git rev-parse HEAD`.sql' , pty = True )
143
143
144
- c .run (f'{ DOCKER_COMPOSE_COMMAND } { subcmd } web python3 manage.py { command } ' , pty = True )
144
+ c .run (f'{ DOCKER_COMPOSE_COMMAND } { subcmd } web uv run python3 manage.py { command } ' , pty = True )
145
145
146
146
@task (help = {
147
147
'container' : 'Container to attach' ,
@@ -196,7 +196,7 @@ def test(c, arguments='', running=True):
196
196
def buildassets (c ):
197
197
"""Build all assets for the application and push them to backend storage"""
198
198
c .run (f'docker compose -f { DOCKER_COMPOSE_ASSETS } run --rm assets bash -c "npm ci && node_modules/bower/bin/bower --allow-root update && npm run build"' , pty = True )
199
- c .run (f'{ DOCKER_COMPOSE_COMMAND } run --rm web python3 manage.py collectstatic --noinput' , pty = True )
199
+ c .run (f'{ DOCKER_COMPOSE_COMMAND } run --rm web uv run python3 manage.py collectstatic --noinput' , pty = True )
200
200
201
201
202
202
@task (help = {
@@ -221,13 +221,13 @@ def translations(c, action):
221
221
222
222
if action == 'pull' :
223
223
c .run (f'{ DOCKER_COMPOSE_COMMAND } run --rm web ./tx --token { transifex_token } pull --force' , pty = True )
224
- c .run (f'{ DOCKER_COMPOSE_COMMAND } run --rm web /bin/bash -c "cd readthedocs/ && python3 ../manage.py makemessages --all"' , pty = True )
225
- c .run (f'{ DOCKER_COMPOSE_COMMAND } run --rm web /bin/bash -c "cd readthedocs/ && python3 ../manage.py compilemessages"' , pty = True )
224
+ c .run (f'{ DOCKER_COMPOSE_COMMAND } run --rm web /bin/bash -c "cd readthedocs/ && uv run python3 ../manage.py makemessages --all"' , pty = True )
225
+ c .run (f'{ DOCKER_COMPOSE_COMMAND } run --rm web /bin/bash -c "cd readthedocs/ && uv run python3 ../manage.py compilemessages"' , pty = True )
226
226
227
227
elif action == 'push' :
228
- c .run (f'{ DOCKER_COMPOSE_COMMAND } run --rm web /bin/bash -c "cd readthedocs/ && python3 ../manage.py makemessages --locale en"' , pty = True )
228
+ c .run (f'{ DOCKER_COMPOSE_COMMAND } run --rm web /bin/bash -c "cd readthedocs/ && uv run python3 ../manage.py makemessages --locale en"' , pty = True )
229
229
c .run (f'{ DOCKER_COMPOSE_COMMAND } run --rm web ./tx --token { transifex_token } push --source' , pty = True )
230
- c .run (f'{ DOCKER_COMPOSE_COMMAND } run --rm web /bin/bash -c "cd readthedocs/ && python3 ../manage.py compilemessages --locale en"' , pty = True )
230
+ c .run (f'{ DOCKER_COMPOSE_COMMAND } run --rm web /bin/bash -c "cd readthedocs/ && uv run python3 ../manage.py compilemessages --locale en"' , pty = True )
231
231
232
232
233
233
@task (help = {
0 commit comments