Skip to content

Commit cca366b

Browse files
Fix copying of template files and update default Python SDK to 0.15.7 (#10)
1 parent 437029e commit cca366b

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.github/workflows/project-creation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2023-2024 Contributors to the Eclipse Foundation
1+
# Copyright (c) 2023-2025 Contributors to the Eclipse Foundation
22
#
33
# This program and the accompanying materials are made available under the
44
# terms of the Apache License, Version 2.0 which is available at

components/cores/vapp-python/.project-creation/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdkUri": "https://github.com/eclipse-velocitas/vehicle-app-python-sdk.git",
3-
"sdkVersion": "v0.15.5",
3+
"sdkVersion": "v0.15.7",
44
"files": [
55
".gitattributes",
66
".gitignore",

components/cores/vapp-python/.project-creation/run.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2023-2024 Contributors to the Eclipse Foundation
1+
# Copyright (c) 2023-2025 Contributors to the Eclipse Foundation
22
#
33
# This program and the accompanying materials are made available under the
44
# terms of the Apache License, Version 2.0 which is available at
@@ -35,7 +35,14 @@ def clean_up_sdk_temp() -> None:
3535

3636
def verbose_copy(src, dst) -> object:
3737
print(f"Copying {src!r} to {dst!r}")
38-
return shutil.copy2(src, dst)
38+
dst_path = dst if os.path.isfile(dst) else os.path.join(dst, os.path.basename(src))
39+
if os.path.lexists(dst_path):
40+
print(f"Destination {dst_path!r} already exists. Overwriting.")
41+
if os.path.isdir(dst_path) and not os.path.islink(dst_path):
42+
shutil.rmtree(dst_path)
43+
else:
44+
os.remove(dst_path)
45+
return shutil.copy(src, dst)
3946

4047

4148
def read_creation_config() -> dict:

components/cores/vapp-python/.project-creation/test/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2023-2024 Contributors to the Eclipse Foundation
1+
# Copyright (c) 2023-2025 Contributors to the Eclipse Foundation
22
#
33
# This program and the accompanying materials are made available under the
44
# terms of the Apache License, Version 2.0 which is available at

0 commit comments

Comments
 (0)