diff --git a/jaraco/envs.py b/jaraco/envs.py index 4b0f90a..e8f972e 100644 --- a/jaraco/envs.py +++ b/jaraco/envs.py @@ -8,6 +8,19 @@ class VirtualEnv: + """ + >>> mp = getfixture('monkeypatch') + >>> root = getfixture('tmp_path') + >>> mp.setenv('SERVICES_ROOT', str(root)) + + Subclass VirtualEnv and supply name and req: + + >>> class MyVirtualEnv(VirtualEnv): + ... name = '.venv' + ... req = 'example' + >>> env = MyVirtualEnv().create() + """ + root = Path(os.environ.get('SERVICES_ROOT', '.cache/services')) clean_opts = ["--no-setuptools", "--no-pip", "--no-wheel"]