Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Commit

Permalink
fix: semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
eshepelyuk committed Jul 25, 2023
1 parent 8c895dc commit 2d6604b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- run: |
poetry self add poetry-version-plugin
poetry self add "poetry-dynamic-versioning[plugin]"
- uses: bahmutov/npm-install@v1
- run: npx semantic-release
env:
Expand Down
5 changes: 3 additions & 2 deletions pykli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ def main(server, file):
initialize_sqlparse()

eval = pykli_eval(KsqlDBClient(server))
prompt = pykli_prompt() if file is None else file_prompt(file)

if isinstance(pykli_print(eval(Info(server))), ErrMsg):
sys.exit(1)

evaluated = (tt for t in pykli_read(prompt) if (tt := eval(t)) is not None)
read = pykli_read(pykli_prompt() if file is None else file_prompt(file))

evaluated = (tt for t in read if (tt := eval(t)) is not None)
for t in evaluated:
pykli_print(t)

Expand Down
2 changes: 1 addition & 1 deletion pykli/repl_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from .completer import pykli_completer
from .keybindgings import pykli_keys
from .tokens import KSQL, Stmt, ErrMsg, PullQuery, SessionVar
from .repl_print import pok


class file_prompt:
def __init__(self, path):
Expand Down
11 changes: 7 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ pytest-mock = "^3.11.1"
exceptiongroup = {version = "^1", python = "<3.11"}

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"

[tool.ruff]
line-length = 140
Expand All @@ -40,5 +40,8 @@ markers = [
"e2e: e2e tests",
]

[tool.poetry-version-plugin]
source = "git-tag"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
pattern = "default-unprefixed"
metadata = false

0 comments on commit 2d6604b

Please sign in to comment.