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

Commit

Permalink
Release/0.0.3 (#5)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
camfairchild authored Jul 11, 2023
1 parent 27b0554 commit cbfcbd1
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 7 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 0.0.3 / 2023-07-06

## What's Changed


* add test mocks to package by @camfairchild in [60eec82d](https://github.com/opentensor/bittensor-wallet/pull/5/commits/60eec82d2ca1eeb888a1d89965d3497e21df1a54)
* bump cryptography req to 41.0.0 by @camfairchild in [c110ca87](https://github.com/opentensor/bittensor-wallet/pull/5/commits/c110ca87c0f51541b8cb9da5f612171912402a5c)
* fix script typos and error message by @camfairchild in [a18e1b9^..92dc0963](https://github.com/opentensor/bittensor-wallet/pull/5/files/c110ca87c0f51541b8cb9da5f612171912402a5c..92dc09633174ba7e84c25f4dc16762c80b6a9bd2)

**Full Changelog**: https://github.com/opentensor/bittensor-wallet/compare/v0.0.2...v0.0.3


## 0.0.2 / 2023-07-05

## What's Changed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The purpose of this repo is to separate the concern of keyfile management from t
# Installation
This package can be installed from [PyPi.org](https://pypi.org/project/bittensor-wallet/):
```bash
pip install bittensor-wallet==0.0.2
pip install bittensor-wallet==0.0.3
```
or via this repo (using [gh-cli](https://cli.github.com/)):
```bash
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.2
0.0.3
2 changes: 1 addition & 1 deletion bittensor_wallet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

__version__ = "0.0.2"
__version__ = "0.0.3"
__ss58_format__ = 42 # Bittensor ss58 format

import argparse
Expand Down
21 changes: 21 additions & 0 deletions bittensor_wallet/mock/utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from . import MockWallet
from ..keypair_impl import Keypair


def get_mock_wallet(coldkey: "Keypair" = None, hotkey: "Keypair" = None):
wallet = MockWallet(
name = 'mock_wallet',
hotkey = 'mock',
path = '/tmp/mock_wallet',
)

if not coldkey:
coldkey = Keypair.create_from_mnemonic(Keypair.generate_mnemonic())
if not hotkey:
hotkey = Keypair.create_from_mnemonic(Keypair.generate_mnemonic())

wallet.set_coldkey(coldkey, encrypt=False, overwrite=True)
wallet.set_coldkeypub(coldkey, encrypt=False, overwrite=True)
wallet.set_hotkey(hotkey, encrypt=False, overwrite=True)

return wallet
2 changes: 1 addition & 1 deletion requirements/prod.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ansible-vault==2.1.0
cryptography==39.0.0
cryptography==41.0.0
bittensor-config==0.0.0
pathlib==1.0.1
substrate-interface==1.5.0
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/release.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#
# In this script you are going to find the process of releasing bittensor.
# In this script you are going to find the process of releasing bittensor_wallet.
#
# This script needs:
# - An existing VERSION file
Expand Down
4 changes: 2 additions & 2 deletions scripts/release/versioning.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ while [[ $# -gt 0 ]]; do
done

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

VERSION=$(cat VERSION)
CODE_WITH_VERSION='bittensor/__init__.py'
CODE_WITH_VERSION='bittensor_wallet/__init__.py'

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

0 comments on commit cbfcbd1

Please sign in to comment.