tox-poetry icon indicating copy to clipboard operation
tox-poetry copied to clipboard

Support for tox 4

Open ryshoooo opened this issue 2 years ago • 7 comments

Updated the source code to support tox >= 4.0.0. The old implementation is kept for old tox versions.

Closes #15

ryshoooo avatar Dec 20 '22 22:12 ryshoooo

Thanks for this @ryshoooo! Is this good to go @tkukushkin? Can we merge and release?

jamwil avatar Jan 05 '23 23:01 jamwil

Hey @tkukushkin. I do realize you said you don't really have time for development but I would appreciate if you considered merging and releasing this since @ryshoooo took the time to make it work.

bcyran avatar Jan 14 '23 08:01 bcyran

Hey @tkukushkin. I do realize you said you don't really have time for development but I would appreciate if you considered merging and releasing this since @ryshoooo took the time to make it work.

Or alternatively make one of the participants on this PR a maintainer so we can merge this and coordinate moving repo ownership under the tox-dev umbrella.

jamwil avatar Jan 14 '23 14:01 jamwil

Hello @ryshoooo, @bcyran, @jamwil. I have reviewed this pull request and have tested latest version of poetry with tox.

On one of my projects with 144 dependencies when all packages are already installed poetry install spends only 1 second to check that everything is ok.

Previously, I saw the value of this plugin in fact, that with this plugin tox runs poetry install only when it creates new virtual environment, because poetry install was really slow even when all packages are installed, so I had to wait it every tox execution, it was just waste of time. Now, I don't see such problem with latest poetry version anymore. So personally I don't see any value in this plugin anymore. Examples from poetry documentations work fine.

But I understand that I may not understand your use cases and you may see some another value in this plugin, I will be glad if you describe it.

tkukushkin avatar Jan 15 '23 03:01 tkukushkin

I checked it with my projects and I have to admit everything works like @tkukushkin described. I think in my use case the plugin isn't needed anymore indeed.

bcyran avatar Jan 15 '23 11:01 bcyran

I agree it's not strictly necessary and its use in new projects should be discouraged, but in the interest of preserving existing workflows there may be some value in tov v4 support. I'm not sure how widely this is used—I'm happy to update the one repository of my own that uses it currently, but if this issue is more widespread then perhaps a patch and deprecation is logical?

jamwil avatar Jan 15 '23 13:01 jamwil

Hello @ryshoooo, @bcyran, @jamwil. I have reviewed this pull request and have tested latest version of poetry with tox.

On one of my projects with 144 dependencies when all packages are already installed poetry install spends only 1 second to check that everything is ok.

Previously, I saw the value of this plugin in fact, that with this plugin tox runs poetry install only when it creates new virtual environment, because poetry install was really slow even when all packages are installed, so I had to wait it every tox execution, it was just waste of time. Now, I don't see such problem with latest poetry version anymore. So personally I don't see any value in this plugin anymore. Examples from poetry documentations work fine.

But I understand that I may not understand your use cases and you may see some another value in this plugin, I will be glad if you describe it.

Fair point @tkukushkin :) I've tested it out as well, and indeed this plugin is not necessary. I'll leave the PR open and let you decide whether to close it or merge it, but I'll personally stop using the plugin going forward :)

ryshoooo avatar Jan 24 '23 20:01 ryshoooo