Skip to main content

pytest-bazel

standards

Documentation Changelog Contributing

Thanks

Special thanks to rules_python_pytest and rules_py projects that had some great ideas how to integrate with pytest. This attempts to unify all of the approaches.

Planned for 1.0

Behaviour changes are added behind opt-in flags first. Their defaults will be flipped in 1.0. Set them in the env of a test, or for all tests with e.g. test --test_env=PYTEST_BAZEL_SCOPE_COLLECTION_TO_PACKAGE=1 in .bazelrc.

Env var Default Default in 1.0 Description
PYTEST_BAZEL_CONFIG_FROM_PACKAGE 0 1 Use the pytest config file (e.g. pytest.ini) in the bazel package of the target or its parents. pytest only looks in the runfiles root.
PYTEST_BAZEL_CONSIDER_NAMESPACE_PACKAGES 0 1 Pass -o consider_namespace_packages=true on pytest 8.1+, so that test modules in packages without __init__.py do not shadow third-party packages.
PYTEST_BAZEL_SCOPE_COLLECTION_TO_PACKAGE 0 1 Only collect tests from the bazel package of the target when no paths are passed.

Metadata

Release files for pytest-bazel 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pytest-bazel 0.3.0
File Interpreter ABI Platform Actions
pytest_bazel-0.3.0-py3-none-any.whl Python 3 none any Details for pytest_bazel-0.3.0-py3-none-any.whl

Release files / pytest_bazel-0.3.0-py3-none-any.whl

Download URL pytest_bazel-0.3.0-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c03b77028646d0d808d33d00b953a688d24d61e59d9e1425f2b2201d3ac3434e
BLAKE2b-256 checksum
How to use checksums
d1b44e0907cab628d642fddddb93e711b24b90d98a2c2040cb49a79eaaca4a9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for pytest-bazel 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for pytest_bazel-0.3.0-py3-none-any.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page