tenacity icon indicating copy to clipboard operation
tenacity copied to clipboard

Add retrying shim

Open groodt opened this issue 3 years ago • 3 comments

Introduces a shim that should enable drop-in replacement for the unmaintained https://github.com/rholder/retrying project.

Path towards fix for: https://github.com/jd/tenacity/issues/356

An alternative approach might be to claim the name on PyPI and then publish a dummy package (with a breaking version number) with the shim. Over time you could standardise on one name or the other and log warnings and eventually fail (with another breaking version number).

groodt avatar Jul 20 '22 08:07 groodt

⚠️ No release notes detected. Please make sure to use reno to add a changelog entry.

mergify[bot] avatar Jul 20 '22 08:07 mergify[bot]

Not sure this fixes/help with anything though?

jd avatar Jul 25 '22 16:07 jd

Yes, agree. Was thinking that it might assist individuals migrating to tenacity without changing imports, but it probably isn’t necessarily the best strategy.

Taking a step back, what would you like to see happen with “retrying” on pypi. It’s presently abandoned so is a supply chain risk / unmaintained code.

If you want the pypi project name, you should submit a 541 request because they take 2 or 3 months to process. https://github.com/pypa/pypi-support/issues/2064#issuecomment-1194395022

Some ideas for how to migrate pypi packages.

Option 1: Over time, migrate tenacity users to retrying

Option 2: Over time, migrate retrying users to tenacity

Option 3: Keep users of both packages as-is, but without maintaining 2 packages and code bases long-term (I’m not sure this is possible or desirable)

groodt avatar Jul 25 '22 20:07 groodt

⚠️ No release notes detected. Please make sure to use reno to add a changelog entry.

mergify[bot] avatar Nov 14 '23 12:11 mergify[bot]