veris-ai 0.2.0__tar.gz → 0.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.
Potentially problematic release.
This version of veris-ai might be problematic. Click here for more details.
- veris_ai-0.2.0/.github/workflows/publish.yml → veris_ai-0.2.1/.github/workflows/release.yml +9 -7
- {veris_ai-0.2.0 → veris_ai-0.2.1}/CHANGELOG.md +19 -0
- {veris_ai-0.2.0 → veris_ai-0.2.1}/PKG-INFO +1 -1
- {veris_ai-0.2.0 → veris_ai-0.2.1}/pyproject.toml +2 -2
- {veris_ai-0.2.0 → veris_ai-0.2.1}/src/veris_ai/tool_mock.py +1 -5
- {veris_ai-0.2.0 → veris_ai-0.2.1}/uv.lock +1 -1
- {veris_ai-0.2.0 → veris_ai-0.2.1}/.github/workflows/test.yml +0 -0
- {veris_ai-0.2.0 → veris_ai-0.2.1}/.gitignore +0 -0
- {veris_ai-0.2.0 → veris_ai-0.2.1}/LICENSE +0 -0
- {veris_ai-0.2.0 → veris_ai-0.2.1}/README.md +0 -0
- {veris_ai-0.2.0 → veris_ai-0.2.1}/src/veris_ai/__init__.py +0 -0
- {veris_ai-0.2.0 → veris_ai-0.2.1}/tests/__init__.py +0 -0
- {veris_ai-0.2.0 → veris_ai-0.2.1}/tests/conftest.py +0 -0
- {veris_ai-0.2.0 → veris_ai-0.2.1}/tests/test_tool_mock.py +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: Release
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
workflow_dispatch:
|
|
5
5
|
|
|
6
6
|
jobs:
|
|
7
|
-
|
|
7
|
+
release:
|
|
8
8
|
runs-on: ubuntu-latest
|
|
9
9
|
permissions:
|
|
10
10
|
contents: write
|
|
@@ -29,15 +29,17 @@ jobs:
|
|
|
29
29
|
git config --global user.name "GitHub Actions"
|
|
30
30
|
git config --global user.email "actions@github.com"
|
|
31
31
|
|
|
32
|
-
- name: Version and
|
|
32
|
+
- name: Version and Upload Artifacts
|
|
33
33
|
env:
|
|
34
34
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
35
|
-
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
36
35
|
run: |
|
|
37
36
|
uv run semantic-release version
|
|
38
37
|
uv run semantic-release publish
|
|
39
38
|
|
|
40
|
-
- name:
|
|
39
|
+
- name: Publish to PyPI if distribution is created
|
|
41
40
|
run: |
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
if [ -d "dist" ] && [ "$(ls -A dist)" ]; then
|
|
42
|
+
uv publish --token ${{ secrets.PYPI_API_TOKEN }}
|
|
43
|
+
else
|
|
44
|
+
echo "No distribution files found in dist directory. Skipping PyPI publish."
|
|
45
|
+
fi
|
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## v0.2.1 (2025-04-18)
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
- Fixes to type conversion for outputs
|
|
9
|
+
([`b8e8e3b`](https://github.com/veris-ai/veris-python-sdk/commit/b8e8e3bbd606654ae3c342f07f7d27c8c9fefa6d))
|
|
10
|
+
|
|
11
|
+
- Update some comment for testing
|
|
12
|
+
([`bf204e7`](https://github.com/veris-ai/veris-python-sdk/commit/bf204e711c6c54da613d2f59a64f8d90e2ba7659))
|
|
13
|
+
|
|
14
|
+
### Continuous Integration
|
|
15
|
+
|
|
16
|
+
- Separate release and publish workflows
|
|
17
|
+
([`0a2ea8b`](https://github.com/veris-ai/veris-python-sdk/commit/0a2ea8bbb393fda6ef60161ff290f37df0a2faa5))
|
|
18
|
+
|
|
19
|
+
- Update ci and warnings for semantic-release
|
|
20
|
+
([`fcbe2cc`](https://github.com/veris-ai/veris-python-sdk/commit/fcbe2cccd22821cf5760126abb6174aa1f63082f))
|
|
21
|
+
|
|
22
|
+
|
|
4
23
|
## v0.2.0 (2025-04-18)
|
|
5
24
|
|
|
6
25
|
### Chores
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: veris-ai
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: A Python package for Veris AI tools
|
|
5
5
|
Project-URL: Homepage, https://github.com/veris-ai/veris-python-sdk
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/veris-ai/veris-python-sdk/issues
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "veris-ai"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.1"
|
|
8
8
|
description = "A Python package for Veris AI tools"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -125,6 +125,6 @@ dist_path = "dist/"
|
|
|
125
125
|
upload_to_repository = true
|
|
126
126
|
repository_url = "https://upload.pypi.org/legacy/"
|
|
127
127
|
commit_message = "chore: release v{version}"
|
|
128
|
-
commit_parser = "
|
|
128
|
+
commit_parser = "conventional"
|
|
129
129
|
major_on_zero = false
|
|
130
130
|
tag_format = "v{version}"
|
|
@@ -11,7 +11,7 @@ import httpx
|
|
|
11
11
|
|
|
12
12
|
logger = logging.getLogger(__name__)
|
|
13
13
|
|
|
14
|
-
T = TypeVar("T")
|
|
14
|
+
T = TypeVar("T")
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class ToolMock:
|
|
@@ -25,11 +25,9 @@ class ToolMock:
|
|
|
25
25
|
if target_type is Any:
|
|
26
26
|
return value
|
|
27
27
|
|
|
28
|
-
# Handle basic types
|
|
29
28
|
if target_type in (str, int, float, bool):
|
|
30
29
|
return target_type(value)
|
|
31
30
|
|
|
32
|
-
# Handle List types
|
|
33
31
|
origin = get_origin(target_type)
|
|
34
32
|
if origin is list:
|
|
35
33
|
if not isinstance(value, list):
|
|
@@ -38,7 +36,6 @@ class ToolMock:
|
|
|
38
36
|
item_type = get_args(target_type)[0]
|
|
39
37
|
return [self._convert_to_type(item, item_type) for item in value]
|
|
40
38
|
|
|
41
|
-
# Handle Dict types
|
|
42
39
|
if origin is dict:
|
|
43
40
|
if not isinstance(value, dict):
|
|
44
41
|
error_msg = f"Expected dict but got {type(value)}"
|
|
@@ -49,7 +46,6 @@ class ToolMock:
|
|
|
49
46
|
for k, v in value.items()
|
|
50
47
|
}
|
|
51
48
|
|
|
52
|
-
# Handle Union types
|
|
53
49
|
if origin is Union:
|
|
54
50
|
error_msg = (
|
|
55
51
|
f"Could not convert {value} to any of the union types {get_args(target_type)}"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|