Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
0thernet committed Apr 30, 2024
1 parent d529de8 commit cd1e6ee
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 150 deletions.
38 changes: 31 additions & 7 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,39 @@
## Development
# Development

## Releasing the SDK

(in the context of a new PR for this version)

```sh
make sync # sync codegen
make sync-version # after updating version in scripts/sync_version
```

(make sure CI passes, do some spot checking e.g. in examples/basic.py)

```sh
make clean # clean
make dist # build
make publish # publish
```

(validate this version)

```sh
cd examples/notebooks
make ensure # if you're here for the first time
make update # upgrade to the latest substrate version
make basic # run the basic notebook
```

## Setting up local development

```sh
# install deps
make develop

# install lint pre-commit hook
poetry run pre-commit install
# sync codegen
make sync
# create a `.pypirc` in your home dir to publish (see `.pypirc.example`)
make publish
```

- create a `.pypirc` in your home dir to publish (see `.pypirc.example`)
144 changes: 3 additions & 141 deletions examples/notebooks/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "substrate"
version = "120240430.0.0"
version = "120240430.0.1"
description = "Substrate Python SDK"
readme = "README.md"
authors = [ "vprtwn <[email protected]>", "liamgriffiths <[email protected]>",]
Expand Down
2 changes: 1 addition & 1 deletion scripts/sync_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def ok(message):
print("\033[32m✓\033[0m", message)


SDK_VERSION = "1.0.0"
SDK_VERSION = "1.0.1"

# Update version
version_path = "substrate/GEN_VERSION"
Expand Down

0 comments on commit cd1e6ee

Please sign in to comment.