Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/rename-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:

- name: Rename Dataset
run: |
cp -r . ../Lean.DataSource.RenameDataset
cd ../Lean.DataSource.RenameDataset
cp -r . ../Lean.DataSource.Rename
cd ../Lean.DataSource.Rename
python renameDataset.py Rename Dataset

- name: Start container (renamed)
run: |
docker run -d \
--workdir /__w/Lean.DataSource.SDK/Lean.DataSource.RenameDataset \
--workdir /__w/Lean.DataSource.SDK/Lean.DataSource.Rename \
-v /home/runner/work:/__w \
--name test-container \
quantconnect/lean:foundation \
Expand Down
6 changes: 4 additions & 2 deletions renameDataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@ def main():
downloader_name = f"{name}DataDownloader"
provider_name = f"{name}DataProvider"
name_lower = name.lower()
repo_name = f"Lean.DataSource.{vendor_name}"

print(f"Vendor name: {vendor_name}")
print(f"Dataset name: {dataset_name}")
print(f"Combined: {name}")
print(f"Repo name: {repo_name}")
print(f"Universe: {universe_name}")
print(f"Algorithm: {algorithm_name}")
print(f"Downloader: {downloader_name}")
Expand All @@ -104,7 +106,7 @@ def main():
# --- Text replacements ---
# Order matters: longer/more-specific patterns first to avoid partial matches
replacements = [
("Lean.DataSource.SDK", root.name),
("Lean.DataSource.SDK", repo_name),
("MyCustomDataQueueHandler", f"{name}DataQueueHandler"),
("MyCustomDataDownloader", downloader_name),
("MyCustomDataProvider", provider_name),
Expand Down Expand Up @@ -202,7 +204,7 @@ def main():
if dry_run:
print("\nDry run complete. Re-run without --dry-run to apply.")
else:
print("\nDone! You may want to rename the repo folder and .sln file manually.")
print("\nDone!")


if __name__ == "__main__":
Expand Down