[tox] env_list = py310,py311,py312 min_version = 4.11 isolated_build = True no_package = True [testenv] # Install the module in `.` and its `test` extra dependencies from # setup.cfg. deps = .[test] changedir = / # Point directly to the installed package, and do not use `python3 -m pytest`. # This way we prevent importing the module from the current directory instead # of the installed package, and failing when it cannot find the shared library. commands = pytest {envsitepackagesdir}/rocksdb [testenv:docs] deps = .[doc] commands = python setup.py build_sphinx -W [pytest] addopts = --verbose --pyargs norecursedirs = .tox