pdm-project / tox-pdm

A plugin for tox that utilizes PDM as the package manager and installer
MIT License
25 stars 2 forks source link

Detect tox venvs #38

Open f3flight opened 1 year ago

f3flight commented 1 year ago

Is your feature request related to a problem? Please describe.

Many projects use tox to create venvs and run tests, etc. There's a plugin for tox called tox-pdm which allows using pdm to install deps (to leverage pdm.lock, for example, i.e. for reproducible builds) This is all great but the end user still cannot use pdm directly without either

It would be great if pdm could see and manage venvs created by tox, or maybe even more generally, and venvs in the subfolders of the current project, and allow using them for commands such as "pdm lock" etc, including use by default.

Describe the solution you'd like

I see a few options:

frostming commented 1 year ago

This should be done in the plugin and contribution is welcomed

f3flight commented 1 year ago

Hi @frostming , no problem, could you you point me to some doc or example plugin? I'll have a look

frostming commented 1 year ago

I think pdm-vscode is a simple example to demonstrate how to develop a plugin. And the docs are here: https://pdm.fming.dev/latest/plugin/write/