Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Documentation
name: Documentation

on:
push:
Expand All @@ -18,7 +18,7 @@ permissions:

jobs:
build-docs:
name: Build documentation
name: Build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
Expand All @@ -42,7 +42,7 @@ jobs:
path: site

publish-docs:
name: Publish documentation
name: Publish
runs-on: ubuntu-24.04
needs: [ build-docs ]
permissions:
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ site/
__MACOSX/
.AppleDouble
.LSOverride
Icon[
]

# Thumbnails
._*
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

## [v2.3.1] - 2025-12-18

### Fixed

- 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))
Expand All @@ -12,7 +14,6 @@
- Include changelog in the documentation [#65](https://github.com/python-backoff/backoff/pull/65) (from [@edgarrmondragon](https://github.com/edgarrmondragon))
- 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))


### Internal

- Use Ruff to give the codebase a consistent format [#66](https://github.com/python-backoff/backoff/pull/66) (from [@edgarrmondragon](https://github.com/edgarrmondragon))
Expand Down
2 changes: 1 addition & 1 deletion backoff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
"random_jitter",
]

__version__ = "2.2.1"
__version__ = "2.3.1"
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "python-backoff"
version = "2.4.0.dev0"
version = "2.3.1"
description = "Function decoration for backoff and retry"
authors = [{ name = "Bob Green", email = "rgreen@aquent.com" }]
maintainers = [{ name = "Edgar Ramírez-Mondragón", email = "edgarrm358@gmail.com" }]
Expand Down Expand Up @@ -53,10 +53,13 @@ lint = [
]
test = [
"coverage>=7.2.7",
"importlib-metadata>=8.5.0",
"packaging>=25.0",
"pytest>=7.1.2",
"pytest-asyncio>=0.18.3",
"requests>=2.26.0",
"responses>=0.20.0",
"tomli>=2.3.0",
]
typing = [
{ include-group = "test" },
Expand Down
32 changes: 32 additions & 0 deletions tests/test_package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import sys
from importlib.metadata import version

import backoff
from packaging.version import Version
from packaging.specifiers import SpecifierSet

if sys.version_info >= (3, 11):
import tomllib
else:
import tomli as tomllib


def test_version():
assert version("python-backoff") == backoff.__version__, (
f"Version in __init__.py ({backoff.__version__}) does not match version in pyproject.toml ({version('python-backoff')})"
)


def test_python_classifiers():
with open("pyproject.toml", "rb") as f:
data = tomllib.load(f)

versions = map(
lambda x: Version(x.split(" :: ")[-1]),
filter(
lambda x: x.startswith("Programming Language :: Python :: 3."),
data["project"]["classifiers"],
),
)
requires_python = SpecifierSet(data["project"]["requires-python"])
assert all(v in requires_python for v in versions)
579 changes: 301 additions & 278 deletions uv.lock

Large diffs are not rendered by default.

Loading