Try with .pypirc setup
This commit is contained in:
19
write_pypirc.py
Normal file
19
write_pypirc.py
Normal 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)
|
Reference in New Issue
Block a user