Skip to content

Commit 7e736f0

Browse files
committed
Remove alt setup option, fix delete temp files
1 parent fce1340 commit 7e736f0

1 file changed

Lines changed: 2 additions & 22 deletions

File tree

init_template.py

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,6 @@ def get_input(prompt: str) -> str:
7171
return input(prompt)
7272

7373

74-
def select_project_type() -> None:
75-
"""Select whether alt_files should be used."""
76-
user_input = get_input("Switch to dependencies in pyproject.toml? (y/N) : ")
77-
if user_input.lower() == "y":
78-
for file in ALT_FILE_DIR.iterdir():
79-
file.replace(file.name)
80-
81-
# Remove requirements directory and all contents
82-
for file in REQUIREMENTS_DIR.iterdir():
83-
os.remove(file)
84-
os.rmdir(REQUIREMENTS_DIR)
85-
86-
# Remove alt_files directory and all contents
87-
for file in ALT_FILE_DIR.iterdir():
88-
os.remove(file)
89-
os.rmdir(ALT_FILE_DIR)
90-
91-
9274
def get_project_data() -> ProjectData:
9375
"""Query user for details on the project. This is the quiz."""
9476
data = ProjectData()
@@ -138,14 +120,12 @@ def rename_module_folder(name: str) -> None:
138120
if __name__ == "__main__":
139121
print("Eggcellent template setup:\n")
140122

141-
select_project_type()
142-
143123
project_data = get_project_data()
144124

145125
replace_pyproject_values(project_data)
146126
replace_readme_values(project_data)
147127

148-
rename_module_folder(project_data.name)
149-
150128
delete_placeholder_files()
151129
delete_placeholder_directories()
130+
131+
rename_module_folder(project_data.name)

0 commit comments

Comments
 (0)