From 69ee8faa0d741b99abee18b07ca5a2d7c203f5ba Mon Sep 17 00:00:00 2001 From: Vincent Emonet Date: Mon, 20 Nov 2023 11:52:24 +0100 Subject: [PATCH] fix bump script and bump to 0.0.3 --- README.md | 4 ++-- cli/Cargo.toml | 6 +++--- docs/introduction.md | 4 ++++ docs/use_javascript.md | 2 ++ docs/use_python.md | 2 ++ docs/use_rust.md | 2 ++ js/Cargo.toml | 4 ++-- lib/Cargo.toml | 2 +- lib/src/lib.rs | 4 ++++ python/Cargo.toml | 4 ++-- scripts/bump.sh | 3 ++- 11 files changed, 26 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index e4c5a5a..fe6bbb2 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # ✍️ Nanopub cross-platform toolkit ⚔️ -[![Latest Version](https://img.shields.io/crates/v/nanopub.svg)](https://crates.io/crates/nanopub) +[![crates.io](https://img.shields.io/crates/v/nanopub.svg)](https://crates.io/crates/nanopub) [![Released API docs](https://docs.rs/nanopub/badge.svg)](https://docs.rs/nanopub) [![PyPI](https://img.shields.io/pypi/v/nanopub-sign)](https://pypi.org/project/nanopub-sign/) -[![npm](https://img.shields.io/npm/v/nanopub/sign)](https://www.npmjs.com/package/nanopub/sign) +[![npm](https://img.shields.io/npm/v/@nanopub/sign)](https://www.npmjs.com/package/@nanopub/sign) [![Build](https://github.com/vemonet/nanopub-rs/actions/workflows/build.yml/badge.svg)](https://github.com/vemonet/nanopub-rs/actions/workflows/build.yml) [![Lint and Test](https://github.com/vemonet/nanopub-rs/actions/workflows/test.yml/badge.svg)](https://github.com/vemonet/nanopub-rs/actions/workflows/test.yml) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 20411eb..5d9f516 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nanopub-cli" -version = "0.0.2" +version = "0.0.3" description = """ A cross-platform CLI tool written in Rust to sign Nanopublications. """ @@ -14,5 +14,5 @@ homepage.workspace = true categories.workspace = true [dependencies] -nanopub = { version = "0.0.2", path = "../lib" } -clap = { version = "0.0.2", features = ["derive"] } +nanopub = { version = "0.0.3", path = "../lib" } +clap = { version = "4.4.8", features = ["derive"] } diff --git a/docs/introduction.md b/docs/introduction.md index cffe54f..8c7c25f 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -1,5 +1,9 @@ # Introduction +[![crates.io](https://img.shields.io/crates/v/nanopub.svg)](https://crates.io/crates/nanopub) +[![PyPI](https://img.shields.io/pypi/v/nanopub-sign)](https://pypi.org/project/nanopub-sign/) +[![npm](https://img.shields.io/npm/v/@nanopub/sign)](https://www.npmjs.com/package/@nanopub/sign) + This project aims to provide a comprehensive cross-platform toolkit to sign, publish, and check **[Nanopublications](https://nanopub.net)**. Sign and publish providing a private RSA key string, or a `profile.yml` file. Check the validity of signed or unsigned Nanopublications. diff --git a/docs/use_javascript.md b/docs/use_javascript.md index 2957375..0b4cdaa 100644 --- a/docs/use_javascript.md +++ b/docs/use_javascript.md @@ -1,5 +1,7 @@ # 🟨 Use from JavaScript +[![npm](https://img.shields.io/npm/v/@nanopub/sign)](https://www.npmjs.com/package/@nanopub/sign) + You can easily publish Nanopubs from JavaScript, or TypeScript. ```admonish warning title="Early stage" diff --git a/docs/use_python.md b/docs/use_python.md index 5b71bf4..864eb69 100644 --- a/docs/use_python.md +++ b/docs/use_python.md @@ -1,5 +1,7 @@ # 🐍 Use from Python +[![PyPI](https://img.shields.io/pypi/v/nanopub-sign)](https://pypi.org/project/nanopub-sign/) + You can easily publish Nanopubs from Python. ```admonish warning title="Early stage" diff --git a/docs/use_rust.md b/docs/use_rust.md index 7589f89..81843fd 100644 --- a/docs/use_rust.md +++ b/docs/use_rust.md @@ -1,5 +1,7 @@ # 🦀 Use from Rust +[![crates.io](https://img.shields.io/crates/v/nanopub.svg)](https://crates.io/crates/nanopub) + You can use the Rust crate to easily sign, publish, or check a Nanopub: ```rust diff --git a/js/Cargo.toml b/js/Cargo.toml index 1b271c1..829b665 100644 --- a/js/Cargo.toml +++ b/js/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nanopub-js" -version = "0.0.2" +version = "0.0.3" description = "JavaScript bindings for the Nanopub rust toolkit" repository = "https://github.com/vemonet/nanopub-rs/tree/main/js" authors.workspace = true @@ -15,7 +15,7 @@ categories.workspace = true crate-type = ["cdylib"] [dependencies] -nanopub = { version = "0.0.2", path = "../lib" } +nanopub = { version = "0.0.3", path = "../lib" } wasm-bindgen = "0.2" js-sys = "0.3" console_error_panic_hook = "0.1" diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 233ebe2..4875ca8 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nanopub" -version = "0.0.2" +version = "0.0.3" description = """ A cross-platform Rust library to sign Nanopublications, with bindings to Python and JS (wasm) """ diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 32dc161..3665542 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -12,6 +12,10 @@ mod constants; pub mod error; /// A module to sign, publish, or check [Nanopublications](https://nanopub.net). /// +/// [![crates.io](https://img.shields.io/crates/v/nanopub.svg)](https://crates.io/crates/nanopub) +/// [![PyPI](https://img.shields.io/pypi/v/nanopub-sign)](https://pypi.org/project/nanopub-sign/) +/// [![npm](https://img.shields.io/npm/v/@nanopub/sign)](https://www.npmjs.com/package/@nanopub/sign) +/// /// 📖 Checkout the [documentation website](https://vemonet.github.io/nanopub-rs) for more informations /// /// ## Usage diff --git a/python/Cargo.toml b/python/Cargo.toml index c77211e..4fefb91 100644 --- a/python/Cargo.toml +++ b/python/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nanopub-sign" -version = "0.0.2" +version = "0.0.3" description = "Python bindings for the Nanopub rust toolkit" repository = "https://github.com/vemonet/nanopub-rs/tree/main/python" authors.workspace = true @@ -16,5 +16,5 @@ name = "nanopub_sign" crate-type = ["cdylib"] [dependencies] -nanopub = { version = "0.0.2", path = "../lib" } +nanopub = { version = "0.0.3", path = "../lib" } pyo3 = { version = "0.20", features = ["extension-module"] } diff --git a/scripts/bump.sh b/scripts/bump.sh index d3c7308..1361f3e 100755 --- a/scripts/bump.sh +++ b/scripts/bump.sh @@ -17,7 +17,8 @@ files=( for file in "${files[@]}"; do if [ -f "$file" ]; then - sed -i "s/version = \"[0-9]*\.[0-9]*\.[0-9]*\"/version = \"$new_version\"/" "$file" + sed -i "s/^version = \"[0-9]*\.[0-9]*\.[0-9]*\"\$/version = \"$new_version\"/" "$file" + sed -i "s/nanopub = { version = \"[0-9]*\.[0-9]*\.[0-9]*\"/nanopub = { version = \"$new_version\"/" "$file" echo "🏷️ Updated version in $file" else echo "⚠️ File not found: $file"