diff --git a/pyproject.toml b/pyproject.toml index 02b1edf..981285b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "substrate" -version = "120240502.0.1" +version = "120240502.0.2" description = "Substrate Python SDK" readme = "README.md" authors = [ "vprtwn ", "liamgriffiths ",] diff --git a/scripts/sync_version.py b/scripts/sync_version.py index b8029c0..1a67191 100644 --- a/scripts/sync_version.py +++ b/scripts/sync_version.py @@ -10,7 +10,7 @@ def ok(message): print("\033[32m✓\033[0m", message) -SDK_VERSION = "1.0.1" +SDK_VERSION = "1.0.2" # Update version version_path = "substrate/GEN_VERSION" @@ -29,3 +29,12 @@ def ok(message): with open(toml_path, "w") as f: toml.dump(toml_content, f) ok(f"Updated version to {new_version} in {toml_path}") + +# Write the API Version (as a formatted date) to the following. This is used by the +# SDK client to select which API version to use and should be in sync with the types +# used in the SDK. +version_file = "substrate/_version.py" +with open(version_file, "w") as f: + version_file_content = f"__version__ = \"{new_version}\"" + f.write(version_file_content) + ok(f"Updated {version_file} content to {version_file_content}") diff --git a/substrate/_version.py b/substrate/_version.py index fb76ca0..d2b8f93 100644 --- a/substrate/_version.py +++ b/substrate/_version.py @@ -1 +1 @@ -__version__ = "020240311.0.1" +__version__ = "120240502.0.2" \ No newline at end of file