Skip to content

Commit

Permalink
Merge pull request #206 from lsst-sqre/tickets/DM-42144
Browse files Browse the repository at this point in the history
DM-21144: Include license.id in migration template
  • Loading branch information
jonathansick authored Dec 12, 2023
2 parents e76c4e6 + 59f7ad9 commit 7964d58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/documenteer/services/technotemigration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from __future__ import annotations

import re
import shutil
from pathlib import Path
from typing import Any
from urllib.parse import urlparse
Expand Down Expand Up @@ -84,6 +85,9 @@ def _create_toml_file(
f'canonical_url = "https://{series.lower()}-{number}.lsst.io/"\n'
f'github_url = "{github_url}"\n'
f'github_default_branch = "main"\n'
f'organization.name = "Vera C. Rubin Observatory"\n'
f'organization.ror = "https://ror.org/048g3cy84"\n'
f'license.id = "CC-BY-4.0"\n'
)

return TechnoteTomlFile(toml_content)
Expand Down Expand Up @@ -255,5 +259,5 @@ def _delete_file(self, path: Path) -> None:
def _delete_directory(self, path: Path) -> None:
"""Delete a directory."""
if path.exists():
path.rmdir()
shutil.rmtree(path)
print(f"❌ {path}")

0 comments on commit 7964d58

Please sign in to comment.