Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
## Quick start

```sh
mcpp new inference --template [email protected].1
mcpp new inference --template [email protected]
cd inference
mcpp run
```

```toml
[dependencies]
mcpplibs.mwrap.onnxruntime = "1.25.1.1"
mcpplibs.mwrap.onnxruntime = "1.25.1"
```

## Existing projects
Expand Down
4 changes: 2 additions & 2 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
## 快速开始

```sh
mcpp new inference --template [email protected].1
mcpp new inference --template [email protected]
cd inference
mcpp run
```

```toml
[dependencies]
mcpplibs.mwrap.onnxruntime = "1.25.1.1"
mcpplibs.mwrap.onnxruntime = "1.25.1"
```

## 已有项目
Expand Down
4 changes: 2 additions & 2 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ the C API retain their original namespaces and types.

```toml
[dependencies."mcpplibs.mwrap"]
onnxruntime = "1.25.1.1"
onnxruntime = "1.25.1"

[target.x86_64-linux-gnu]
cxx_runtime = "toolchain-coupled"
Expand All @@ -31,7 +31,7 @@ SDK builds and are not supplied by this version.
## Quickstart template

```sh
mcpp new inference --template [email protected].1
mcpp new inference --template [email protected]
cd inference
mcpp run
```
Expand Down
8 changes: 4 additions & 4 deletions mcpp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
[package]
namespace = "mcpplibs.mwrap"
name = "onnxruntime"
version = "1.25.1.1"
version = "1.25.1"
description = "ONNX Runtime 1.25.1 C/C++ APIs as C++ modules, with upstream names preserved"
license = "Apache-2.0"
authors = ["mcpp-community"]
repo = "https://github.com/mcpplibs/onnxruntime-m"

[package.metadata.mwrap]
wrapper-revision = 1
wrapper-revision = 0
upstream-version = "1.25.1"
upstream-repo = "https://github.com/microsoft/onnxruntime"

Expand All @@ -30,11 +30,11 @@ cxx_runtime = "toolchain-coupled"

[[runtime.deploy]]
from = "LICENSE"
to = "licenses/onnxruntime"
to = "licenses/onnxruntime/wrapper"

[[runtime.deploy]]
from = "NOTICE"
to = "licenses/onnxruntime"
to = "licenses/onnxruntime/wrapper"

[[runtime.deploy]]
from = "upstream/onnxruntime/README.md"
Expand Down
6 changes: 6 additions & 0 deletions tools/check_mwrap_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ def main():
assert any(Path(d['path']).name.startswith(('LICENSE', 'COPYING')) for d in documents)
deployed = {entry['from'] for entry in tomllib.loads((root / 'mcpp.toml').read_text(encoding='utf-8')).get('runtime', {}).get('deploy', [])}
assert {'LICENSE', 'NOTICE'} <= deployed
destinations = {entry['from']: entry['to'] for entry in
tomllib.loads((root / 'mcpp.toml').read_text(encoding='utf-8'))['runtime']['deploy']}
# The SDK provider owns licenses/onnxruntime/LICENSE (MIT).
# Keep wrapper Apache-2.0 and NOTICE in their own directory.
assert destinations['LICENSE'] == destinations['NOTICE'] == 'licenses/onnxruntime/wrapper'

for document in documents:
path = Path(document['path'])
assert not path.is_absolute() and '..' not in path.parts and path.parts[0] == 'upstream'
Expand Down
Loading