pkg.soopen package index

brew / 排名 1377

使用 Homebrew, apt, dnf 安装 pytest

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install pytest

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install python-pytest-doc

Debian stable package indexes · python-pytest-doc · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install python3-pytest

Fedora Rawhide package metadata · python3-pytest · 来源: dl.fedoraproject.org

概览

软件包摘要

Simple powerful testing with Python

命令和别名

  • py.test
  • pytest

历史

项目历史与用法

pytest is a mature Python testing framework and command-line test runner known for plain assertions, fixtures, automatic discovery, detailed failure output, and a large plugin ecosystem.

项目历史

pytest traces its roots to testing experiments around PyPy and Holger Krekel’s complementary-standard-library work in 2004. The std.utest component became py.test when the std project was renamed py around September or October 2004.

The 2009 py 1.0 release introduced foundational funcargs/fixtures and a plugin architecture. In November 2010, pytest 2.0 became a package separate from py, although the command was still named py.test. Pytest 3.0 in August 2016 established pytest as the recommended command-line entry point.

采用历史

pytest grew from the PyPy and py-library communities into a general-purpose Python test framework. Its fixture and plugin architecture enabled an extensive surrounding ecosystem, while compatibility with unittest-style tests eased adoption in existing Python projects. Distribution through PyPI and operating-system package managers made it common in development environments and CI systems.

使用方式

Developers write test functions using ordinary Python assertions, request reusable fixtures through function arguments, and run discovery with the pytest command. Plugins extend collection, reporting, coverage, parallelization, frameworks, and other behavior. Pytest can also execute unittest-based test suites.

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

pytest is a package-ecosystem landmark: it popularized plain assert statements with rich failure introspection, composable fixtures, automatic test discovery, and a broad plugin model. Its long migration from the py library to an independent pytest package also explains legacy names such as py.test and historical dependencies encountered in older environments.

时间线

  • 2004: std.utest became py.test as the std project was renamed py.
  • 2009: py 1.0 introduced foundational fixtures and the enduring plugin architecture.
  • 2010: pytest 2.0 was released separately from the py package.
  • 2016: pytest 3.0 made pytest the recommended command name.
  • 2020: pytest 6.0 added pyproject.toml configuration support.
  • 2025: pytest 9.0 added pytest.toml and native TOML configuration.

Related projects

  • The py library originally housed py.test before pytest became a separate distribution.
  • PyPy community testing work helped shape pytest’s origins.
  • tox commonly invokes pytest across managed Python environments and can also host pytest configuration.
  • pluggy underpins pytest’s plugin and hook system.

来源

  • Official configuration reference: https://docs.pytest.org/en/stable/reference/customize.html
  • Official history: https://docs.pytest.org/en/stable/history.html
  • Official unittest compatibility guide: https://docs.pytest.org/en/stable/unittest.html
  • source_facts.package-manager

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 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
pytest.toml.pytest.tomlpytest.ini.pytest.inipyproject.tomltox.inisetup.cfg

可执行文件

已安装的可执行文件

命令类型暴露范围备注
py.testcli全局可执行文件
pytestcli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-09-19
管理器版本9.1.1
管理器更新时间2026-06-20
本地数据OK
上游not checked
检测到的最新版本未检测到

https://docs.pytest.org/en/latest/

安装元数据

软件包元数据

软件包键brew:pytest
版本9.1.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/pytest
主页https://docs.pytest.org/en/latest/
上游文档https://docs.pytest.org/en/latest/
许可证MIT
源码归档https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz
最后更新2026-06-20T12:34:40Z
Pulseupdated
依赖python@3.14
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

python-pytest-doc 8.3.5-2

Simple, powerful testing in Python - Documentation

https://pytest.org/

sudo apt install python-pytest-doc
  • Section: doc
  • Architecture: all
  • Source Package: pytest
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Pytest
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python-pytest-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-pytest 8.3.5-2

Simple, powerful testing in Python3

https://pytest.org/

sudo apt install python3-pytest
  • Section: python
  • Architecture: all
  • Source Package: pytest
  • 7 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Pytest
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-pytest from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

python-pytest-doc 7.4.4-1

Simple, powerful testing in Python - Documentation

https://pytest.org/

sudo apt install python-pytest-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: pytest
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Pytest
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python-pytest-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

python3-pytest 7.4.4-1

Simple, powerful testing in Python3

https://pytest.org/

sudo apt install python3-pytest
  • Section: universe/python
  • Architecture: all
  • Source Package: pytest
  • 8 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Pytest
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-pytest from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

python3-pytest 9.1.1-1.fc45

Simple powerful testing with Python

https://pytest.org

sudo dnf install python3-pytest
  • License: MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: pytest
  • 3 依赖
  • 6 提供
  • normalized package name match
  • 匹配方式:Pytest
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: python3-pytest from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst

来源线索

由仓库数据生成

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

使用的来源

  • Geiger risk classifier
  • 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
  • pkg.so package database
  • pkgdb category and tag curation