Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: incorrect log line, single source of truth for version number (pyproject.toml) #368

Merged
merged 3 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion masa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
# DEALINGS IN THE SOFTWARE.

# Define the code version for miners / validators. This must match weights_version on the subnet! If not, validators won't be able to set weights, and miners will get a warning.
__version__ = "1.5.0"
from importlib.metadata import version

__version__ = version("masa")
version_split = __version__.split(".")
__spec_version__ = (
(100 * int(version_split[0]))
Expand Down
4 changes: 2 additions & 2 deletions masa/base/neuron.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ async def initialize(self, config=None):

if self.spec_version < weights_version:
bt.logging.warning(
f"🟡 Code is outdated based on subnet requirements! Required: {weights_version}, Current: {self.spec_version} (v{__version__}). Please update your code to the latest release!"
f"🟡 Code is outdated! Current: {self.spec_version}, Required: {weights_version}. Please update your code to the latest release!"
)
else:
bt.logging.success(
f"🟢 Code is up to date! Current: {self.spec_version} (v{__version__}), Required: {weights_version}"
f"🟢 Code is up to date! Current: {self.spec_version}, Required: {weights_version}"
)

# Each miner gets a unique identity (UID) in the network for differentiation.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages = ["masa"]

[project]
name = "masa"
version = "1.5.3"
version = "1.5.4"
description = "bittensor subnet for masa protocol"
authors = [
{ name = "masa.ai", email = "hello@masa.ai" }
Expand Down
Loading