Skip to content

Commit 2cf1e84

Browse files
committed
Separate Unix tests and add more pyproject info
1 parent 9e9216d commit 2cf1e84

File tree

4 files changed

+41
-2
lines changed

4 files changed

+41
-2
lines changed

.github/workflows/test_cli_windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
SIMVUE_URL: ${{ secrets.SIMVUE_URL }}
3535
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
3636
run: |
37-
python -m pytest -x --cov=simvue_cli --cov-report=term --cov-report=xml -c /dev/null -p no:warnings -v
37+
python -m pytest -x --cov=simvue_cli --cov-report=term --cov-report=xml -c /dev/null -p no:warnings -v -m "not unix"

pyproject.toml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,35 @@ name = "simvue-cli"
33
version = "1.0.0"
44
description = "Command Line Interface for interaction with a Simvue v3 server"
55
authors = [
6-
{name = "Kristian Zarębski",email = "[email protected]"}
6+
{name = "Simvue Development Team", email = "[email protected]"}
77
]
88
license-files = ["LICENSE"]
99
readme = "README.md"
1010
requires-python = ">=3.10,<3.14"
11+
classifiers = [
12+
"Development Status :: 5 - Production/Stable",
13+
"Intended Audience :: Science/Research",
14+
"License :: OSI Approved :: Apache Software License",
15+
"Natural Language :: English",
16+
"Operating System :: Unix",
17+
"Operating System :: Microsoft :: Windows",
18+
"Programming Language :: Python :: 3",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: 3.12",
22+
"Programming Language :: Python :: 3.13",
23+
"Topic :: Scientific/Engineering",
24+
"Topic :: System :: Monitoring",
25+
"Topic :: Utilities",
26+
"Typing :: Typed"
27+
]
28+
keywords = [
29+
"tracking",
30+
"monitoring",
31+
"metrics",
32+
"alerting",
33+
"metrics-gathering"
34+
]
1135
dependencies = [
1236
"click-option-group>=0.5.7",
1337
"click>=8.1.8",
@@ -20,6 +44,11 @@ dependencies = [
2044
"requests>=2.32.3",
2145
]
2246

47+
[project.urls]
48+
homepage = "https://simvue.io"
49+
repository = "https://github.com/simvue-io/simvue-cli"
50+
documentation = "https://docs.simvue.io"
51+
2352
[project.scripts]
2453
simvue = "simvue_cli.cli:simvue"
2554

@@ -33,6 +62,10 @@ addopts = "--no-cov"
3362
testpaths = [
3463
"tests"
3564
]
65+
markers = [
66+
"unix: UNIX only tests"
67+
]
68+
3669

3770
[build-system]
3871
requires = ["hatchling"]
@@ -46,3 +79,6 @@ dev = [
4679
lint = [
4780
"ruff>=0.11.2",
4881
]
82+
83+
[tool.mypy]
84+
ignore_missing_imports = true

tests/test_command_line_interface.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ def test_user_list() -> None:
392392
assert result.exit_code == 0, result.output
393393

394394

395+
@pytest.mark.unix
395396
def test_add_remove_storage() -> None:
396397
name = "simvue_cli_test_storage"
397398
runner = click.testing.CliRunner()
@@ -555,6 +556,7 @@ def test_user_and_tenant() -> None:
555556
Tenant(identifier=_tenant_id)
556557

557558

559+
@pytest.mark.unix
558560
def test_simvue_monitor() -> None:
559561
with tempfile.NamedTemporaryFile(suffix=".sh") as out_f:
560562
with open(out_f.name, "w", encoding="utf-8") as f_write:

tests/unit/test_cli_actions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def test_get_server_version() -> None:
8686
assert re.findall(r"\d+\.\d+\.\d+", (_server_version := f"{simvue_cli.actions.get_server_version()}")), f"Got {_server_version} for server version"
8787

8888

89+
@pytest.mark.unix
8990
def test_storage() -> None:
9091
name = "simvue_cli_test_storage"
9192
endpoint_url="https://not-a-real-url.io"

0 commit comments

Comments
 (0)