Ctrl K
ComunidadGuías…

pyproject.toml

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
[project]
# This file exists so `uv run` can pin Python 3.14 for the test suite —
# the shipped macOS .app bundles its own 3.14 interpreter, and some
# modules in src/onionpress/ use PEP 604 `X | None` syntax that fails
# to import on stock /usr/bin/python3 (3.9) on macOS. `uv` downloads an
# isolated Python under ~/.local/share/uv/ without touching the system.
#
# This is NOT the distribution metadata for the app — the macOS build is
# driven by setup.py (py2app) and the Linux install by linux/install.sh.
name = "onionpress-dev"
version = "0"
requires-python = ">=3.10"

[tool.pytest.ini_options]
# Put src/ on the import path so `from onionpress import ...` resolves.
# Nothing else does: the package is never pip-installed for the tests, and
# there is no conftest.py to fix it up. Without this, any test that imports
# the package dies at COLLECTION with ModuleNotFoundError, which reads as a
# broken checkout rather than a missing path — and the suites that shell out
# to wp-cli instead of importing never notice, so the gap stays hidden until
# someone runs the other half from a clean shell.
pythonpath = ["src"]