Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.1.3 #173

Merged
merged 4 commits into from
Jan 18, 2023
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
54 changes: 27 additions & 27 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ members = [
]

[workspace.package]
version = "0.1.2"
phil-opp marked this conversation as resolved.
Show resolved Hide resolved
version = "0.1.3"

[workspace.dependencies]
dora-node-api = { version = "0.1.2", path = "apis/rust/node", default-features = false }
dora-operator-api = { version = "0.1.2", path = "apis/rust/operator", default-features = false }
dora-core = { version = "0.1.2", path = "libraries/core" }
dora-node-api = { version = "0.1.3", path = "apis/rust/node", default-features = false }
dora-operator-api = { version = "0.1.3", path = "apis/rust/operator", default-features = false }
dora-core = { version = "0.1.3", path = "libraries/core" }

[package]
name = "dora-examples"
Expand Down
3 changes: 2 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Changelog

## Unreleased
## v0.1.3 (2023-01-18)

* Package `DoraStatus` into dora python package: https://github.com/dora-rs/dora/pull/172
* Force removal of Pyo3 Object to avoid memory leak: https://github.com/dora-rs/dora/pull/168
* Bump tokio from 1.21.2 to 1.23.1: https://github.com/dora-rs/dora/pull/171
* Create a changelog file: https://github.com/dora-rs/dora/pull/174

## v0.1.2 (2022-12-15)

Expand Down
2 changes: 1 addition & 1 deletion apis/python/node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
version = "0.1.2"
version.workspace = true
name = "dora-node-api-python"
edition = "2021"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion apis/python/node/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["maturin>=0.13.2,<0.14"]
requires = ["maturin>=0.13.2"]
build-backend = "maturin"

[project]
Expand Down
9 changes: 7 additions & 2 deletions binaries/cli/src/template/rust/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use std::{
path::{Path, PathBuf},
};

const VERSION: &str = env!("CARGO_PKG_VERSION");
pub fn create(args: crate::CommandNew) -> eyre::Result<()> {
let crate::CommandNew {
kind,
Expand Down Expand Up @@ -81,7 +82,9 @@ fn create_operator(name: String, path: Option<PathBuf>) -> Result<(), eyre::ErrR
fs::create_dir(&src)
.with_context(|| format!("failed to create directory `{}`", src.display()))?;

let cargo_toml = CARGO_TOML.replace("___name___", &name);
let cargo_toml = CARGO_TOML
.replace("___name___", &name)
.replace("___version___", &VERSION);
haixuanTao marked this conversation as resolved.
Show resolved Hide resolved
let cargo_toml_path = root.join("Cargo.toml");
fs::write(&cargo_toml_path, &cargo_toml)
.with_context(|| format!("failed to write `{}`", cargo_toml_path.display()))?;
Expand Down Expand Up @@ -117,7 +120,9 @@ fn create_custom_node(name: String, path: Option<PathBuf>) -> Result<(), eyre::E
fs::create_dir(&src)
.with_context(|| format!("failed to create directory `{}`", src.display()))?;

let cargo_toml = CARGO_TOML.replace("___name___", &name);
let cargo_toml = CARGO_TOML
.replace("___name___", &name)
.replace("___version___", &VERSION);
let cargo_toml_path = root.join("Cargo.toml");
fs::write(&cargo_toml_path, &cargo_toml)
.with_context(|| format!("failed to write `{}`", cargo_toml_path.display()))?;
Expand Down
2 changes: 1 addition & 1 deletion binaries/cli/src/template/rust/node/Cargo-template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
dora-node-api = { git = "https://github.com/dora-rs/dora.git", tag = "v0.1.2" }
dora-node-api = { git = "https://github.com/dora-rs/dora.git", tag = "v___version___" }
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ edition = "2021"
crate-type = ["cdylib"]

[dependencies]
dora-operator-api = { git = "https://github.com/dora-rs/dora.git", tag = "v0.1.2" }
dora-operator-api = { git = "https://github.com/dora-rs/dora.git", tag = "v___version___" }