Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit cbfcbd1

Browse files
authored
Release/0.0.3 (#5)
* Fix packaging (#1) * use find packages * bump version * add test mocks to package * fix version file * bump cryptography req * fix script err msg * fix scripts typos * bump version * Add changelog
1 parent 27b0554 commit cbfcbd1

File tree

8 files changed

+40
-7
lines changed

8 files changed

+40
-7
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## 0.0.3 / 2023-07-06
4+
5+
## What's Changed
6+
7+
8+
* add test mocks to package by @camfairchild in [60eec82d](https://github.com/opentensor/bittensor-wallet/pull/5/commits/60eec82d2ca1eeb888a1d89965d3497e21df1a54)
9+
* bump cryptography req to 41.0.0 by @camfairchild in [c110ca87](https://github.com/opentensor/bittensor-wallet/pull/5/commits/c110ca87c0f51541b8cb9da5f612171912402a5c)
10+
* fix script typos and error message by @camfairchild in [a18e1b9^..92dc0963](https://github.com/opentensor/bittensor-wallet/pull/5/files/c110ca87c0f51541b8cb9da5f612171912402a5c..92dc09633174ba7e84c25f4dc16762c80b6a9bd2)
11+
12+
**Full Changelog**: https://github.com/opentensor/bittensor-wallet/compare/v0.0.2...v0.0.3
13+
14+
315
## 0.0.2 / 2023-07-05
416

517
## What's Changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The purpose of this repo is to separate the concern of keyfile management from t
77
# Installation
88
This package can be installed from [PyPi.org](https://pypi.org/project/bittensor-wallet/):
99
```bash
10-
pip install bittensor-wallet==0.0.2
10+
pip install bittensor-wallet==0.0.3
1111
```
1212
or via this repo (using [gh-cli](https://cli.github.com/)):
1313
```bash

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.0.2
1+
0.0.3

bittensor_wallet/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1818
# DEALINGS IN THE SOFTWARE.
1919

20-
__version__ = "0.0.2"
20+
__version__ = "0.0.3"
2121
__ss58_format__ = 42 # Bittensor ss58 format
2222

2323
import argparse

bittensor_wallet/mock/utils.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from . import MockWallet
2+
from ..keypair_impl import Keypair
3+
4+
5+
def get_mock_wallet(coldkey: "Keypair" = None, hotkey: "Keypair" = None):
6+
wallet = MockWallet(
7+
name = 'mock_wallet',
8+
hotkey = 'mock',
9+
path = '/tmp/mock_wallet',
10+
)
11+
12+
if not coldkey:
13+
coldkey = Keypair.create_from_mnemonic(Keypair.generate_mnemonic())
14+
if not hotkey:
15+
hotkey = Keypair.create_from_mnemonic(Keypair.generate_mnemonic())
16+
17+
wallet.set_coldkey(coldkey, encrypt=False, overwrite=True)
18+
wallet.set_coldkeypub(coldkey, encrypt=False, overwrite=True)
19+
wallet.set_hotkey(hotkey, encrypt=False, overwrite=True)
20+
21+
return wallet

requirements/prod.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ansible-vault==2.1.0
2-
cryptography==39.0.0
2+
cryptography==41.0.0
33
bittensor-config==0.0.0
44
pathlib==1.0.1
55
substrate-interface==1.5.0

scripts/release/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
#
4-
# In this script you are going to find the process of releasing bittensor.
4+
# In this script you are going to find the process of releasing bittensor_wallet.
55
#
66
# This script needs:
77
# - An existing VERSION file

scripts/release/versioning.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ while [[ $# -gt 0 ]]; do
3434
done
3535

3636
if [[ $VERSION_TYPE != "major" && $VERSION_TYPE != "minor" && $VERSION_TYPE != "patch" && $VERSION_TYPE != "rc" ]]; then
37-
echo_error "Incorrect version type (-V|--version). Version types accepted: {major, minor, patch}"
37+
echo_error "Incorrect update type (-U|--update). Update types accepted: {major, minor, patch}"
3838
exit 1
3939
fi
4040

4141
VERSION=$(cat VERSION)
42-
CODE_WITH_VERSION='bittensor/__init__.py'
42+
CODE_WITH_VERSION='bittensor_wallet/__init__.py'
4343

4444
MAJOR=$(awk -F. '{print $1}' <<< $VERSION)
4545
MINOR=$(awk -F. '{print $2}' <<< $VERSION)

0 commit comments

Comments
 (0)