Commit 52c848a6 authored by Hermann Krumrey's avatar Hermann Krumrey
Browse files

Finally fix pypi uploading once and for all. (I hope)

parent e9958e7d
Loading
Loading
Loading
Loading
+5 −1
Changes for bin/pypi-upload: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -48,7 +48,11 @@ def main():

    username = os.environ["PYPI_USERNAME"]
    password = os.environ["PYPI_PASSWORD"]
    repo = "pypitest" if test else "pypi"

    if test:
        repo = "https://test.pypi.org/legacy/"
    else:
        repo = "https://upload.pypi.org/legacy/"

    process_call(["python", "setup.py", "bdist_wheel", "sdist"])
    process_call(["twine", "upload",