Closed matteobachetti closed 4 years ago
I don't have time to open PR right now but something like this might fix the problem in post_gen_project.py
:
def remove_file(filepath):
if os.path.exists(filepath):
os.remove(os.path.join(PROJECT_DIRECTORY, filepath))
def remove_dir(filepath):
if os.path.exists(filepath):
shutil.rmtree(os.path.join(PROJECT_DIRECTORY, filepath))
def copy_file(original_filepath, new_filepath):
if os.path.exists(original_filepath):
shutil.copyfile(os.path.join(PROJECT_DIRECTORY, original_filepath),
os.path.join(PROJECT_DIRECTORY, new_filepath))
I would assume it's related to this: https://github.com/astropy/package-template/blob/cookiecutter/hooks/post_gen_project.py#L46
Looking at this again, I think it is a typo in the code. It is supposed to be looking for .readthedocs.yml
, not readthedocs.yml
.
Fixed in #438
I'm creating a new package from the template using cookiecutter. If I answer 'n' to the question
use_read_the_docs [y]:
, the package creation fails with