b24api 0.3.7__tar.gz → 0.3.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: b24api
3
- Version: 0.3.7
3
+ Version: 0.3.9
4
4
  Summary: Bitrix24 API
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -6,6 +6,7 @@ from functools import partial
6
6
  from itertools import chain, islice
7
7
  from operator import itemgetter
8
8
 
9
+ import h2.exceptions
9
10
  import httpx
10
11
  from fast_depends import inject
11
12
  from pydantic import ValidationError
@@ -27,9 +28,8 @@ class Bitrix24:
27
28
  retry_ = partial(
28
29
  retry,
29
30
  exceptions=(
30
- httpx.ConnectError,
31
- httpx.ConnectTimeout,
32
- httpx.RemoteProtocolError,
31
+ httpx.TransportError,
32
+ h2.exceptions.ProtocolError,
33
33
  RetryHTTPStatusError,
34
34
  RetryApiResponseError,
35
35
  ),
@@ -1,5 +1,5 @@
1
1
  from datetime import datetime
2
- from typing import Annotated, Any, Self
2
+ from typing import Annotated, Any
3
3
 
4
4
  from pydantic import BaseModel, BeforeValidator, field_validator
5
5
 
@@ -57,7 +57,7 @@ class ErrorResponse(BaseModel):
57
57
  value = value.lower()
58
58
  return value
59
59
 
60
- def raise_error(self, retry_errors: list[str]) -> Self:
60
+ def raise_error(self, retry_errors: list[str]) -> None:
61
61
  if self.error in retry_errors:
62
62
  raise RetryApiResponseError(
63
63
  code=self.error,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: b24api
3
- Version: 0.3.7
3
+ Version: 0.3.9
4
4
  Summary: Bitrix24 API
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -1,11 +1,17 @@
1
1
  [build-system]
2
- requires = ["setuptools >= 75"]
2
+ requires = [
3
+ "setuptools>=41",
4
+ "wheel",
5
+ "setuptools-git-versioning>=2.0,<3"
6
+ ]
3
7
  build-backend = "setuptools.build_meta"
4
8
 
9
+ [tool.setuptools-git-versioning]
10
+ enabled = true
5
11
 
6
12
  [project]
7
13
  name = "b24api"
8
- version = "0.3.7"
14
+ dynamic = ["version"]
9
15
  description = "Bitrix24 API"
10
16
  readme = "README.md"
11
17
  requires-python = ">=3.10"
@@ -22,6 +28,9 @@ dev = [
22
28
  "pytest-env>=1.1.5",
23
29
  "pytest-httpx>=0.35.0",
24
30
  "pytest-mock>=3.14.0",
31
+ "setuptools>=80.9.0",
32
+ "setuptools-git-versioning>=2.1.0",
33
+ "wheel>=0.45.1",
25
34
  ]
26
35
 
27
36
  [tool.ruff]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes