Skip to content

Commit

Permalink
Merge pull request #156 from Peefy/chore-bump-kcl-lib-0.10.5
Browse files Browse the repository at this point in the history
chore: bump lib to 0.10.5
  • Loading branch information
Peefy authored Oct 23, 2024
2 parents 18965e2 + ade7a95 commit bb4316e
Show file tree
Hide file tree
Showing 44 changed files with 67 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,4 @@ jobs:
if: "startsWith(github.ref, 'refs/tags/')"
run: |
cd dotnet/KclLib/bin/Release
dotnet nuget push KclLib.0.10.4.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push KclLib.0.10.5.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kcl-lang"
version = "0.10.4"
version = "0.10.5"
edition = "2021"
readme = "README.md"
documentation = "kcl-lang.io"
Expand All @@ -11,8 +11,8 @@ license = "Apache-2.0"

[dependencies]
anyhow = "1"
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-evaluator = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-loader = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-runtime = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-evaluator = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-loader = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-runtime = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ This way you'll be able to import the above dependency to use the SDK.
<dependency>
<groupId>com.kcl</groupId>
<artifactId>kcl-lib</artifactId>
<version>0.10.4-SNAPSHOT</version>
<version>0.10.5-SNAPSHOT</version>
</dependency>
```

Expand Down Expand Up @@ -197,7 +197,7 @@ This way you'll be able to import the above dependency to use the SDK.
<dependency>
<groupId>com.kcl</groupId>
<artifactId>kcl-lib</artifactId>
<version>0.10.4-SNAPSHOT</version>
<version>0.10.5-SNAPSHOT</version>
</dependency>
```

Expand Down Expand Up @@ -231,7 +231,7 @@ For CMake, you can use FetchContent to add KCL C++ Lib to your project.
FetchContent_Declare(
kcl-lib
GIT_REPOSITORY https://github.com/kcl-lang/lib.git
GIT_TAG v0.10.4
GIT_TAG v0.10.5
SOURCE_SUBDIR cpp
)
FetchContent_MakeAvailable(kcl-lib)
Expand Down
4 changes: 2 additions & 2 deletions c/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kcl-lib-c"
version = "0.10.4"
version = "0.10.5"
edition = "2021"
publish = false

Expand All @@ -12,4 +12,4 @@ doc = false
cbindgen = "0.26.0"

[dependencies]
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
2 changes: 1 addition & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(kcl-lib VERSION 0.10.4 LANGUAGES CXX)
project(kcl-lib VERSION 0.10.5 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
4 changes: 2 additions & 2 deletions cpp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
name = "kcl-lib-cpp"
publish = false
edition = "2021"
version = "0.10.4"
version = "0.10.5"

[lib]
crate-type = ["staticlib"]

[dependencies]
anyhow = "1.0"
cxx = "1.0"
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }

[build-dependencies]
cxx-build = "1.0"
4 changes: 2 additions & 2 deletions cpp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can use FetchContent to add KCL C++ Lib to your project.
FetchContent_Declare(
kcl-lib
GIT_REPOSITORY https://github.com/kcl-lang/lib.git
GIT_TAG v0.10.4
GIT_TAG v0.10.5
SOURCE_SUBDIR cpp
)
FetchContent_MakeAvailable(kcl-lib)
Expand All @@ -24,7 +24,7 @@ Or you can download the source code and add it to your project.
mkdir third_party
cd third_party
git clone https://github.com/kcl-lang/lib.git
git checkout v0.10.4
git checkout v0.10.5
```

```shell
Expand Down
2 changes: 1 addition & 1 deletion dotnet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ crate-type = ["cdylib"]
doc = false

[dependencies]
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
2 changes: 1 addition & 1 deletion dotnet/KclLib/KclLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PropertyGroup>
<AssemblyName>KclLib</AssemblyName>
<PackageId>KclLib</PackageId>
<Version>0.10.4</Version>
<Version>0.10.5</Version>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<RepositoryUrl>https://github.com/kcl-lang</RepositoryUrl>
Expand Down
2 changes: 1 addition & 1 deletion dotnet/examples/exec-program/exec-program.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KclLib" Version="0.10.4" />
<PackageReference Include="KclLib" Version="0.10.5" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion go/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/gofrs/flock"
)

const KCLVM_VERSION = "v0.10.4"
const KCLVM_VERSION = "v0.10.5"

func findPath(name string) string {
if path, err := exec.LookPath(name); err == nil {
Expand Down
Binary file modified go/lib/darwin-amd64/libkclvm_cli_cdylib.dylib
Binary file not shown.
Binary file modified go/lib/darwin-arm64/libkclvm_cli_cdylib.dylib
Binary file not shown.
Binary file modified go/lib/linux-amd64/libkclvm_cli_cdylib.so
Binary file not shown.
Binary file modified go/lib/linux-arm64/libkclvm_cli_cdylib.so
Binary file not shown.
Binary file modified go/lib/windows-amd64/kclvm_cli_cdylib.dll
Binary file not shown.
Binary file modified go/lib/windows-arm64/kclvm_cli_cdylib.dll
Binary file not shown.
6 changes: 3 additions & 3 deletions java/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ serde = { version = "1", features = ["derive"] }
once_cell = "1.19.0"
lazy_static = "1.4.0"

kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
2 changes: 1 addition & 1 deletion java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This way you'll be able to import the above dependency to use the SDK.
<dependency>
<groupId>com.kcl</groupId>
<artifactId>kcl-lib</artifactId>
<version>0.10.4-SNAPSHOT</version>
<version>0.10.5-SNAPSHOT</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.kcl</groupId>
<artifactId>kcl-lib</artifactId>
<version>0.10.4-SNAPSHOT</version>
<version>0.10.5-SNAPSHOT</version>
<name>KCL Arifact Library for Java</name>
<description>
KCL is an open-source constraint-based record and functional language mainly
Expand Down
6 changes: 5 additions & 1 deletion java/src/test/java/com/kcl/ParseFileTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.kcl;

import java.nio.file.Path;
import java.nio.file.Paths;

import org.junit.Assert;
import org.junit.Test;

Expand All @@ -10,7 +13,8 @@
public class ParseFileTest {
@Test
public void testParseFile() throws Exception {
ParseFile_Args args = ParseFile_Args.newBuilder().setPath("./src/test_data/parse/main.k").build();
Path path = Paths.get("src", "test_data", "parse", "main.k");
ParseFile_Args args = ParseFile_Args.newBuilder().setPath(path.toString()).build();

API apiInstance = new API();
ParseFile_Result result = apiInstance.parseFile(args);
Expand Down
6 changes: 5 additions & 1 deletion java/src/test/java/com/kcl/ParseProgramTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.kcl;

import java.nio.file.Path;
import java.nio.file.Paths;

import org.junit.Assert;
import org.junit.Test;

Expand All @@ -12,7 +15,8 @@
public class ParseProgramTest {
@Test
public void testParseProgram() throws Exception {
ParseProgram_Args args = ParseProgram_Args.newBuilder().addPaths("./src/test_data/parse/main.k").build();
Path path = Paths.get("src", "test_data", "parse", "main.k");
ParseProgram_Args args = ParseProgram_Args.newBuilder().addPaths(path.toString()).build();

API apiInstance = new API();
ParseProgram_Result result = apiInstance.parseProgram(args);
Expand Down
6 changes: 3 additions & 3 deletions kotlin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ serde = { version = "1", features = ["derive"] }
once_cell = "1.19.0"
lazy_static = "1.4.0"

kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
2 changes: 1 addition & 1 deletion kotlin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This way you'll be able to import the above dependency to use the SDK.
<dependency>
<groupId>com.kcl</groupId>
<artifactId>kcl-lib-kotlin</artifactId>
<version>0.10.4-SNAPSHOT</version>
<version>0.10.5-SNAPSHOT</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion kotlin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.kcl</groupId>
<artifactId>kcl-lib-kotlin</artifactId>
<version>0.10.4-SNAPSHOT</version>
<version>0.10.5-SNAPSHOT</version>
<name>KCL Arifact Library for Kotlin</name>
<description>
KCL is an open-source constraint-based record and functional language mainly
Expand Down
3 changes: 2 additions & 1 deletion kotlin/src/test/kotlin/com/kcl/ParseFileTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import com.kcl.api.API
import com.kcl.api.parseFileArgs
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.assertEquals
import java.nio.file.Paths

class ParseFileTest {
companion object {
private const val TEST_FILE = "./src/test_data/parse/main.k"
private val TEST_FILE = Paths.get("src", "test_data", "parse", "main.k").toString()
}

@Test
Expand Down
3 changes: 2 additions & 1 deletion kotlin/src/test/kotlin/com/kcl/ParseProgramTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import com.kcl.api.API
import com.kcl.api.parseProgramArgs
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.assertEquals
import java.nio.file.Paths

class ParseProgramTest {
companion object {
private const val TEST_FILE = "./src/test_data/parse/main.k"
private val TEST_FILE = Paths.get("src", "test_data", "parse", "main.k").toString()
}

@Test
Expand Down
4 changes: 2 additions & 2 deletions lua/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kcl-lib-lua"
version = "0.10.4"
version = "0.10.5"
edition = "2021"
publish = false

Expand All @@ -16,4 +16,4 @@ mlua = { version = "0.9", features = [
"module",
"macros",
], default-features = false, optional = true }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package = "kcl_lib"
version = "0.10.4-1"
version = "0.10.5-1"

source = {
url = "git+https://github.com/kcl-lang/kcl",
Expand Down
2 changes: 1 addition & 1 deletion nodejs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version = "0.0.0"
crate-type = ["cdylib"]

[dependencies]
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
napi = { version = "2.12.2", default-features = false, features = ["napi4"] }
napi-derive = "2.12.2"
Expand Down
2 changes: 1 addition & 1 deletion nodejs/examples/exec-program/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"dist/"
],
"dependencies": {
"kcl-lib": "0.10.4"
"kcl-lib": "0.10.5"
}
}
4 changes: 2 additions & 2 deletions nodejs/npm/darwin-arm64/package-lock.json

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

2 changes: 1 addition & 1 deletion nodejs/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-darwin-arm64",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.10.4",
"version": "0.10.5",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-darwin-x64",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.10.4",
"version": "0.10.5",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-linux-arm64-gnu",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.10.4",
"version": "0.10.5",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-linux-x64-gnu",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.10.4",
"version": "0.10.5",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-win32-arm64-msvc",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.10.4",
"version": "0.10.5",
"os": [
"win32"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-win32-x64-msvc",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.10.4",
"version": "0.10.5",
"os": [
"win32"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kcl-lib",
"version": "0.10.4",
"version": "0.10.5",
"repository": "https://github.com/kcl-lang/lib",
"license": "Apache-2.0",
"main": "index.js",
Expand Down
4 changes: 2 additions & 2 deletions python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "kcl-python-lib"
version = "0.10.4"
version = "0.10.5"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib"]

[dependencies]
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.4" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
pyo3 = "0.20.1"
Loading

0 comments on commit bb4316e

Please sign in to comment.