Files
VoxVera/pyproject.toml
T
thePR0M3TH3ANandClaude Opus 4.6 b5ab447207 fix(cli): set PYTHONNOUSERSITE=1 for onionshare-cli subprocess, robust cleanup (v0.2.19)
Root cause: user-local werkzeug 2.0.3 in ~/.local/lib/python3.11/
site-packages shadows the system werkzeug 2.2.2, breaking Flask's
LocalProxy.unbound_message for the system onionshare-cli.

The pip3 show-based cleanup was unreliable (shows system package,
skips user-local). Two-pronged fix:

1. Set PYTHONNOUSERSITE=1 in the env passed to onionshare-cli so it
   never loads packages from ~/.local — uses only system packages.
2. Install script now directly rm -rf's conflicting packages from
   ~/.local/lib/python3.*/site-packages/ instead of relying on pip3.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-16 10:14:39 -04:00

54 lines
1.0 KiB
TOML

[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["."]
include = ["voxvera*"]
[tool.setuptools]
include-package-data = true
[tool.setuptools.package-data]
voxvera = ["templates/**", "src/**", "resources/**", "locales/**", "resources/bin/**"]
[project]
name = "voxvera"
version = "0.2.19"
description = "VoxVera CLI utilities"
readme = "README.md"
authors = [{name = "VoxVera"}]
requires-python = ">=3.9"
dependencies = [
"InquirerPy",
"rich",
"qrcode[pil]",
"Pillow",
"jsmin",
"htmlmin2",
"pypdf",
"wcwidth",
"setuptools",
]
[project.optional-dependencies]
test = [
"pytest",
]
e2e = [
"pytest",
"requests[socks]",
]
all = [
"pytest",
"requests[socks]",
]
[project.scripts]
voxvera = "voxvera.cli:main"
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests that require external services",
]