Skip to content

Commit 8a3b29e

Browse files
authored
update requirements and conanfile (#59)
* Conan 2 * fix licenses
1 parent 75e00b4 commit 8a3b29e

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#
1313
# SPDX-License-Identifier: Apache-2.0
1414

15-
FROM ghcr.io/eclipse-velocitas/devcontainer-base-images/python:v0.3
15+
FROM ghcr.io/eclipse-velocitas/devcontainer-base-images/python:v0.4
1616

1717
ENV DOCKER_BUILDKIT=1
1818

.github/workflows/check-licenses.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: actions/checkout@v4
3737
with:
3838
repository: eclipse-velocitas/license-check
39-
ref: v1.2
39+
ref: v1.3
4040
path: .github/actions/license-check
4141

4242
- name: Run License Checker

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ gen_model/
137137

138138
# test data repos
139139
tests/data/vspec
140+
tests/data/json
140141

141142
# test reports
142143
results/

NOTICE-3RD-PARTY-CONTENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
|mypy-extensions|1.1.0|unknown|
1515
|nodeenv|1.9.1|BSD|
1616
|packaging|25.0|Apache 2.0<br/>BSD|
17-
|platformdirs|4.3.7|MIT|
17+
|platformdirs|4.3.8|MIT|
1818
|pre-commit|4.2.0|MIT|
1919
|PyYAML|6.0.2|MIT|
2020
|tomli|2.2.1|MIT|
2121
|typing-extensions|4.13.2|unknown|
22-
|virtualenv|20.30.0|MIT|
22+
|virtualenv|20.31.2|MIT|
2323
|vss-tools|4.0|Mozilla Public License 2.0|
2424
## Workflows
2525
| Dependency | Version | License |

src/velocitas/model_generator/cpp/cpp_generator.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ def __gen_conan_package(self):
7272
path = os.path.join(self.target_folder, "conanfile.py")
7373
with open(path, "w", encoding="utf-8") as file:
7474
file.write(
75-
"""from conans import ConanFile
75+
"""from conan import ConanFile
76+
from conan.tools.files import copy
77+
import os
7678
7779
class VehicleModelConan(ConanFile):
7880
name = "vehicle-model"
@@ -87,7 +89,9 @@ class VehicleModelConan(ConanFile):
8789
requires = "vehicle-app-sdk/[>=0.1]"
8890
8991
def package(self):
90-
self.copy("*.hpp")
92+
copy(self,"*.hpp",
93+
src=os.path.join(self.source_folder, "include"),
94+
dst=os.path.join(self.package_folder, "include"),)
9195
"""
9296
)
9397

tests/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
pytest
22
pytest-cov
3-
conan==1.62.0
4-
velocitas-lib==0.0.4
3+
conan==2.*
4+
velocitas-lib==0.0.13

0 commit comments

Comments
 (0)