Skip to content

Commit 5bb9b52

Browse files
add toml
1 parent 97db6bb commit 5bb9b52

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Jenkinsfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ pipeline {
5454
// C_INCLUDE_PATH=/usr/include/librdkafka LIBRARY_PATH=/usr/include/librdkafka /tmp/.local/bin/pdm build
5555
// """
5656
sh 'pip install build'
57+
sh '''
58+
pip install toml
59+
python -c "
60+
import toml
61+
data = toml.load('pyproject.toml')
62+
data['project']['name'] = 'superclient-beta'
63+
with open('pyproject.toml', 'w') as f:
64+
toml.dump(data, f)
65+
"
66+
'''
5767
sh 'python -m build'
5868
sh 'ls dist/'
5969
// withCredentials([usernamePassword(credentialsId: 'superstream-pypi', usernameVariable: 'USR', passwordVariable: 'PSW')]) {

0 commit comments

Comments
 (0)