Note: This work is contributed to the community by implementing a solution and sharing it, long term maintainership is uncertain. Only published on github, not PyPI.
No longer maintained; I recommend using uv and tox-uv. New maintainers welcome to fork and take over.
virtualenv plugin to allow discovery of versions through Rye - which can supply an installed version or fetch if missing.
Currently supports version specs like: py39, cpython39, pypy39.
This plugin was built to enable Tox version finding through rye. Tox 4 instructs that custom python finding happens through virtualenv: https://tox.wiki/en/latest/plugins.html
See https://github.com/bluss/tox-rye for the tox configuration "interface" plugin for this - prefer installing it and use this functionality through it.
How to use this with virtualenv:
- Install Rye
rye sync
virtualenv --discovery rye -p 3.9 myenv
If --discovery
can't be passed directly, then VIRTUALENV_DISCOVERY=rye
cnn be explicitly set in the environment to enable.
Requires rye >= 0.7