Skip to content

Commit

Permalink
fix bump script and bump to 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Nov 20, 2023
1 parent 6822464 commit 69ee8fa
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
6 changes: 3 additions & 3 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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.
"""
Expand All @@ -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"] }
4 changes: 4 additions & 0 deletions docs/introduction.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 2 additions & 0 deletions docs/use_javascript.md
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 2 additions & 0 deletions docs/use_python.md
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 2 additions & 0 deletions docs/use_rust.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions js/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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)
"""
Expand Down
4 changes: 4 additions & 0 deletions lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"] }
3 changes: 2 additions & 1 deletion scripts/bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 69ee8fa

Please sign in to comment.