Skip to content

Commit a0eceb1

Browse files
committed
ci: add tox-uv dependency group to pin tox-uv version
1 parent ee0380b commit a0eceb1

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/tox_matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ jobs:
4444
- name: Run tox
4545
env:
4646
TOXENV: ${{ matrix.tox-environment }}
47-
run: uv run --only-group=tox-uv tox run -e ${{matrix.tox-environment}}
47+
run: uv run --only-group=tox-uv tox run --runner uv-venv-lock-runner -e ${{matrix.tox-environment}}

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ commands = {envbindir}/pytest --basetemp={envtmpdir}/pytest {posargs}
1212

1313
[testenv:docs]
1414
changedir=docs
15-
deps=
16-
sphinx
15+
dependency_groups = docs
1716
commands=
1817
{envbindir}/sphinx-build -d {envtmpdir}/doctrees source {temp_dir}/docs/html -W -b html

vars/runJenkinsPipeline.groovy

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def call(){
221221
try{
222222
envs = sh(
223223
label: 'Get tox environments',
224-
script: 'uv run --only-group tox --with tox-uv --isolated --frozen --quiet tox list -d --no-desc',
224+
script: 'uv run --only-group=tox --isolated --frozen --quiet tox list -d --no-desc',
225225
returnStdout: true,
226226
).trim().split('\n')
227227
} catch (e){
@@ -254,7 +254,7 @@ def call(){
254254
try{
255255
sh( label: 'Running Tox',
256256
script: """uv python install cpython-${version}
257-
uv run --only-group tox --with tox-uv tox run --runner uv-venv-lock-runner -e ${toxEnv}
257+
uv run --only-group=tox-uv tox run --runner uv-venv-lock-runner -e ${toxEnv}
258258
"""
259259
)
260260
} catch(e) {
@@ -300,7 +300,7 @@ def call(){
300300
bat(script: 'python -m venv venv && venv\\Scripts\\pip install --disable-pip-version-check uv')
301301
envs = bat(
302302
label: 'Get tox environments',
303-
script: '@.\\venv\\Scripts\\uv run --only-group tox --with tox-uv --isolated --frozen --quiet tox list -d --no-desc',
303+
script: '@.\\venv\\Scripts\\uv run --only-group=tox --isolated --frozen --quiet tox list -d --no-desc',
304304
returnStdout: true,
305305
).trim().split('\r\n')
306306
}
@@ -325,7 +325,7 @@ def call(){
325325
retry(3){
326326
bat(label: 'Running Tox',
327327
script: """venv\\Scripts\\uv python install cpython-${version}
328-
venv\\Scripts\\uv run --only-group tox --with tox-uv tox run --runner uv-venv-lock-runner -e ${toxEnv}
328+
venv\\Scripts\\uv run --only-group=tox-uv tox run --runner uv-venv-lock-runner -e ${toxEnv}
329329
"""
330330
)
331331
}
@@ -476,7 +476,7 @@ def call(){
476476
sh(
477477
label: 'Testing with tox',
478478
script: """uv python install cpython-${entry.PYTHON_VERSION}
479-
uv run --only-group tox --with tox-uv --frozen tox --installpkg ${findFiles(glob: entry.PACKAGE_TYPE == 'wheel' ? 'dist/*.whl' : 'dist/*.tar.gz')[0].path} -e py${entry.PYTHON_VERSION.replace('.', '')}
479+
uv run --only-group=tox-uv --frozen tox --installpkg ${findFiles(glob: entry.PACKAGE_TYPE == 'wheel' ? 'dist/*.whl' : 'dist/*.tar.gz')[0].path} -e py${entry.PYTHON_VERSION.replace('.', '')}
480480
"""
481481
)
482482
}
@@ -492,7 +492,7 @@ def call(){
492492
script: """python -m venv venv
493493
.\\venv\\Scripts\\pip install --disable-pip-version-check uv
494494
.\\venv\\Scripts\\uv python install cpython-${entry.PYTHON_VERSION}
495-
.\\venv\\Scripts\\uv run --only-group tox --with tox-uv --isolated --frozen tox --installpkg ${findFiles(glob: entry.PACKAGE_TYPE == 'wheel' ? 'dist/*.whl' : 'dist/*.tar.gz')[0].path} -e py${entry.PYTHON_VERSION.replace('.', '')}
495+
.\\venv\\Scripts\\uv run --only-group=tox-uv --isolated --frozen tox --installpkg ${findFiles(glob: entry.PACKAGE_TYPE == 'wheel' ? 'dist/*.whl' : 'dist/*.tar.gz')[0].path} -e py${entry.PYTHON_VERSION.replace('.', '')}
496496
"""
497497
)
498498
}
@@ -504,7 +504,7 @@ def call(){
504504
label: 'Testing with tox',
505505
script: """python3 -m venv venv
506506
./venv/bin/pip install --disable-pip-version-check uv
507-
./venv/bin/uv run --only-group tox --with tox-uv --isolated tox --frozen --installpkg ${findFiles(glob: entry.PACKAGE_TYPE == 'wheel' ? 'dist/*.whl' : 'dist/*.tar.gz')[0].path} -e py${entry.PYTHON_VERSION.replace('.', '')}
507+
./venv/bin/uv run --only-group=tox-uv --isolated tox --frozen --installpkg ${findFiles(glob: entry.PACKAGE_TYPE == 'wheel' ? 'dist/*.whl' : 'dist/*.tar.gz')[0].path} -e py${entry.PYTHON_VERSION.replace('.', '')}
508508
"""
509509
)
510510
} else {
@@ -513,7 +513,7 @@ def call(){
513513
script: """python -m venv venv
514514
.\\venv\\Scripts\\pip install --disable-pip-version-check uv
515515
.\\venv\\Scripts\\uv python install cpython-${entry.PYTHON_VERSION}
516-
.\\venv\\Scripts\\uv run --only-group tox --with tox-uv --isolated --frozen tox --installpkg ${findFiles(glob: entry.PACKAGE_TYPE == 'wheel' ? 'dist/*.whl' : 'dist/*.tar.gz')[0].path} -e py${entry.PYTHON_VERSION.replace('.', '')}
516+
.\\venv\\Scripts\\uv run --only-group=tox-uv --isolated --frozen tox --installpkg ${findFiles(glob: entry.PACKAGE_TYPE == 'wheel' ? 'dist/*.whl' : 'dist/*.tar.gz')[0].path} -e py${entry.PYTHON_VERSION.replace('.', '')}
517517
"""
518518
)
519519
}

0 commit comments

Comments
 (0)