frequenz-client-base 0.6.0__tar.gz → 0.6.1__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.
Files changed (22) hide show
  1. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/PKG-INFO +1 -1
  2. frequenz-client-base-0.6.1/RELEASE_NOTES.md +5 -0
  3. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/pyproject.toml +9 -9
  4. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/src/frequenz/client/base/channel.py +3 -3
  5. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/src/frequenz_client_base.egg-info/PKG-INFO +1 -1
  6. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/src/frequenz_client_base.egg-info/requires.txt +9 -9
  7. frequenz-client-base-0.6.0/RELEASE_NOTES.md +0 -23
  8. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/LICENSE +0 -0
  9. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/MANIFEST.in +0 -0
  10. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/README.md +0 -0
  11. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/setup.cfg +0 -0
  12. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/src/frequenz/client/base/__init__.py +0 -0
  13. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/src/frequenz/client/base/client.py +0 -0
  14. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/src/frequenz/client/base/conftest.py +0 -0
  15. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/src/frequenz/client/base/conversion.py +0 -0
  16. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/src/frequenz/client/base/exception.py +0 -0
  17. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/src/frequenz/client/base/py.typed +0 -0
  18. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/src/frequenz/client/base/retry.py +0 -0
  19. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/src/frequenz/client/base/streaming.py +0 -0
  20. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/src/frequenz_client_base.egg-info/SOURCES.txt +0 -0
  21. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/src/frequenz_client_base.egg-info/dependency_links.txt +0 -0
  22. {frequenz-client-base-0.6.0 → frequenz-client-base-0.6.1}/src/frequenz_client_base.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: frequenz-client-base
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: Utilities for writing Frequenz API clients
5
5
  Author-email: Frequenz Energy-as-a-Service GmbH <floss@frequenz.com>
6
6
  License: MIT
@@ -0,0 +1,5 @@
1
+ # Frequenz Client Base Library Release Notes
2
+
3
+ ## Bug Fixes
4
+
5
+ - Fixes a bug in creating grpc channels from ipv6 URIs.
@@ -49,20 +49,20 @@ dev-flake8 = [
49
49
  dev-formatting = ["black == 24.8.0", "isort == 5.13.2"]
50
50
  dev-mkdocs = [
51
51
  "black == 24.8.0",
52
- "Markdown==3.6",
52
+ "Markdown==3.7",
53
53
  "mike == 2.1.3",
54
54
  "mkdocs-gen-files == 0.5.0",
55
55
  "mkdocs-literate-nav == 0.6.1",
56
56
  "mkdocs-macros-plugin == 1.0.5",
57
- "mkdocs-material == 9.5.31",
57
+ "mkdocs-material == 9.5.34",
58
58
  "mkdocstrings[python] == 0.25.2",
59
- "mkdocstrings-python == 1.10.8",
59
+ "mkdocstrings-python == 1.10.9",
60
60
  "frequenz-repo-config[lib] == 0.10.0",
61
61
  "frequenz-client-base",
62
62
  ]
63
63
  dev-mypy = [
64
- "mypy == 1.11.1",
65
- "types-Markdown == 3.6.0.20240316",
64
+ "mypy == 1.11.2",
65
+ "types-Markdown == 3.7.0.20240822",
66
66
  "types-protobuf == 5.27.0.20240626",
67
67
  "grpc-stubs == 1.53.0.5", # This dependency introduces breaking changes in patch releases
68
68
  # For checking the noxfile, docs/ script, and tests
@@ -70,7 +70,7 @@ dev-mypy = [
70
70
  ]
71
71
  dev-noxfile = ["nox == 2024.4.15", "frequenz-repo-config[lib] == 0.10.0"]
72
72
  dev-pylint = [
73
- "pylint == 3.2.6",
73
+ "pylint == 3.2.7",
74
74
  # For checking the noxfile, docs/ script, and tests
75
75
  "frequenz-client-base[dev-mkdocs,dev-noxfile,dev-pytest]",
76
76
  ]
@@ -78,9 +78,9 @@ dev-pytest = [
78
78
  "pytest == 8.3.2",
79
79
  "frequenz-repo-config[extra-lint-examples] == 0.10.0",
80
80
  "pytest-mock == 3.14.0",
81
- "pytest-asyncio == 0.23.8",
82
- "async-solipsism == 0.6",
83
- "hypothesis == 6.111.0",
81
+ "pytest-asyncio == 0.24.0",
82
+ "async-solipsism == 0.7",
83
+ "hypothesis == 6.111.2",
84
84
  "frequenz-client-base",
85
85
  ]
86
86
  dev = [
@@ -110,9 +110,9 @@ def parse_grpc_uri(
110
110
 
111
111
  options = _parse_query_params(uri, parsed_uri.query)
112
112
 
113
- host = parsed_uri.hostname
114
- port = parsed_uri.port or defaults.port
115
- target = f"{host}:{port}"
113
+ target = (
114
+ parsed_uri.netloc if parsed_uri.port else f"{parsed_uri.netloc}:{defaults.port}"
115
+ )
116
116
 
117
117
  ssl = defaults.ssl.enabled if options.ssl is None else options.ssl
118
118
  if ssl:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: frequenz-client-base
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: Utilities for writing Frequenz API clients
5
5
  Author-email: Frequenz Energy-as-a-Service GmbH <floss@frequenz.com>
6
6
  License: MIT
@@ -20,20 +20,20 @@ isort==5.13.2
20
20
 
21
21
  [dev-mkdocs]
22
22
  black==24.8.0
23
- Markdown==3.6
23
+ Markdown==3.7
24
24
  mike==2.1.3
25
25
  mkdocs-gen-files==0.5.0
26
26
  mkdocs-literate-nav==0.6.1
27
27
  mkdocs-macros-plugin==1.0.5
28
- mkdocs-material==9.5.31
28
+ mkdocs-material==9.5.34
29
29
  mkdocstrings[python]==0.25.2
30
- mkdocstrings-python==1.10.8
30
+ mkdocstrings-python==1.10.9
31
31
  frequenz-repo-config[lib]==0.10.0
32
32
  frequenz-client-base
33
33
 
34
34
  [dev-mypy]
35
- mypy==1.11.1
36
- types-Markdown==3.6.0.20240316
35
+ mypy==1.11.2
36
+ types-Markdown==3.7.0.20240822
37
37
  types-protobuf==5.27.0.20240626
38
38
  grpc-stubs==1.53.0.5
39
39
  frequenz-client-base[dev-mkdocs,dev-noxfile,dev-pytest]
@@ -43,14 +43,14 @@ nox==2024.4.15
43
43
  frequenz-repo-config[lib]==0.10.0
44
44
 
45
45
  [dev-pylint]
46
- pylint==3.2.6
46
+ pylint==3.2.7
47
47
  frequenz-client-base[dev-mkdocs,dev-noxfile,dev-pytest]
48
48
 
49
49
  [dev-pytest]
50
50
  pytest==8.3.2
51
51
  frequenz-repo-config[extra-lint-examples]==0.10.0
52
52
  pytest-mock==3.14.0
53
- pytest-asyncio==0.23.8
54
- async-solipsism==0.6
55
- hypothesis==6.111.0
53
+ pytest-asyncio==0.24.0
54
+ async-solipsism==0.7
55
+ hypothesis==6.111.2
56
56
  frequenz-client-base
@@ -1,23 +0,0 @@
1
- # Frequenz Client Base Library Release Notes
2
-
3
- ## Summary
4
-
5
- This version removes `grpclib` support and adds new SSL options to the connection URI.
6
-
7
- ## Upgrading
8
-
9
- - `grpclib` was removed, if you used `grpclib` you should switch to `grpcio` instead.
10
-
11
- You should also update your dependency to `frequenz-client-base` (without any `[grpclib]` or `[grpcio]` suffix). Also, now there is no need to pass around the channel type to the `BaseApiClient` or the `parse_grpc_uri` function.
12
-
13
- - The `parse_grpc_uri` function (and `BaseApiClient` constructor) now enables SSL by default (`ssl=false` should be passed to disable it).
14
-
15
- - The `parse_grpc_uri` and `BaseApiClient` function now accepts a set of defaults to use when the URI does not specify a value for a given option.
16
-
17
- ## New Features
18
-
19
- - The connection URI can now have a few new SSL options:
20
-
21
- * `ssl_root_certificates_path` to specify the path to the root certificates file.
22
- * `ssl_private_key_path` to specify the path to the private key file.
23
- * `ssl_certificate_chain_path` to specify the path to the certificate chain file.