pytest-pythonpath
pytest plugin for adding to the PYTHONPATH from command line or configs.
Decision gist · record as of 2026-08-14
No. If you are using pytest 7.0.0 or later (released January 2022), use pytest's native `pythonpath` config option instead. If you are stuck on an older pytest version, consider upgrading rather than adopting an abandoned plugin. There are no known security vulnerabilities, but the package receives no maintenance and its purpose is now redundant.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Only works with pytest versions before 7.0.0; pytest 7.0.0+ has native pythonpath configuration built in.
- Low install friction, but the package is abandoned as of March 2022 (1646 days without updates).
- Its core feature was integrated into pytest 7.0.0, making it obsolete for modern pytest versions.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—standard permissive terms.
last release 2022-02-10 (1646 days) · last repo commit 2022-03-01 · 80 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 265,618 downloads/mo, #8,321 on PyPI
Alternatives
Verify before relying
# Add to pytest.ini:
[pytest]
python_paths = your/path/apps your/path/libs
# Then run pytest normally:
pytest- Whether the plugin still functions correctly with pytest 7.0.0+ despite being marked obsolete.
- Compatibility with Python versions beyond 3.10 (classifiers list 3.10 as highest, but requires_python allows <4).
What it is and what it does
pytest-pythonpath is a pytest plugin that modifies the Python import path before tests run by reading path directives from pytest.ini. It allows you to specify directories to prepend to sys.path or process as site directories, enabling tests to import modules from custom locations without modifying PYTHONPATH manually.
However, this plugin is now obsolete. As of pytest 7.0.0, the same functionality is available natively via the `pythonpath` configuration option in pytest.ini, making this plugin unnecessary for any pytest version released since early 2022. The package is abandoned and receives no maintenance.
Use it for
- Legacy projects still running pytest <7.0.0 that need to configure import paths via pytest.ini.
- Codebases with custom module layouts where sys.path manipulation is simpler than restructuring imports.
- Projects that cannot upgrade pytest and need a drop-in path configuration mechanism.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
If you are using pytest 7.0.0 or later (released January 2022), use pytest's native `pythonpath` config option instead. If you are stuck on an older pytest version, consider upgrading rather than adopting an abandoned plugin. There are no known security vulnerabilities, but the package receives no maintenance and its purpose is now redundant.
Install
pytest-pythonpath on PyPI
Before you install
Low install friction, but the package is abandoned as of March 2022 (1646 days without updates). Its core feature was integrated into pytest 7.0.0, making it obsolete for modern pytest versions.
Only works with pytest versions before 7.0.0; pytest 7.0.0+ has native pythonpath configuration built in.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—standard permissive terms.
Quickstart
# Add to pytest.ini:
[pytest]
python_paths = your/path/apps your/path/libs
# Then run pytest normally:
pytest
Verify before relying
- Whether the plugin still functions correctly with pytest 7.0.0+ despite being marked obsolete.
- Compatibility with Python versions beyond 3.10 (classifiers list 3.10 as highest, but requires_python allows <4).
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=2.6, <4 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepytest |
| Maintenance | Abandoned 1,646 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 265,618 / month, #8,321 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: PluginsFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.0Programming Language :: Python :: 3.1Programming Language :: Python :: 3.10Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Testing |
Evidence: pytest_pythonpath-0.7.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest pythonpath configuration”
- pytest-pythonpathAdds directories to Python's import path before pytest runs,…
- rootutilsFinds your project root directory and configures Python path, working…
- pyrootutilsFinds your project root directory and configures Python paths,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pytest-dotenv · pyrootutils · rootutils · pytest-isort · pytest-datafiles · pytest-env · pytest-mypy-plugins · pytest-redis · pytest-runner