Skip to content

Commit

Permalink
Added CHANGELOG.md template
Browse files Browse the repository at this point in the history
  • Loading branch information
nfx committed Dec 28, 2023
1 parent 8957619 commit 61f98b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Version changelog

## 0.0.0

Initial commit
2 changes: 1 addition & 1 deletion src/databricks/labs/blueprint/__about__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# DO NOT MODIFY THIS FILE BY HAND
__version__ = "0.0.1"
__version__ = "0.0.0"
4 changes: 3 additions & 1 deletion src/databricks/labs/blueprint/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,13 @@ def init_project(target):
with (inner_package_dir / "__init__.py").open("w") as f:
f.write(f"from databricks.labs.{project_name}.__about__ import __version__")
with (inner_package_dir / "__about__.py").open("w") as f:
f.write('# DO NOT MODIFY THIS FILE BY HAND\n__version__ = "0.0.1"\n')
f.write('__version__ = "0.0.0"\n')
with (dst_dir / "labs.yml").open("w") as f:
f.write(labs_yml_file.replace("__app__", project_name))
with (dst_dir / "CODEOWNERS").open("w") as f:
f.write(f"* @nfx\n/src @databrickslabs/{project_name}-write\n/tests @databrickslabs/{project_name}-write\n")
with (dst_dir / "CHANGELOG.md").open("w") as f:
f.write(f"# Version changelog\n\n## 0.0.0\n\nInitial {project_name} commit\n")


if "__main__" == __name__:
Expand Down

0 comments on commit 61f98b1

Please sign in to comment.