Skip to content

Commit 12fc24f

Browse files
authored
Merge pull request #476 from COVESA/release/6.0
VSS 6.0 merge-back
2 parents b1b2a08 + db47df2 commit 12fc24f

File tree

13 files changed

+1070
-805
lines changed

13 files changed

+1070
-805
lines changed

.bumpversion.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.bumpversion]
2-
current_version = "6.0.0-dev0"
2+
current_version = "6.0.0"
33
parse = """(?x)
44
(?P<major>0|[1-9]\\d*)\\.
55
(?P<minor>0|[1-9]\\d*)\\.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,6 @@ ENV/
9494
# Test output files
9595
*_output.graphql
9696
test_output.graphql
97+
98+
# Test file for ROS tests, generated by test_generic.py
99+
ros_test_topics.txt

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
> [!IMPORTANT]
99
> This document only contain changes introduced in VSS-Tools 3.0 or later
1010
11-
## Unreleased (major)
11+
## 6.0
1212

1313
### Changed
1414

@@ -20,10 +20,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020
### Added
2121

2222
- `plantuml` exporter
23+
- `ROS 2 Interface` exporter
24+
- `s2dm` exporter
2325

2426
### Removed
2527

26-
- vspec2ttl removed.
28+
- vspec2ttl removed
29+
- `graphql` exporter
2730

2831
## 5.0
2932

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ Other exporters may have stricter requirements.
6666
| VSS-tools version | Supported VSS catalog versions | Comments |
6767
| ----------------- | ------------------------------ | -------- |
6868
| `v3.0` | `v3.0` - `v3.1.1` |
69-
| `v3.1` | `v3.0` -`v4.0` |
69+
| `v3.1` | `v3.0` - `v4.0` |
7070
| `v4.0` | `v4.0` |
7171
| `v4.1` | `v4.0` - |
7272
| `4.2` | `v4.0` - |
7373
| `5.0` | `v5.0` - |
74+
| `6.0` | `v5.0` - |
7475
| `<latest source>` | `v5.0` - |
7576

7677
### Changes affecting compatibility

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "vss-tools"
3-
version = "6.0.0-dev0"
3+
version = "6.0.0"
44
description='COVESA Vehicle Signal Specification tooling.'
55
readme = "README.md"
66
requires-python = ">=3.10"
@@ -49,7 +49,7 @@ select = ["E", "F", "I"]
4949

5050
[dependency-groups]
5151
dev = [
52-
"bump-my-version>=1.2.0",
52+
"bump-my-version>=1.2.5",
5353
"mypy>=1.13.0",
5454
"nox>=2024.10.9",
5555
"pre-commit>=4.0.1",
@@ -60,3 +60,6 @@ dev = [
6060
"types-pyyaml>=6.0.12.20240917",
6161
"types-setuptools>=75.3.0.20241107",
6262
]
63+
64+
[tool.coverage.run]
65+
patch = ["subprocess"]

tests/test_graphql_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ def test_extract_custom_directives_empty_schema(self):
323323
custom_directives = extract_custom_directives_from_schema(schema)
324324

325325
# Should be empty since no custom directives defined
326-
assert len(custom_directives) == 0
326+
# But is 1 from graphql-core 3.2.7 onwards due to "oneOf"
327+
assert len(custom_directives) == 1
327328

328329
def test_load_predefined_schema_elements(self):
329330
"""Test loading predefined schema elements (combined function)."""

tests/vspec/test_comment/topics.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/vspec/test_datatypes/topics.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/vspec/test_exporter_go/topics.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/vspec/test_generic.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ def run_exporter(directory, exporter, tmp_path):
4040
types = directory / "types.vspec"
4141
output = tmp_path / f"out.{exporter}"
4242
expected = directory / f"expected.{exporter}"
43-
topics_file = directory / "topics.txt"
44-
topics_file.write_text("# includes only branch A \n" "A.*", encoding="utf-8")
4543
if not expected.exists():
4644
# If you want find directory/exporter combinations not yet covered enable the assert
4745
# assert False, f"Folder {expected} not found"
@@ -54,6 +52,10 @@ def run_exporter(directory, exporter, tmp_path):
5452
elif exporter in ["samm"]:
5553
cmd += f" --target-folder {output}"
5654
elif exporter in ["ros2interface"]:
55+
# Generate a topics file for test, shall not be checked in
56+
topics_file = directory / "ros_test_topics.txt"
57+
topics_file.write_text("# includes only branch A\n" "A.*", encoding="utf-8")
58+
5759
cmd += f" --output {output}"
5860
cmd += f" --topics-file {topics_file} --topics A.* --topics A.Double --topics fqn:A.Uint8"
5961
cmd += " --mode aggregate --srv both --expand --srv-use-msg --exclude-topics Z.*"

0 commit comments

Comments
 (0)