Skip to content

Commit 2e6156c

Browse files
upgrade rich and typer (#115)
* try upgrading typer * use string * debug stdout * upgrade rich * fix message being checked * make matrix consistent with psdc-cli * min version of python as 3.10
1 parent 950dd63 commit 2e6156c

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [ubuntu-latest]
17-
python-version: ['3.7', '3.8', '3.9', '3.10']
16+
os: [ubuntu-latest, macos-latest]
17+
python-version: ['3.9', '3.10', '3.11']
1818
runs-on: ${{ matrix.os }}
1919
env:
2020
OS: ${{ matrix.os }}

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ dependencies = [
1212
'importlib-metadata; python_version<"3.8"',
1313
"Jinja2<3.2",
1414
"pluggy<1.3",
15-
"rich<13.0",
15+
"rich==13.4.2",
1616
"toml<0.11",
17-
"typer<0.5",
17+
"typer==0.9.0",
1818
"platformdirs<2.7"
1919
]
2020
description = "Command Line Interface for PyScript"
2121
license = {text = "Apache-2.0"}
2222
name = "pyscript"
2323
readme = "README.md"
24-
requires-python = ">=3.7"
24+
requires-python = ">=3.9"
2525
version = "0.2.5"
2626

2727
[project.optional-dependencies]

tests/test_run_cli_cmd.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ def test_run_server_bad_port(invoke_cli: CLIInvoker): # noqa: F811
3535
assert result.exit_code == 2
3636
# EXPECT the right error message to be printed
3737
assert "Error" in result.stdout
38-
assert (
39-
"Invalid value for '--port': 'bad_port' is not a valid integer" in result.stdout
40-
)
38+
assert "'bad_port' is not a valid integer" in result.stdout
4139

4240

4341
@mock.patch("pyscript.plugins.run.start_server")

0 commit comments

Comments
 (0)