From f41da221e3365d6361088176948410da40f912a1 Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Tue, 12 Nov 2024 17:49:45 -0500 Subject: [PATCH 1/8] Release 2.1.0 (#65) * add PasswordError and bound to python * formatter * add `from bittensor_wallet.errors import PasswordError` * return encrypted password, remove debug * [fix] Use user home directory for wallet path (#59) * Updates local -> environment vars in changelog * closes GH #51 (#56) * [fix] Use userhome for default wallet path ~ (#57) * use userhome for default path ~ * bump ver * expand path on init and use as _path --------- Co-authored-by: ibraheem-opentensor <165814940+ibraheem-opentensor@users.noreply.github.com> Co-authored-by: ibraheem-opentensor Co-authored-by: Cameron Fairchild * Fix ruff (#62) * add rustup to CI (#63) * add rustup to CI * make rustup accept all * add to path * Update CHANGELOG.MD * Update CHANGELOG.MD * fix changelog * bump ver * bump cargo toml ver * Update CHANGELOG.MD --------- Co-authored-by: Roman Co-authored-by: Roman <167799377+roman-opentensor@users.noreply.github.com> Co-authored-by: ibraheem-opentensor <165814940+ibraheem-opentensor@users.noreply.github.com> Co-authored-by: ibraheem-opentensor --- CHANGELOG.MD | 11 +++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- bittensor_wallet/__init__.py | 2 +- pyproject.toml | 2 +- 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index e2032af..07ffeff 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,5 +1,16 @@ # Changelog +## 2.1.0 /2024-11-12 + +## What's Changed + +* Fix hot/coldkey passwords in env by @roman-opentensor in https://github.com/opentensor/btwallet/pull/55 +* Fix wallet paths outside userhome by @camfairchild in https://github.com/opentensor/btwallet/pull/59 +* fix https://github.com/opentensor/btwallet/issues/51 by @camfairchild in https://github.com/opentensor/btwallet/pull/56 +* password fixes and new PasswordError by @roman-opentensor + +**Full Changelog**: https://github.com/opentensor/btwallet/compare/v2.0.2...v2.1.0 + ## 2.0.2 /2024-10-10 ## What's Changed diff --git a/Cargo.lock b/Cargo.lock index 9ab102c..9ec49dc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -352,7 +352,7 @@ checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" [[package]] name = "bittensor_wallet" -version = "2.0.3" +version = "2.1.0" dependencies = [ "ansible-vault", "base64 0.22.1", diff --git a/Cargo.toml b/Cargo.toml index e75f16c..3ee74de 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bittensor_wallet" -version = "2.0.3" +version = "2.1.0" edition = "2021" [lib] diff --git a/bittensor_wallet/__init__.py b/bittensor_wallet/__init__.py index b58bbfe..e8a47c3 100644 --- a/bittensor_wallet/__init__.py +++ b/bittensor_wallet/__init__.py @@ -13,4 +13,4 @@ wallet as wallet, ) -__version__ = "2.0.0" +__version__ = "2.1.0" diff --git a/pyproject.toml b/pyproject.toml index ebc9d2d..2ba4f6d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "bittensor-wallet" -version = "2.0.3" +version = "2.1.0" description = "" readme = "README.md" license = {file = "LICENSE"} From 48512440714ff619bf3cfebe8ae9f11f791724fe Mon Sep 17 00:00:00 2001 From: Roman <167799377+roman-opentensor@users.noreply.github.com> Date: Mon, 18 Nov 2024 15:24:33 -0800 Subject: [PATCH 2/8] Update CHANGELOG.MD --- CHANGELOG.MD | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 07ffeff..232dcd0 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,5 +1,20 @@ # Changelog +## 2.1.1 /2024-11-18 + +## What's Changed +* Fix ruff by @camfairchild in https://github.com/opentensor/btwallet/pull/62 +* add rustup to CI by @camfairchild in https://github.com/opentensor/btwallet/pull/63 +* Fix `~/` in wallet path by @roman-opentensor in https://github.com/opentensor/btwallet/pull/67 +* Removes ansible as requirement by @thewhaleking in https://github.com/opentensor/btwallet/pull/68 +* fix: Prevent infinite loop when password is not strong enough by @Ham3798 in https://github.com/opentensor/btwallet/pull/60 +* Add base and mro updating logic before add Wallet Keypair class to the main_module by @roman-opentensor in https://github.com/opentensor/btwallet/pull/69 + +## New Contributors +* @Ham3798 made their first contribution in https://github.com/opentensor/btwallet/pull/60 + +**Full Changelog**: https://github.com/opentensor/btwallet/compare/v2.1.0...v2.1.1 + ## 2.1.0 /2024-11-12 ## What's Changed From 11eb7bdd26e45eb0565cecc21c831f27f8c8b788 Mon Sep 17 00:00:00 2001 From: Roman <167799377+roman-opentensor@users.noreply.github.com> Date: Mon, 18 Nov 2024 15:48:54 -0800 Subject: [PATCH 3/8] Update Cargo.toml (change pyo3 version) --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 8708aa2..3193a38 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ crate-type = ["cdylib"] [dependencies] sp-core = "34.0.0" -pyo3 = { version = "0.22.6", features = ["gil-refs"] } +pyo3 = { version = "0.22.4", features = ["gil-refs"] } bip39 = { version = "2.0.0", features = ["rand"] } rand = "0.8.5" hex = "0.4.3" From c97981e8fb56cd5f5180d4fe479922ed52601485 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Mon, 25 Nov 2024 14:49:04 +0200 Subject: [PATCH 4/8] Removes ansible from requirements. But the second requirements. --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7152b6f..ccab086 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,6 @@ dependencies = [ "eth-utils<2.3.0", "password_strength", "cryptography~=43.0.1", - "ansible~=6.7", "ansible_vault~=2.1", "munch~=2.5.0", "rich", From 4e8442986e8023b0be24bf69347d23e397ea700a Mon Sep 17 00:00:00 2001 From: ibraheem-opentensor Date: Tue, 26 Nov 2024 15:19:40 -0800 Subject: [PATCH 5/8] Bumps version and changelog --- CHANGELOG.MD | 7 +++++++ pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 232dcd0..4b84bf1 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,5 +1,12 @@ # Changelog +## 2.1.2 /2024-11-27 + +## What's Changed +* Removes ansible from requirements. But the second requirements. by @thewhaleking in https://github.com/opentensor/btwallet/pull/74 + +**Full Changelog**: https://github.com/opentensor/btwallet/compare/v2.1.1...v2.1.2 + ## 2.1.1 /2024-11-18 ## What's Changed diff --git a/pyproject.toml b/pyproject.toml index ccab086..3931d86 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "bittensor-wallet" -version = "2.1.1" +version = "2.1.2" description = "" readme = "README.md" license = {file = "LICENSE"} From 0c6c1cb66db65261e1fc6cff3029efc283300252 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Wed, 27 Nov 2024 20:36:44 +0200 Subject: [PATCH 6/8] Bump versions. --- Cargo.toml | 2 +- bittensor_wallet/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3193a38..90ab141 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bittensor_wallet" -version = "2.1.0" +version = "2.1.2" edition = "2021" [lib] diff --git a/bittensor_wallet/__init__.py b/bittensor_wallet/__init__.py index e8a47c3..3e1b354 100644 --- a/bittensor_wallet/__init__.py +++ b/bittensor_wallet/__init__.py @@ -13,4 +13,4 @@ wallet as wallet, ) -__version__ = "2.1.0" +__version__ = "2.1.2" From f1f2d705f466da0a1584e07e65537e508b389a29 Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 27 Nov 2024 13:20:51 -0800 Subject: [PATCH 7/8] remove ansible --- Cargo.lock | 22 +++++++++++----------- pyproject.toml | 1 - requirements/dev.txt | 3 ++- requirements/prod.txt | 1 - 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9ec49dc..530109f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "Inflector" @@ -1756,9 +1756,9 @@ dependencies = [ [[package]] name = "pyo3" -version = "0.22.3" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15ee168e30649f7f234c3d49ef5a7a6cbf5134289bc46c29ff3155fa3221c225" +checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884" dependencies = [ "cfg-if", "indoc", @@ -1774,9 +1774,9 @@ dependencies = [ [[package]] name = "pyo3-build-config" -version = "0.22.3" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e61cef80755fe9e46bb8a0b8f20752ca7676dcc07a5277d8b7768c6172e529b3" +checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38" dependencies = [ "once_cell", "target-lexicon", @@ -1784,9 +1784,9 @@ dependencies = [ [[package]] name = "pyo3-ffi" -version = "0.22.3" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67ce096073ec5405f5ee2b8b31f03a68e02aa10d5d4f565eca04acc41931fa1c" +checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636" dependencies = [ "libc", "pyo3-build-config", @@ -1794,9 +1794,9 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.22.3" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2440c6d12bc8f3ae39f1e775266fa5122fd0c8891ce7520fa6048e683ad3de28" +checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453" dependencies = [ "proc-macro2", "pyo3-macros-backend", @@ -1806,9 +1806,9 @@ dependencies = [ [[package]] name = "pyo3-macros-backend" -version = "0.22.3" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1be962f0e06da8f8465729ea2cb71a416d2257dff56cbe40a70d3e62a93ae5d1" +checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe" dependencies = [ "heck", "proc-macro2", diff --git a/pyproject.toml b/pyproject.toml index ccab086..a176c44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,6 @@ dependencies = [ "eth-utils<2.3.0", "password_strength", "cryptography~=43.0.1", - "ansible_vault~=2.1", "munch~=2.5.0", "rich", "py-bip39-bindings==0.1.11", diff --git a/requirements/dev.txt b/requirements/dev.txt index 9fa4df0..f842346 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -17,4 +17,5 @@ ruff==0.4.7 aioresponses==0.7.6 factory-boy==3.3.0 maturin==1.7.0 -py-bip39-bindings==0.1.11 \ No newline at end of file +py-bip39-bindings==0.1.11 +ansible_vault~=2.1 diff --git a/requirements/prod.txt b/requirements/prod.txt index 95ddf2b..38cd8fb 100644 --- a/requirements/prod.txt +++ b/requirements/prod.txt @@ -4,6 +4,5 @@ eth-utils<2.3.0 substrate-interface~=1.7.9 password_strength cryptography~=43.0.1 -ansible_vault~=2.1 munch~=2.5.0 rich \ No newline at end of file From cd04388ebdd1d84b1f62373a29b915211d74042c Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 27 Nov 2024 13:30:17 -0800 Subject: [PATCH 8/8] add ansible_vault~=2.1 to project.toml --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index a176c44..d55c6ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,4 +74,5 @@ dev = [ "factory-boy==3.3.0", "maturin==1.7.0", "py-bip39-bindings==0.1.11", + "ansible_vault~=2.1" ] \ No newline at end of file