Try with .pypirc setup

This commit is contained in:
Jakob Lass
2025-04-11 15:48:25 +02:00
parent 27edbbbd19
commit 3086ade2fb
2 changed files with 24 additions and 31 deletions

19
write_pypirc.py Normal file
View File

@ -0,0 +1,19 @@
import sys
def write_file(token):
with open('~/.pypirc','w') as f:
f.writelines(f"""
[distutils]
index-servers =
pypi
[pypi]
repository = https://upload.pypi.org/legacy/
username = __token__
password = {token}
""")
if __name__ == "__main__":
token = sys.argv[1]
write_file(token)