Skip to content

Commit 6813bea

Browse files
chore: Bump to v2.3.1 (#76)
* chore: Bump to v2.3.1 Signed-off-by: Edgar Ramírez Mondragón <[email protected]> * Shorter job names Signed-off-by: Edgar Ramírez Mondragón <[email protected]> --------- Signed-off-by: Edgar Ramírez Mondragón <[email protected]>
1 parent 0fb1d10 commit 6813bea

File tree

7 files changed

+343
-286
lines changed

7 files changed

+343
-286
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy Documentation
1+
name: Documentation
22

33
on:
44
push:
@@ -18,7 +18,7 @@ permissions:
1818

1919
jobs:
2020
build-docs:
21-
name: Build documentation
21+
name: Build
2222
runs-on: ubuntu-24.04
2323
steps:
2424
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -42,7 +42,7 @@ jobs:
4242
path: site
4343

4444
publish-docs:
45-
name: Publish documentation
45+
name: Publish
4646
runs-on: ubuntu-24.04
4747
needs: [ build-docs ]
4848
permissions:

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ site/
1919
__MACOSX/
2020
.AppleDouble
2121
.LSOverride
22-
Icon[
23-
]
2422

2523
# Thumbnails
2624
._*

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
## [v2.3.1] - 2025-12-18
6+
57
### Fixed
68

79
- Changed the type of the `target` key in the `Details` dictionary to represent an actual function [#72](https://github.com/python-backoff/backoff/pull/72) (from [@edgarrmondragon](https://github.com/edgarrmondragon))
@@ -12,7 +14,6 @@
1214
- Include changelog in the documentation [#65](https://github.com/python-backoff/backoff/pull/65) (from [@edgarrmondragon](https://github.com/edgarrmondragon))
1315
- Link to canonical `requests` documentation hosted on "Read the Docs" [#67](https://github.com/python-backoff/backoff/pull/67) (from [@edgarrmondragon](https://github.com/edgarrmondragon))
1416

15-
1617
### Internal
1718

1819
- Use Ruff to give the codebase a consistent format [#66](https://github.com/python-backoff/backoff/pull/66) (from [@edgarrmondragon](https://github.com/edgarrmondragon))

backoff/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
"random_jitter",
2929
]
3030

31-
__version__ = "2.2.1"
31+
__version__ = "2.3.1"

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "python-backoff"
3-
version = "2.4.0.dev0"
3+
version = "2.3.1"
44
description = "Function decoration for backoff and retry"
55
authors = [{ name = "Bob Green", email = "[email protected]" }]
66
maintainers = [{ name = "Edgar Ramírez-Mondragón", email = "[email protected]" }]
@@ -53,10 +53,13 @@ lint = [
5353
]
5454
test = [
5555
"coverage>=7.2.7",
56+
"importlib-metadata>=8.5.0",
57+
"packaging>=25.0",
5658
"pytest>=7.1.2",
5759
"pytest-asyncio>=0.18.3",
5860
"requests>=2.26.0",
5961
"responses>=0.20.0",
62+
"tomli>=2.3.0",
6063
]
6164
typing = [
6265
{ include-group = "test" },

tests/test_package.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import sys
2+
from importlib.metadata import version
3+
4+
import backoff
5+
from packaging.version import Version
6+
from packaging.specifiers import SpecifierSet
7+
8+
if sys.version_info >= (3, 11):
9+
import tomllib
10+
else:
11+
import tomli as tomllib
12+
13+
14+
def test_version():
15+
assert version("python-backoff") == backoff.__version__, (
16+
f"Version in __init__.py ({backoff.__version__}) does not match version in pyproject.toml ({version('python-backoff')})"
17+
)
18+
19+
20+
def test_python_classifiers():
21+
with open("pyproject.toml", "rb") as f:
22+
data = tomllib.load(f)
23+
24+
versions = map(
25+
lambda x: Version(x.split(" :: ")[-1]),
26+
filter(
27+
lambda x: x.startswith("Programming Language :: Python :: 3."),
28+
data["project"]["classifiers"],
29+
),
30+
)
31+
requires_python = SpecifierSet(data["project"]["requires-python"])
32+
assert all(v in requires_python for v in versions)

uv.lock

Lines changed: 301 additions & 278 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)