Skip to content

Commit 45b861f

Browse files
Bump stamina from 24.3.0 to 25.1.0 (#10541)
Bumps [stamina](https://github.com/hynek/stamina) from 24.3.0 to 25.1.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/hynek/stamina/releases">stamina's releases</a>.</em></p> <blockquote> <h2>25.1.0</h2> <h2>Highlights</h2> <p>The context manager edition! You can now use <code>stamina.set_testing()</code> as a context manager and also return one from an instrumentation retry hook which is entered and exited before and after sleep which allows you to emit spans for back off times!</p> <p><em>Full changelog below!</em></p> <h2>Special Thanks</h2> <p>This release would not be possible without my generous sponsors! Thank you to all of you making sustainable maintenance possible! If <em>you</em> would like to join them, go to <a href="https://github.com/sponsors/hynek">https://github.com/sponsors/hynek</a> and check out the sweet perks!</p> <h3>Above and Beyond</h3> <p><a href="https://www.variomedia.de/">Variomedia AG</a> (@<a href="https://github.com/variomedia">variomedia</a>), <a href="https://www.tidelift.com/">Tidelift</a> (@<a href="https://github.com/tidelift">tidelift</a>), <a href="https://ecosyste.ms">Ecosystems</a> (@<a href="https://github.com/ecosyste-ms">ecosyste-ms</a>), <a href="https://www.klaviyo.com">Klaviyo</a> (@<a href="https://github.com/klaviyo">klaviyo</a>), <a href="https://privacy-solutions.org">Privacy Solutions GmbH</a> (@<a href="https://github.com/privacy-solutions">privacy-solutions</a>), <a href="http://filepreviews.io/">FilePreviews</a> (@<a href="https://github.com/filepreviews">filepreviews</a>), <a href="https://blog.alternatebuild.dev">nate nowack</a> (@<a href="https://github.com/zzstoatzz">zzstoatzz</a>), Daniel Fortunov (@<a href="https://github.com/asqui">asqui</a>), and Kevin P. Fleming (@<a href="https://github.com/kpfleming">kpfleming</a>).</p> <h3>Maintenance Sustainers</h3> <p><a href="https://buttondown.com">Buttondown</a> (@<a href="https://github.com/buttondown">buttondown</a>), <a href="https://christopher.xyz">Christopher Dignam</a> (@<a href="https://github.com/chdsbd">chdsbd</a>), Magnus Watn (@<a href="https://github.com/magnuswatn">magnuswatn</a>), <a href="https://cra.mr">David Cramer</a> (@<a href="https://github.com/dcramer">dcramer</a>), Jesse Snyder (@<a href="https://github.com/jessesnyder">jessesnyder</a>), <a href="https://rivolaks.com">Rivo Laks</a> (@<a href="https://github.com/rivol">rivol</a>), <a href="https://polar.sh">Polar</a> (@<a href="https://github.com/polarsource">polarsource</a>), <a href="https://www.miketheman.net">Mike Fiedler</a> (@<a href="https://github.com/miketheman">miketheman</a>), Duncan Hill (@<a href="https://github.com/cricalix">cricalix</a>), Colin Marquardt (@<a href="https://github.com/cmarqu">cmarqu</a>), <a href="https://blog.journeythatcounts.nl">Pieter Swinkels</a> (@<a href="https://github.com/swinkels">swinkels</a>), Nick Libertini (@<a href="https://github.com/libertininick">libertininick</a>), <a href="https://mpr.crossjam.net/">Brian M. Dennis</a> (@<a href="https://github.com/crossjam">crossjam</a>), Moving Content AG (@<a href="https://github.com/moving-content">moving-content</a>), <a href="https://proteinqure.com/">ProteinQure</a> (@<a href="https://github.com/ProteinQure">ProteinQure</a>), <a href="https://westervelt.com">The Westervelt Company</a> (@<a href="https://github.com/westerveltco">westerveltco</a>), <a href="https://slafs.net">Sławomir Ehlert</a> (@<a href="https://github.com/slafs">slafs</a>), Mostafa Khalil (@<a href="https://github.com/khadrawy">khadrawy</a>), <a href="https://fmularczyk.pl">Filip Mularczyk</a> (@<a href="https://github.com/mukiblejlok">mukiblejlok</a>), Thomas Klinger (@<a href="https://github.com/thmsklngr">thmsklngr</a>), <a href="https://poehlmann.io">Andreas Poehlmann</a> (@<a href="https://github.com/ap--">ap--</a>), <a href="https://atbigelow.com">August Trapper Bigelow</a> (@<a href="https://github.com/atbigelow">atbigelow</a>), <a href="https://noumenal.es/">Carlton Gibson</a> (@<a href="https://github.com/carltongibson">carltongibson</a>), and <a href="https://roboflow.com">Roboflow</a> (@<a href="https://github.com/roboflow">roboflow</a>).</p> <p>Not to forget 14 more amazing humans who chose to be generous but anonymous!</p> <h2>Full Changelog</h2> <h3>Added</h3> <ul> <li> <p><em>cap</em> argument to <code>stamina.set_testing()</code>. By default, the value passed as <em>attempts</em> is used strictly. When <code>cap=True</code>, it is used as an upper cap; that means that if the original attempts number is lower, it's not changed. <a href="https://redirect.github.com/hynek/stamina/pull/80">#80</a></p> </li> <li> <p><code>stamina.set_testing()</code> can now be used as a context manager. <a href="https://redirect.github.com/hynek/stamina/pull/94">#94</a></p> </li> <li> <p>Instrumentation hooks can now can return context managers. If they do, they are entered when a retry is scheduled and exited right before the retry is attempted. <a href="https://redirect.github.com/hynek/stamina/pull/95">#95</a></p> </li> </ul> <hr /> <p>This release contains contributions from <a href="https://github.com/hynek"><code>@​hynek</code></a> and <a href="https://github.com/sparkiegeek"><code>@​sparkiegeek</code></a>.</p> <h2>Artifact Attestations</h2> <p>You can verify this release's <a href="https://docs.github.com/en/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds">artifact attestions</a> using <a href="https://cli.github.com">GitHub's CLI tool</a> by downloading the sdist and wheel from <a href="https://pypi.org/project/stamina">PyPI</a> and running:</p> <pre lang="console"><code>$ gh attestation verify --owner hynek stamina-25.1.0.tar.gz </code></pre> <p>and</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/hynek/stamina/blob/main/CHANGELOG.md">stamina's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/hynek/stamina/compare/24.3.0...25.1.0">25.1.0</a> - 2025-03-12</h2> <h3>Added</h3> <ul> <li> <p><em>cap</em> argument to <code>stamina.set_testing()</code>. By default, the value passed as <em>attempts</em> is used strictly. When <code>cap=True</code>, it is used as an upper cap; that means that if the original attempts number is lower, it's not changed. <a href="https://redirect.github.com/hynek/stamina/pull/80">#80</a></p> </li> <li> <p><code>stamina.set_testing()</code> can now be used as a context manager. <a href="https://redirect.github.com/hynek/stamina/pull/94">#94</a></p> </li> <li> <p>Instrumentation hooks can now can return context managers. If they do, they are entered when a retry is scheduled and exited right before the retry is attempted. <a href="https://redirect.github.com/hynek/stamina/pull/95">#95</a></p> </li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/hynek/stamina/commit/25288ed058f9723bf113768b1ae26cf8857d65c1"><code>25288ed</code></a> Prepare 25.1.0</li> <li><a href="https://github.com/hynek/stamina/commit/8e16d3b8052c0e2033381f09e8b71822ba172305"><code>8e16d3b</code></a> Leave some space</li> <li><a href="https://github.com/hynek/stamina/commit/5730d029cacbeb5ce63e676578e968c2435f19e1"><code>5730d02</code></a> Use consistent language</li> <li><a href="https://github.com/hynek/stamina/commit/6d99d49e00c8a795a096b0252ff5c64302df43b9"><code>6d99d49</code></a> update ruff</li> <li><a href="https://github.com/hynek/stamina/commit/b163605ed98863dcf1f4130dd87f45cd5301747c"><code>b163605</code></a> Allow instrumentation hooks to be contextmanagers (<a href="https://redirect.github.com/hynek/stamina/issues/95">#95</a>)</li> <li><a href="https://github.com/hynek/stamina/commit/5eb259d170cf689658b592b026d6050a2e2b02ad"><code>5eb259d</code></a> [docs] add stamina video link to motivation (<a href="https://redirect.github.com/hynek/stamina/issues/96">#96</a>)</li> <li><a href="https://github.com/hynek/stamina/commit/51b8072095969f2576555c9aea2b7032f0fb43fa"><code>51b8072</code></a> Allow set_testing to be used as a context manager (<a href="https://redirect.github.com/hynek/stamina/issues/94">#94</a>)</li> <li><a href="https://github.com/hynek/stamina/commit/5b51f2cbda79607edfdbaf9d26efdeefe9193bec"><code>5b51f2c</code></a> Stop using setup-python (<a href="https://redirect.github.com/hynek/stamina/issues/93">#93</a>)</li> <li><a href="https://github.com/hynek/stamina/commit/16504cad9d86efd1ffd9c0bfc21002a3faea6115"><code>16504ca</code></a> update ruff</li> <li><a href="https://github.com/hynek/stamina/commit/c62b0a8c37fba0aae13ea0f7d428f546c56fcd65"><code>c62b0a8</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/hynek/stamina/issues/91">#91</a>)</li> <li>Additional commits viewable in <a href="https://github.com/hynek/stamina/compare/24.3.0...25.1.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=stamina&package-manager=pip&previous-version=24.3.0&new-version=25.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 68d7bec commit 45b861f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

requirements/constraints.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ sphinxcontrib-spelling==8.0.1 ; platform_system != "Windows"
230230
# via -r requirements/doc-spelling.in
231231
sphinxcontrib-towncrier==0.5.0a0
232232
# via -r requirements/doc.in
233-
stamina==24.3.0
233+
stamina==25.1.0
234234
# via cherry-picker
235235
tenacity==9.0.0
236236
# via stamina

requirements/dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ sphinxcontrib-serializinghtml==2.0.0
221221
# via sphinx
222222
sphinxcontrib-towncrier==0.5.0a0
223223
# via -r requirements/doc.in
224-
stamina==24.3.0
224+
stamina==25.1.0
225225
# via cherry-picker
226226
tenacity==9.0.0
227227
# via stamina

0 commit comments

Comments
 (0)