How To Install Twine-upload On Debian, Ubuntu, Arch, Kali, Fedora And Raspbian?

How To Install Twine-upload On Debian, Ubuntu, Arch, Kali, Fedora And Raspbian?

twine-upload

utility for interacting with PyPI

Maintainer: Python Applications Packaging Team



Section: utils

Install twine-upload

  • Debian apt-get install twine Click to copy
  • Ubuntu apt-get install twine Click to copy
  • Arch Linux pacman -S twine Click to copy
  • Kali Linux apt-get install twine Click to copy
  • Fedora dnf install twine Click to copy
  • Raspbian apt-get install twine Click to copy

twine

utility for interacting with PyPI

Twine is a tool for uploading distributions (in the Python meaning) to PyPi. Why should twine be used over the traditional approach? The biggest reason to use twine is that python setup.py upload uploads files over plaintext. This means anytime you use it you expose your username and password to a MITM attack. Twine uses only verified TLS to upload to PyPI protecting your credentials from theft. Secondly it allows you to precreate your distribution files. python setup.py upload only allows you to upload something that youu2019ve created in the same command invocation. This means that you cannot test the exact file youu2019re going to upload to PyPI to ensure that it works before uploading it. Finally it allows you to pre-sign your files and pass the .asc files into the command line invocation (twine upload twine-1.0.1.tar.gz twine-1.0.1.tar.gz.asc). This enables you to be assured that youu2019re typing your gpg passphrase into gpg itself and not anything else since you will be the one directly executing gpg --detach-sign -a . Features: - Verified HTTPS Connections - Uploading doesnu2019t require executing setup.py - Uploading files that have already been created, allowing testing of distributions before release - Supports uploading any packaging format (including wheels).

Installation of latest twine-upload command is available for Debian, Ubuntu, Arch, Kali, Fedora and Raspbian. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.