plugin-kit-ai 2.0.3__tar.gz → 2.0.4__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: plugin-kit-ai
3
- Version: 2.0.3
3
+ Version: 2.0.4
4
4
  Summary: Thin Python launcher for the plugin-kit-ai CLI
5
5
  Author: plugin-kit-ai
6
6
  License: Apache-2.0
@@ -1,3 +1,3 @@
1
1
  """plugin-kit-ai Python wrapper package."""
2
2
 
3
- __version__ = "2.0.3"
3
+ __version__ = "2.0.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plugin-kit-ai
3
- Version: 2.0.3
3
+ Version: 2.0.4
4
4
  Summary: Thin Python launcher for the plugin-kit-ai CLI
5
5
  Author: plugin-kit-ai
6
6
  License: Apache-2.0
@@ -14,6 +14,8 @@ from plugin_kit_ai import install
14
14
  class ReleaseTags(unittest.TestCase):
15
15
  def test_numeric_and_product_tags(self):
16
16
  for raw, tag, version in [
17
+ ('2.0.4', 'plugin-kit-ai-v2.0.4', '2.0.4'),
18
+ ('plugin-kit-ai-v2.0.4', 'plugin-kit-ai-v2.0.4', '2.0.4'),
17
19
  ('2.0.3', 'plugin-kit-ai-v2.0.3', '2.0.3'),
18
20
  ('plugin-kit-ai-v2.0.3', 'plugin-kit-ai-v2.0.3', '2.0.3'),
19
21
  ('2.0.2', 'plugin-kit-ai-v2.0.2', '2.0.2'),
@@ -26,17 +28,17 @@ class ReleaseTags(unittest.TestCase):
26
28
  self.assertEqual(install.version_from_tag(tag), version)
27
29
 
28
30
  def test_reject_wrong_product_and_malformed_tags(self):
29
- for tag in ['agentplugins-v0.1.63', 'v2.0.3', '2.00.3', '2.0',
30
- 'plugin-kit-ai-plugin-kit-ai-v2.0.3', '2.0.3-rc.1',
31
- '2.0.3+build', '../2.0.3', 'vlatest', '2.0.3\n',
32
- ' plugin-kit-ai-v2.0.3']:
31
+ for tag in ['agentplugins-v0.1.64', 'v2.0.4', '2.00.4', '2.0',
32
+ 'plugin-kit-ai-plugin-kit-ai-v2.0.4', '2.0.4-rc.1',
33
+ '2.0.4+build', '../2.0.4', 'vlatest', '2.0.4\n',
34
+ ' plugin-kit-ai-v2.0.4']:
33
35
  with self.subTest(tag=tag), self.assertRaises(ValueError):
34
36
  install.normalize_tag(tag)
35
37
 
36
38
  def test_packaged_version_and_latest_product_validation(self):
37
- with patch.dict(os.environ, {}, clear=True), patch.object(install, '__version__', '2.0.3'):
38
- self.assertEqual(install.resolve_requested_tag(), 'plugin-kit-ai-v2.0.3')
39
- with patch.object(install, 'fetch_text', return_value='{"tag_name":"agentplugins-v0.1.63"}'):
39
+ with patch.dict(os.environ, {}, clear=True), patch.object(install, '__version__', '2.0.4'):
40
+ self.assertEqual(install.resolve_requested_tag(), 'plugin-kit-ai-v2.0.4')
41
+ with patch.object(install, 'fetch_text', return_value='{"tag_name":"agentplugins-v0.1.64"}'):
40
42
  with self.assertRaises(ValueError):
41
43
  install.latest_tag(install.DEFAULT_API_BASE, install.DEFAULT_REPOSITORY)
42
44
 
@@ -49,7 +51,8 @@ class ReleaseTags(unittest.TestCase):
49
51
  member.size = len(binary)
50
52
  archive.addfile(member, io.BytesIO(binary))
51
53
  body = stream.getvalue()
52
- for raw in ['2.0.3', 'plugin-kit-ai-v2.0.3', '2.0.2', 'plugin-kit-ai-v2.0.2', '1.2.4', 'v1.2.4']:
54
+ for raw in ['2.0.4', 'plugin-kit-ai-v2.0.4', '2.0.3', 'plugin-kit-ai-v2.0.3',
55
+ '2.0.2', 'plugin-kit-ai-v2.0.2', '1.2.4', 'v1.2.4']:
53
56
  for bad_checksum in [False, True]:
54
57
  with self.subTest(raw=raw, bad_checksum=bad_checksum), tempfile.TemporaryDirectory() as root:
55
58
  tag = install.normalize_tag(raw)
File without changes
File without changes
File without changes