# Installer twine avec Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, winget

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de twine pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:twine
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install twine
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install twine
```

  Preuve: MacPorts ports tree: python/twine/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add twine
```

  Preuve: Alpine Linux edge package indexes: twine from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install twine
```

  Preuve: Debian stable package indexes: twine from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install twine
```

  Preuve: Fedora Rawhide package metadata: twine from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#twine
```

  Preuve: nixpkgs package indexes: twine from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S twine
```

  Preuve: Arch Linux sync databases: twine from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install extras/twine
```

  Preuve: Scoop official bucket manifest trees: bucket/twine.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id ChrisKlimas.Twine -e
```

  Preuve: Windows Package Manager source index: ChrisKlimas.Twine from https://cdn.winget.microsoft.com/cache/source.msix

## Faits du paquet

- **Clé du paquet:** brew:twine
- **Gestionnaire de paquets:** Homebrew
- **Version:** 7.0.0
- **Résumé source:** Utilities for interacting with PyPI
- **Page d'accueil:** <https://github.com/pypa/twine>
- **Dépôt:** <https://github.com/pypa/twine>
- **Dernière mise à jour:** 2026-07-28T23:23:10Z
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- twine (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 7.0.0
## Historique du projet et usages

Twine is the Python Packaging Authority's command-line utility for uploading Python distribution artifacts to PyPI and compatible repositories. It became the standard small tool between `python -m build` and a public package release.

### Historique du projet

Twine was created to separate package building from package uploading and to make PyPI uploads safer and more testable. Its documentation contrasts it with `python setup.py upload`, emphasizing verified HTTPS, uploading already-built artifacts, and support for wheels and source distributions.

The changelog records a long-running 1.x series through the 2010s, a 2.0 release in 2019 that required Python 3.6 or later, 3.x releases that improved non-interactive and keyring behavior, and modern 5.x/6.x work around metadata validation, PyPI token handling, trusted publishing, and removal of older distribution formats.

### Historique d'adoption

Twine's adoption tracks the modernization of Python packaging. As PyPI, Warehouse, wheels, API tokens, and build-system-independent packaging became normal, Twine became the familiar upload command in release checklists, CI jobs, and packaging tutorials.

Its package-manager presence is broad: the input facts show it packaged by Homebrew, Debian, Ubuntu, Fedora/dnf, Arch/pacman, MacPorts, Nix, Scoop, and other ecosystems. That breadth reflects its role as infrastructure for publishing other packages, not as an end-user application.

### Modes d'utilisation

The standard workflow is to build distributions, test against TestPyPI if needed, and run `twine upload dist/*`. Twine can read repository and credential information from `.pypirc` or environment variables, prompt interactively, and upload source distributions, wheels, signatures, and newer attestations depending on version.

Package maintainers also use `twine check` to validate distribution metadata and README rendering before upload. In CI, Twine is commonly configured with tokens, trusted publishing, or repository URLs for private Python indexes.

### Pourquoi les passionnés de paquets s'y intéressent

Twine is package-nerd infrastructure in the purest sense: it exists so other packages can be published predictably. It codified the split between build artifacts and upload transport, which made Python release automation easier to audit and script.

It also captures the Python ecosystem's security migration: away from legacy `setup.py upload` workflows and toward HTTPS, API tokens, keyring integration, metadata validation, and trusted publishing.

### Chronologie

- 2010s: Twine 1.x establishes the build-then-upload PyPI workflow.
- 2019-09-24: Twine 2.0.0 requires Python 3.6 or later.
- 2019-2022: Twine 3.x and 4.x improve authentication, non-interactive use, metadata handling, and modern Python support.
- 2024-2025: Twine 5.x and 6.x remove older formats and add work around token defaults, trusted publishing, and refreshed short-lived tokens.

### Related projects

- PyPI and Warehouse are Twine's primary public upload targets.
- `python -m build`, setuptools, wheels, and source distributions form the artifact side of the workflow Twine uploads.
- The Python Packaging User Guide and PyPA recommendations helped make Twine part of standard Python release practice.

### Sources

- Official GitHub repository: https://github.com/pypa/twine
- Official changelog: https://twine.readthedocs.io/en/stable/changelog.html
- Official documentation: https://twine.readthedocs.io/en/stable/
- PyPI project page: https://pypi.org/project/twine/


## Notes de sécurité

Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour twine. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.pypirc

## Credential files

- Unix: ~/.pypirc
## Autres enregistrements de gestionnaires de paquets

- Debian apt - twine - 6.1.0-1: normalized package name match | Debian stable package indexes: twine from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utility for interacting with PyPI | https://github.com/pypa/twine
- Nix - twine: normalized package name match | nixpkgs package indexes: twine from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - twine - 5.0.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: twine from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | utility for interacting with PyPI | https://github.com/pypa/twine
- apk - twine - 6.1.0-r1: normalized package name match | Alpine Linux edge package indexes: twine from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Collection of utilities for publishing packages on PyPI | https://twine.readthedocs.io/en/latest/
- apk - twine-pyc - 6.1.0-r1: normalized package name match | Alpine Linux edge package indexes: twine-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for twine | https://twine.readthedocs.io/en/latest/
- dnf - twine - 6.2.0-7.fc45: normalized package name match | Fedora Rawhide package metadata: twine from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Twine is a utility for publishing Python packages on PyPI | https://github.com/pypa/twine
- pacman - twine - 6.2.0-3: normalized package name match | Arch Linux sync databases: twine from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Collection of utilities for interacting with PyPI | https://github.com/pypa/twine/
- MacPorts - twine: normalized package name match | MacPorts ports tree: python/twine/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - extras/twine: normalized package name match | Scoop official bucket manifest trees: bucket/twine.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
- winget - ChrisKlimas.Twine: normalized package name match | Windows Package Manager source index: ChrisKlimas.Twine from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/twine.yml](https://github.com/mxcl/pkgdb/blob/main/combined/twine.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
