Skip to content

Commit

Permalink
fixed publishing packages to pypi.org
Browse files Browse the repository at this point in the history
  • Loading branch information
godfryd committed Mar 26, 2024
1 parent a515353 commit 744a0be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .kraken/publish.py
Expand Up @@ -41,7 +41,8 @@ def stage(ctx):
"timeout": 300,
"env": {
"kk_ver": kk_ver,
"PYPI_PASSWORD": "#{KK_SECRET_SIMPLE_pypi_password}"
"PYPI_CLIENT_TOKEN": "#{secrets.pypi_client_token}",
"PYPI_SERVER_TOKEN": "#{secrets.pypi_server_token}"
}
}, {
"tool": "shell",
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -445,7 +445,7 @@ end

task :publish_client => './venv/bin/python3' do
Dir.chdir('client') do
sh "../venv/bin/poetry publish -u godfryd -p #{ENV['PYPI_PASSWORD']} --override-version #{kk_ver}"
sh "../venv/bin/poetry publish -u __token__ -p #{ENV['PYPI_CLIENT_TOKEN']} --override-version #{kk_ver}"
end
end

Expand All @@ -467,7 +467,7 @@ end
task :publish_server => './venv/bin/python3' do
Dir.chdir('server') do
sh 'cp ../README.md .'
sh "../venv/bin/poetry publish -u godfryd -p #{ENV['PYPI_PASSWORD']} --override-version #{kk_ver}"
sh "../venv/bin/poetry publish -u __token__ -p #{ENV['PYPI_SERVER_TOKEN']} --override-version #{kk_ver}"
sh 'rm README.md'
end
end
Expand Down

0 comments on commit 744a0be

Please sign in to comment.