Skip to content
Snippets Groups Projects
Commit 3131e3d3 authored by Ronald Jäpel's avatar Ronald Jäpel
Browse files

Add creation of environment_yml to initialize_repo.py

parent e6a155a5
No related branches found
No related tags found
No related merge requests found
...@@ -133,9 +133,17 @@ def initialize_git_repo(path_to_repo: str, output_repo_name: (str | bool) = "out ...@@ -133,9 +133,17 @@ def initialize_git_repo(path_to_repo: str, output_repo_name: (str | bool) = "out
os.chdir(starting_directory) os.chdir(starting_directory)
def create_environment_yml():
file_lines = ["name: rdm_example", "channels:", " - conda-forge", "dependencies:", " - python=3.10", " - conda",
" - cadet", " - pip", " - pip:", " - cadet-process", " - cadetrdm"]
write_lines_to_file("environment.yml", file_lines, open_type="w")
def create_readme(): def create_readme():
readme_lines = ["# Project repo", "Your code goes in this repo.", "Please add a description here including: ", readme_lines = ["# Project repo", "Your code goes in this repo.", "Please add a description here including: ",
"- authors", "- project", "- things we will find interesting later", "", "", "- authors", "- project", "- things we will find interesting later", "", "",
"Please update the environment.yml with your python environment requirements.", "", "",
"The output repository can be found at:", "The output repository can be found at:",
"[output_repo]() (not actually set yet because no remote has been configured at this moment"] "[output_repo]() (not actually set yet because no remote has been configured at this moment"]
write_lines_to_file("README.md", readme_lines, open_type="w") write_lines_to_file("README.md", readme_lines, open_type="w")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment