/virtualenv-rye-discovery

Virtualenv plugin for discovery of Python interpreters through Rye.

Primary LanguagePythonApache License 2.0Apache-2.0

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-rye-discovery

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

Example

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:

  1. Install Rye
  2. rye sync
  3. 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.

Other

Requires rye >= 0.7