Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, winget 安装 twine

查看 twine 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install twine

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install twine

MacPorts ports tree · python/twine/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add twine

Alpine Linux edge package indexes · twine · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install twine

Debian stable package indexes · twine · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install twine

Fedora Rawhide package metadata · twine · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#twine

nixpkgs package indexes · twine · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S twine

Arch Linux sync databases · twine · 来源: geo.mirror.pkgbuild.com

Windows

Scoop已验证 · 92%
scoop install extras/twine

Scoop official bucket manifest trees · bucket/twine.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id ChrisKlimas.Twine -e

Windows Package Manager source index · ChrisKlimas.Twine · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Utilities for interacting with PyPI

命令和别名

  • twine

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

来源

  • 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/

安全态势

尚未找到受保护工具覆盖

没有找到 twine 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 2 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
~/.pypirc

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.pypirc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
twinecli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本6.2.0
管理器更新时间2026-05-15
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/pypa/twine

安装元数据

软件包元数据

软件包键brew:twine
版本6.2.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/twine
主页https://github.com/pypa/twine
仓库https://github.com/pypa/twine
上游文档https://twine.readthedocs.io/en/stable
许可证Apache-2.0
源码归档https://files.pythonhosted.org/packages/e0/a8/949edebe3a82774c1ec34f637f5dd82d1cf22c25e963b7d63771083bbee5/twine-6.2.0.tar.gz
最后更新2026-05-15T11:13:54Z
Pulseupdated
依赖certifi, python@3.14
构建依赖rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametwine
Version Scheme0
Revision6
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

twine 6.1.0-1

utility for interacting with PyPI

https://github.com/pypa/twine

sudo apt install twine
  • Section: utils
  • Architecture: all
  • 12 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Twine
Debian stable package indexes · deb.debian.org · Debian stable package indexes: twine from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

twine

nix profile install nixpkgs#twine
  • normalized package name match
  • 匹配方式:Twine
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: twine from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

twine 5.0.0-1

utility for interacting with PyPI

https://github.com/pypa/twine

sudo apt install twine
  • Section: universe/utils
  • Architecture: all
  • 11 依赖
  • normalized package name match
  • 匹配方式:Twine
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: twine from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

twine 6.1.0-r1

Collection of utilities for publishing packages on PyPI

https://twine.readthedocs.io/en/latest/

sudo apk add twine
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: twine
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Twine
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: twine from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

twine-pyc 6.1.0-r1

Precompiled Python bytecode for twine

https://twine.readthedocs.io/en/latest/

sudo apk add twine-pyc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: twine
  • 1 依赖
  • normalized package name match
  • 匹配方式:Twine
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: twine-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

twine 6.2.0-7.fc45

Twine is a utility for publishing Python packages on PyPI

https://github.com/pypa/twine

sudo dnf install twine
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: python-twine
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Twine
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: twine from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

twine 6.2.0-3

Collection of utilities for interacting with PyPI

https://github.com/pypa/twine/

sudo pacman -S twine
  • License: Apache-2.0
  • Architecture: any
  • 11 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Twine
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: twine from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

twine

sudo port install twine
  • normalized package name match
  • 匹配方式:Twine
MacPorts ports tree · api.github.com · MacPorts ports tree: python/twine/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

extras/twine

scoop install extras/twine
  • normalized package name match
  • 匹配方式:Twine
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/twine.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
winget95%

ChrisKlimas.Twine

winget install --id ChrisKlimas.Twine -e
  • normalized package name match
  • 匹配方式:Twine
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: ChrisKlimas.Twine from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment