Skip to content

Commit 4ffbd9f

Browse files
committed
ci: support uv.lock
1 parent 87a7c19 commit 4ffbd9f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Jenkinsfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def linux_wheels(pythonVersions, testPackages, params, wheelStashes){
108108
. ./venv/bin/activate
109109
trap "rm -rf venv" EXIT
110110
pip install --disable-pip-version-check uv
111+
uv export --frozen --only-dev --no-hashes > requirements-dev.txt
111112
uvx --constraint requirements-dev.txt --with tox-uv tox -e py${pythonVersion.replace('.', '')} --installpkg ${findFiles(glob:'dist/*.whl')[0].path} -vv
112113
"""
113114
)
@@ -672,6 +673,7 @@ pipeline {
672673
try{
673674
sh( label: 'Running Tox',
674675
script: """python3 -m venv venv && venv/bin/pip install --disable-pip-version-check uv
676+
venv/bin/uv export --frozen --only-dev --no-hashes > requirements-dev.txt
675677
venv/bin/uvx --python ${version} --python-preference system --with tox-uv tox run -e ${toxEnv} -vv
676678
"""
677679
)
@@ -725,7 +727,7 @@ pipeline {
725727
"--mount type=volume,source=pipcache,target=${env.PIP_CACHE_DIR} " +
726728
"--mount type=volume,source=uv_cache_dir,target=${env.UV_CACHE_DIR}"
727729
){
728-
bat(script: 'python -m venv venv && venv\\Scripts\\pip install --disable-pip-version-check uv')
730+
bat(script: 'python -m venv venv && venv\\Scripts\\pip install --disable-pip-version-check uv && venv\\Scripts\\uv export --frozen --only-group dev --no-hashes --format requirements.txt --no-emit-project --no-annotate > requirements-dev.txt')
729731
envs = bat(
730732
label: 'Get tox environments',
731733
script: '@.\\venv\\Scripts\\uvx --quiet --constraint=requirements-dev.txt --with-requirements requirements-dev.txt --with tox-uv tox list -d --no-desc',
@@ -762,6 +764,7 @@ pipeline {
762764
try{
763765
bat(label: 'Running Tox',
764766
script: """uv python install cpython-${version}
767+
uv export --frozen --only-group dev --no-hashes --format requirements.txt --no-emit-project --no-annotate > requirements-dev.txt
765768
uvx -p ${version} --constraint=requirements-dev.txt --with tox-uv tox run -e ${toxEnv} -vv
766769
"""
767770
)

0 commit comments

Comments
 (0)