Skip to content

Commit 42d6077

Browse files
authored
Merge pull request #161 from uhd-urz/dev
Merge dev into main
2 parents f8e8272 + 35e4d85 commit 42d6077

File tree

5 files changed

+37
-25
lines changed

5 files changed

+37
-25
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.4.1] - 2025-10-26
9+
10+
> [!NOTE]
11+
> This release deprecates support for Python versions 3.9 and 3.10.
12+
13+
This is a hotfix release. See the [version 2.4.0 changelog](https://github.com/uhd-urz/elAPI/releases/tag/v2.4.0) for the new changes.
14+
15+
### Fixed
16+
17+
- Rollback [httpx-limiter](https://midnighter.github.io/httpx-limiter/) to version 0.3.0. The version 0.4.0 would break elAPI support on Pyodide (see GH #160)
18+
19+
820
## [2.4.0] - 2025-10-25
921

1022
> [!NOTE]

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "elapi"
3-
version = "2.4.0"
3+
version = "2.4.1"
44
description = "elAPI is a powerful, extensible API client for eLabFTW."
55
authors = [{ name = "Alexander Haller, Mahadi Xion", email = "elabftw@uni-heidelberg.de" }]
66
requires-python = ">=3.11.0,<4"
@@ -33,7 +33,7 @@ dependencies = [
3333
"pyyaml==6.0.2",
3434
"mistune==3.1.3",
3535
"click>=8.1.8,<8.2",
36-
"httpx-limiter>=0.4.0,<0.5",
36+
"httpx-limiter>=0.3.0,<0.4.0",
3737
]
3838
license-files = [
3939
"LICENSE",

src/elapi/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.0
1+
2.4.1

src/elapi/api/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def __new__(
102102
if is_async_client is True:
103103
if transport is None and active_async_rate_limit is not None:
104104
transport = AsyncRateLimitedTransport.create(
105-
Rate.create(magnitude=active_async_rate_limit, duration=1),
105+
rate=Rate.create(magnitude=active_async_rate_limit, duration=1),
106106
# see more: https://midnighter.github.io/httpx-limiter/latest/tutorial/#single-rate-limit
107107
# In our case, magnitude=1, duration=1/active_async_rate_limit yields worse results.
108108
http2=enable_http2, # type: ignore

uv.lock

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

0 commit comments

Comments
 (0)