qtoggleserver-generic-http 1.2.0__tar.gz → 1.2.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.
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qtoggleserver-generic-http
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: qToggleServer ports backed by configurable HTTP requests
5
5
  Author-email: Calin Crisan <ccrisan@gmail.com>
6
6
  License: Apache 2.0
7
- Requires-Python: ==3.10.*
7
+ Requires-Python: >=3.11
8
8
  Description-Content-Type: text/markdown
9
9
  License-File: LICENSE.txt
10
10
  Requires-Dist: aiohttp
@@ -1,11 +1,11 @@
1
1
  [project]
2
2
  name = "qtoggleserver-generic-http"
3
- version = "1.2.0"
3
+ version = "1.2.1"
4
4
  description = "qToggleServer ports backed by configurable HTTP requests"
5
5
  authors = [
6
6
  {name = "Calin Crisan", email = "ccrisan@gmail.com"},
7
7
  ]
8
- requires-python = "==3.10.*"
8
+ requires-python = ">=3.11"
9
9
  readme = "README.md"
10
10
  license = {text = "Apache 2.0"}
11
11
  dependencies = [
@@ -22,7 +22,6 @@ dev = [
22
22
 
23
23
  [tool.ruff]
24
24
  line-length = 120
25
- target-version = "py310"
26
25
  lint.extend-select = ["I", "RUF022", "ANN"]
27
26
  lint.extend-ignore = ["ANN002", "ANN003", "ANN401"]
28
27
  lint.isort.lines-after-imports = 2
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qtoggleserver-generic-http
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: qToggleServer ports backed by configurable HTTP requests
5
5
  Author-email: Calin Crisan <ccrisan@gmail.com>
6
6
  License: Apache 2.0
7
- Requires-Python: ==3.10.*
7
+ Requires-Python: >=3.11
8
8
  Description-Content-Type: text/markdown
9
9
  License-File: LICENSE.txt
10
10
  Requires-Dist: aiohttp
@@ -22,10 +22,6 @@ class GenericHTTPPort(polled.PolledPort):
22
22
  write: dict[str, Any] | None = None,
23
23
  **kwargs,
24
24
  ) -> None:
25
- # These will directly determine the port type attribute
26
- self._type = type
27
- self._writable = writable
28
-
29
25
  self._write_details: dict[str, Any] = write or {}
30
26
 
31
27
  json_path = read.get("json_path")
@@ -40,6 +36,10 @@ class GenericHTTPPort(polled.PolledPort):
40
36
 
41
37
  super().__init__(id=id, **kwargs)
42
38
 
39
+ # These will directly determine the port type attribute
40
+ self._type = type
41
+ self._writable = writable
42
+
43
43
  def get_peripheral(self) -> GenericHTTPClient:
44
44
  return cast(GenericHTTPClient, super().get_peripheral())
45
45