Merge pull request #63807 from twangboy/fix_pypi_upload

Fix upload url for production
This commit is contained in:
Gareth J. Greenaway 2023-03-02 08:23:49 -08:00 committed by GitHub
commit 3b347fc27d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -409,7 +409,7 @@ def pypi_upload(ctx: Context, files: list[pathlib.Path], test: bool = False):
if test is True:
repository_url = "https://test.pypi.org/legacy/"
else:
repository_url = "https://pypi.org/legacy/"
repository_url = "https://upload.pypi.org/legacy/"
if "TWINE_USERNAME" not in os.environ:
os.environ["TWINE_USERNAME"] = "__token__"
if "TWINE_PASSWORD" not in os.environ: