File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -744,7 +744,7 @@ def call(){
744744 }
745745 agent {
746746 docker{
747- image ' python '
747+ image ' ghcr.io/astral-sh/uv:debian '
748748 label ' docker && linux'
749749 args ' --mount source=python-tmp-hathivalidate,target=/tmp'
750750 }
@@ -773,21 +773,17 @@ def call(){
773773 }
774774 steps{
775775 unstash ' PYTHON_PACKAGES'
776- withEnv([" TWINE_REPOSITORY_URL =${ SERVER_URL} " ]){
776+ withEnv([" UV_PUBLISH_URL =${ SERVER_URL} " ]){
777777 withCredentials([
778778 usernamePassword(
779779 credentialsId : ' jenkins-nexus' ,
780- passwordVariable : ' TWINE_PASSWORD ' ,
781- usernameVariable : ' TWINE_USERNAME '
780+ passwordVariable : ' UV_PUBLISH_PASSWORD ' ,
781+ usernameVariable : ' UV_PUBLISH_USERNAME '
782782 )
783783 ]){
784784 sh(
785785 label : ' Uploading to pypi' ,
786- script : ''' python3 -m venv venv
787- trap "rm -rf venv" EXIT
788- ./venv/bin/pip install --disable-pip-version-check uv
789- ./venv/bin/uv run --no-dev --only-group=publish twine upload --disable-progress-bar --non-interactive dist/*
790- '''
786+ script : ' uv run --no-dev --only-group=publish twine upload dist/*'
791787 )
792788 }
793789 }
You can’t perform that action at this time.
0 commit comments