Skip to content

Commit af2076b

Browse files
committed
Switch to 1Password for publishing credentials
Also use the new PyPI API token system for uploading as username + password no longer works after we enabled 2FA.
1 parent 2cf8afa commit af2076b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ is-git-clean:
3737

3838
.PHONY: publish
3939
publish:
40-
username=$$(gopass show dataplatform/websites/pypi.org/origo-dataplatform username) &&\
41-
password=$$(gopass show --password dataplatform/websites/pypi.org/origo-dataplatform) &&\
40+
username=$$(op read op://Dataspeilet/pypi-upload-token/username) &&\
41+
password=$$(op read op://Dataspeilet/pypi-upload-token/credential) &&\
4242
python -m twine upload -u $$username -p $$password dist/*

0 commit comments

Comments
 (0)