Skip to content

Commit

Permalink
Rename ksoroban to komet (#31)
Browse files Browse the repository at this point in the history
* rename occurences

* rename directory

* rename ksoroban.py

* rename lemma file

* Set Version: 0.1.23

* Set Version: 0.1.24

---------

Co-authored-by: devops <[email protected]>
  • Loading branch information
bbyalcinkaya and devops authored Sep 3, 2024
1 parent 3f0de7d commit b6690a8
Show file tree
Hide file tree
Showing 44 changed files with 29 additions and 29 deletions.
6 changes: 3 additions & 3 deletions .cruft.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"checkout": null,
"context": {
"cookiecutter": {
"project_name": "ksoroban",
"project_slug": "ksoroban",
"package_name": "ksoroban",
"project_name": "komet",
"project_slug": "komet",
"package_name": "komet",
"version": "0.1.0",
"description": "K tooling for the Soroban platform",
"author_name": "Runtime Verification, Inc.",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
name: 'Integration Tests'
runs-on: [self-hosted, linux, normal]
env:
CONTAINER: ksoroban-integration-${{ github.sha }}
CONTAINER: komet-integration-${{ github.sha }}
steps:
- name: 'Check out code'
uses: actions/checkout@v3
Expand All @@ -61,7 +61,7 @@ jobs:
uses: ./.github/actions/with-docker
with:
container-name: ${CONTAINER}
- name: 'Build ksoroban'
- name: 'Build komet'
run: docker exec --user user ${CONTAINER} poetry install
- name: 'Build semantics'
run: docker exec --user user ${CONTAINER} make kdist-build
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ COV_ARGS :=

cov: cov-all

cov-%: TEST_ARGS += --cov=ksoroban --no-cov-on-fail --cov-branch --cov-report=term
cov-%: TEST_ARGS += --cov=komet --no-cov-on-fail --cov-branch --cov-report=term

cov-all: TEST_ARGS += --cov-report=html:cov-all-html $(COV_ARGS)
cov-all: test-all
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ksoroban
# komet


## Installation
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
mkdir -p $out
cp -r ./kdist-*/* $out/
makeWrapper ${komet-pyk}/bin/ksoroban $out/bin/ksoroban --prefix PATH : ${
makeWrapper ${komet-pyk}/bin/komet $out/bin/komet --prefix PATH : ${
prev.lib.makeBinPath [ k-framework.packages.${prev.system}.k ]
} --set KDIST_DIR $out
'';
Expand Down
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.23
0.1.24
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "ksoroban"
version = "0.1.23"
name = "komet"
version = "0.1.24"
description = "K tooling for the Soroban platform"
authors = [
"Runtime Verification, Inc. <[email protected]>",
]

[tool.poetry.scripts]
ksoroban = "ksoroban.ksoroban:main"
komet = "komet.komet:main"

[tool.poetry.plugins.kdist]
soroban-semantics = "ksoroban.kdist.plugin"
soroban-semantics = "komet.kdist.plugin"

[tool.poetry.dependencies]
python = "^3.10"
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/ksoroban/kasmer.py → src/komet/kasmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def build_soroban_contract(self, contract_path: Path, out_dir: Path | None = Non
contract_stem = self.contract_manifest(contract_path)['name']
contract_name = f'{contract_stem}.wasm'
if out_dir is None:
out_dir = Path(mkdtemp(f'ksoroban_{str(contract_path.stem)}'))
out_dir = Path(mkdtemp(f'komet_{str(contract_path.stem)}'))

run_process([str(self._soroban_bin), 'contract', 'build', '--out-dir', str(out_dir)], cwd=contract_path)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
```k
requires "soroban.md"
requires "cheatcodes.md"
requires "ksoroban-lemmas.md"
requires "komet-lemmas.md"
module KASMER-SYNTAX
imports WASM-TEXT-SYNTAX
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/ksoroban/ksoroban.py → src/komet/komet.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _exit_with_output(cp: CompletedProcess) -> None:


def _argument_parser() -> ArgumentParser:
parser = ArgumentParser(prog='ksoroban')
parser = ArgumentParser(prog='komet')
command_parser = parser.add_subparsers(dest='command', required=True)

run_parser = command_parser.add_parser('run', help='run a concrete test')
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
A quick example of a contract that can be ran with `ksoroban test`
A quick example of a contract that can be ran with `komet test`

You will need to have the stellar cli utils installed:
https://developers.stellar.org/docs/build/smart-contracts/getting-started/setup
Expand All @@ -12,7 +12,7 @@ And then (from this directory):

```sh
soroban contract build --out-dir output
ksoroban test output/test_adder.wasm
komet test output/test_adder.wasm
```

`ksoroban test` should exit successfully
`komet test` should exit successfully
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
A quick example of a contract that can be ran with `ksoroban test`
A quick example of a contract that can be ran with `komet test`

You will need to have the stellar cli utils installed:
https://developers.stellar.org/docs/build/smart-contracts/getting-started/setup
Expand All @@ -12,7 +12,7 @@ And then (from this directory):

```sh
soroban contract build --out-dir output
ksoroban test output/test_storage.wasm
komet test output/test_storage.wasm
```

`ksoroban test` should exit successfully
`komet test` should exit successfully
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
A quick example of a contract that can be ran with `ksoroban test`
A quick example of a contract that can be ran with `komet test`

You will need to have the stellar cli utils installed:
https://developers.stellar.org/docs/build/smart-contracts/getting-started/setup
Expand All @@ -12,7 +12,7 @@ And then (from this directory):

```sh
soroban contract build --out-dir output
ksoroban test output/test_adder.wasm
komet test output/test_adder.wasm
```

`ksoroban test` should exit successfully
`komet test` should exit successfully
6 changes: 3 additions & 3 deletions src/tests/integration/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from pyk.kdist import kdist
from pyk.ktool.krun import _krun

from ksoroban.kasmer import Kasmer
from ksoroban.utils import concrete_definition, symbolic_definition
from komet.kasmer import Kasmer
from komet.utils import concrete_definition, symbolic_definition

TEST_DATA = (Path(__file__).parent / 'data').resolve(strict=True)
TEST_FILES = TEST_DATA.glob('*.wast')
Expand All @@ -33,7 +33,7 @@ def test_run(program: Path, tmp_path: Path) -> None:


@pytest.mark.parametrize('contract_path', SOROBAN_TEST_CONTRACTS, ids=lambda p: str(p.stem))
def test_ksoroban(contract_path: Path, tmp_path: Path, concrete_kasmer: Kasmer) -> None:
def test_komet(contract_path: Path, tmp_path: Path, concrete_kasmer: Kasmer) -> None:
# Given
contract_wasm = concrete_kasmer.build_soroban_contract(contract_path, tmp_path)

Expand Down
2 changes: 1 addition & 1 deletion src/tests/unit/test_unit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ksoroban.hello import hello
from komet.hello import hello


def test_hello() -> None:
Expand Down

0 comments on commit b6690a8

Please sign in to comment.