Skip to content

Commit 893579a

Browse files
committed
Override -r from TWINE_REPOSITORY
Apparently the precedence for twine goes like this: 1. --repository-url 2. TWINE_REPOSITORY_URL 3. -r 4 TWINE_REPOSITORY But I was counting on TWINE_REPOSITORY to override the -r flag. This wasn't an issue for the Test PyPI job because that uses TWINE_REPOSITORY_URL rather than TWINE_REPOSITORY.
1 parent 7ce105b commit 893579a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ passenv =
9292
commands =
9393
twine check {toxinidir}/dist/*
9494
twine upload {toxinidir}/dist/* \
95-
{posargs:-r testpypi --non-interactive}
95+
{posargs:-r {env:TWINE_REPOSITORY:testpypi} --non-interactive}

0 commit comments

Comments
 (0)