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

Commit

Permalink
feat: support python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
eshepelyuk committed Jul 25, 2023
1 parent df02f46 commit b629f54
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 13 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
jobs:
build_job:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -27,12 +31,12 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: ${{ matrix.python-version }}
- uses: Gr1N/setup-poetry@v8
- uses: actions/cache@v3
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('poetry.lock') }}
- run: |
poetry install
- uses: extractions/setup-just@v1
Expand All @@ -43,7 +47,7 @@ jobs:
uses: dorny/test-reporter@v1
if: ${{ success() || failure() }}
with:
name: test report
name: test report ${{ matrix.python-version }}
path: ./test-*.xml
reporter: java-junit
- name: failure logs
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# pyKLI

[![PyPI version](https://badge.fury.io/py/pykli.svg)](https://badge.fury.io/py/pykli)
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)

Interactive [ksqlDB](https://ksqldb.io/) command line client
with autocompletion and syntax highlighting written in Python.
Expand Down
44 changes: 36 additions & 8 deletions 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 pykli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@click.command()
@click.option('-f', '--file', help="execute commands from file, then exit",
type=click.Path(exists=True, path_type=pathlib.Path))
@click.argument("server", default = "http://localhost:8088")
@click.argument("server")
@click.version_option(prog_name="pyKLI")
def main(server, file):
"""
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords = ["cli", "kafka", "tui", "confluent", "ksql", "ksqldb"]
packages = [{include = "pykli"}]

[tool.poetry.dependencies]
python = "^3.11"
python = "^3.10"
click = "^8.1.3"
prompt-toolkit = "^3.0.38"
pygments = "^2.15.1"
Expand All @@ -26,6 +26,7 @@ pykli = "pykli.__main__:main"
[tool.poetry.group.dev.dependencies]
pytest = "^7.3.1"
pytest-mock = "^3.11.1"
exceptiongroup = {version = "^1", python = "<3.11"}

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit b629f54

Please sign in to comment.