Skip to content

Commit

Permalink
0.35.0 (#646)
Browse files Browse the repository at this point in the history
- fix windows issues
- Fix inlinedbaml creation in windows machines
  • Loading branch information
aaronvg authored Jun 5, 2024
1 parent ffd780e commit c15ae1e
Show file tree
Hide file tree
Showing 10 changed files with 97 additions and 96 deletions.
4 changes: 2 additions & 2 deletions clients/python-ffi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion engine/language-client-codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ impl GeneratorArgs {
.iter()
.map(|(k, v)| {
Ok((
k.display().to_string(),
serde_json::to_string(&k.display().to_string()).map_err(|e| {
anyhow::Error::from(e)
.context(format!("Failed to serialize key {:#}", k.display()))
})?,
serde_json::to_string(v).map_err(|e| {
anyhow::Error::from(e)
.context(format!("Failed to serialize contents of {:#}", k.display()))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import json

file_map = {
{% for k in file_map %}
"{{ k.0 }}": {{ k.1 }},
{{ k.0 }}: {{ k.1 }},
{%- endfor %}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fileMap = {
{% for k in file_map %}
"{{ k.0 }}": {{ k.1 }},
{{ k.0 }}: {{ k.1 }},
{%- endfor %}
}
export const getBamlFiles = () => {
Expand Down
2 changes: 1 addition & 1 deletion engine/language_client_python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "baml-py"
version = "0.34.0"
version = "0.35.0"
description = "BAML python bindings (pyproject.toml)"
readme = "README.md"
authors = [["Boundary", "[email protected]"]]
Expand Down
2 changes: 1 addition & 1 deletion engine/language_client_typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@boundaryml/baml",
"version": "0.34.0",
"version": "0.35.0",
"description": "BAML typescript bindings (package.json)",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions integ-tests/python/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Run the tests like this:

infisical run --env=test -- poetry run pytest app/test_functions.py
infisical run --env=devasen -- poetry run pytest app/test_functions.py

env -u CONDA_PREFIX poetry run maturin develop --manifest-path ../../engine/language_client_python/Cargo.toml && poetry run baml-cli generate --from ../baml_src

BAML_LOG=baml_events infisical run --env=test -- poetry run pytest app/test_functions.py -s
BAML_LOG=baml_events infisical run --env=dev -- poetry run pytest app/test_functions.py -s

85 changes: 42 additions & 43 deletions integ-tests/python/baml_client/inlinedbaml.py

Large diffs are not rendered by default.

84 changes: 42 additions & 42 deletions integ-tests/typescript/baml_client/inlinedbaml.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion typescript/vscode-ext/packages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "baml-extension",
"displayName": "Baml",
"description": "BAML is a DSL for AI applications.",
"version": "0.34.0",
"version": "0.35.0",
"publisher": "Boundary",
"repository": "https://github.com/BoundaryML/baml",
"homepage": "https://www.boundaryml.com",
Expand Down

0 comments on commit c15ae1e

Please sign in to comment.