spot-sdk-python 2.0.0b2__py3-none-any.whl → 2.0.0b3__py3-none-any.whl

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.
spot_sdk/mime.py CHANGED
@@ -1631,13 +1631,15 @@ def _unclosed_parentheses(value: str) -> bytearray:
1631
1631
  # ----------------------------------------------------------------------- #
1632
1632
 
1633
1633
 
1634
- def _host(url: str) -> str:
1635
- """The host a browser would reach, lower-cased and IDNA-decoded; "" when none."""
1636
- if url[:4].lower() == "www.":
1637
- url = "http://" + url
1634
+ def url_host(text: str) -> str:
1635
+ """The host a browser would reach for ``text``, lower-cased and IDNA-decoded;
1636
+ "" when there is none. A backslash reads as a slash, and ``www.`` is a host
1637
+ without a scheme: the host ``parse`` records in ``Url.host``."""
1638
+ if text[:4].lower() == "www.":
1639
+ text = "http://" + text
1638
1640
  try:
1639
1641
  # Browsers read a backslash as a slash in web URLs.
1640
- host = urlsplit(url.replace("\\", "/")).hostname
1642
+ host = urlsplit(text.replace("\\", "/")).hostname
1641
1643
  except ValueError:
1642
1644
  return ""
1643
1645
  return _domain(host) if host else ""
@@ -1654,7 +1656,7 @@ def _url(
1654
1656
  whole URL) and anchor text to ``_STRING_BYTES``."""
1655
1657
  return Url(
1656
1658
  url=cut(url, _URL_BYTES),
1657
- host=cut(_host(url)),
1659
+ host=cut(url_host(url)),
1658
1660
  found_in=found_in,
1659
1661
  part_id=part_id,
1660
1662
  anchor_text=cut.optional(anchor_text),
spot_sdk/workflow.py CHANGED
@@ -127,12 +127,6 @@ class WorkflowStage(BaseModel):
127
127
  depends_on: list[str] = Field(
128
128
  default_factory=list, description="Names of stages this depends on"
129
129
  )
130
- continue_on_failure: bool = Field(
131
- default=True, description="Continue if some analyzers fail"
132
- )
133
- min_successful_analyzers: int = Field(
134
- default=1, ge=0, description="Minimum successful analyzers required"
135
- )
136
130
  condition: str | None = Field(None, description="Conditional execution expression")
137
131
 
138
132
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: spot-sdk-python
3
- Version: 2.0.0b2
3
+ Version: 2.0.0b3
4
4
  Summary: SPOT plugin SDK: the plugin contract, the plugin runtime, its clients and test helpers
5
5
  License: Apache-2.0
6
6
  Author: SPOT Project
@@ -49,7 +49,7 @@ plugins share:
49
49
  ## Install
50
50
 
51
51
  ```bash
52
- pip install spot-sdk-python==2.0.0b2
52
+ pip install spot-sdk-python==2.0.0b3
53
53
  ```
54
54
 
55
55
  Python 3.11 to 3.15. Version 2 implements plugin contract 2, for
@@ -10,7 +10,7 @@ spot_sdk/knowledge_tags.py,sha256=BGhDsNeF8Q0MMNEIZjWrgQWjwH_Vf7dGBNN_hlBqTXs,97
10
10
  spot_sdk/llm.py,sha256=1VOwP9PtAkN75c2DEyFcUwwQKUYFpQfUM7vMu4QS3ds,18605
11
11
  spot_sdk/logging.py,sha256=lY-OdTvShp3Vb-1Gmhi88z810YGFhh6y21PbNscBGSg,3907
12
12
  spot_sdk/manifest.py,sha256=PkteaCBKNm93Xirqy0szednUJeoVkLUPrl8Ot6qdxew,4074
13
- spot_sdk/mime.py,sha256=mEQIDfP58msj7hQ0yhRS4NjvSKeZTwPy6UWaSMAuRcg,99237
13
+ spot_sdk/mime.py,sha256=g_nisTr9OACit4e2zG304pVFo_IdFHyvNIB0KdKbKgI,99393
14
14
  spot_sdk/orchestrator.py,sha256=MCAOV1h7RefcbypjVmrohMpL2_wZ29pelD-E7HBxwO4,2644
15
15
  spot_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  spot_sdk/retriever.py,sha256=caejA0uxDwRgmzDxoArQ0QCu6gsQPNMNESA2q9gGHCw,3448
@@ -24,7 +24,7 @@ spot_sdk/testing/fake_llm.py,sha256=8CZV1ZiEXOd6AK1oSk_9R8nvzzf5w1EEfPOYu3f3ruo,
24
24
  spot_sdk/testing/fake_spot.py,sha256=VF99H9b2CIDe1fd2BFD4d0NX7mtufHLC4YQ8FUutP8Q,3727
25
25
  spot_sdk/testing/views.py,sha256=kgMMf0CMoAu3aPItb6fG2-V3QAp66qk7Vc5Nbr_zlzc,1598
26
26
  spot_sdk/verdict.py,sha256=RD12dbXHXHTa-q3-gWlFURrIR6EECoMLZT3AjLlIgbE,1797
27
- spot_sdk/workflow.py,sha256=EaVJO4RVVPO_Zb8GIqmwUNNNXkeu9l7DNZdqSgdcW-Q,7099
28
- spot_sdk_python-2.0.0b2.dist-info/METADATA,sha256=NHV-yJJw1mcLtGN2WCKIjsUzPCD0ZBGozcXkyRxJtdM,3841
29
- spot_sdk_python-2.0.0b2.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
30
- spot_sdk_python-2.0.0b2.dist-info/RECORD,,
27
+ spot_sdk/workflow.py,sha256=irTeljgeF55QYEEzQ6t463ewXVQdmkTFJcze0z5-yS4,6860
28
+ spot_sdk_python-2.0.0b3.dist-info/METADATA,sha256=W-HYj1XVr5cNQ6i5Qpkm_IJLzCHvLPPCGzUAI12lWCk,3841
29
+ spot_sdk_python-2.0.0b3.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
30
+ spot_sdk_python-2.0.0b3.dist-info/RECORD,,