@@ -93,7 +93,7 @@ def get_result(self):
93
93
" without reference to import errno. See issue "
94
94
"https://github.com/adafruit/circuitpython/issues/1582"
95
95
)
96
- ERROR_MISMATCHED_READTHEDOCS = "Mismatched readthedocs.yml "
96
+ ERROR_MISMATCHED_READTHEDOCS = "Mismatched readthedocs.yaml "
97
97
ERROR_MISSING_DESCRIPTION = "Missing repository description"
98
98
ERROR_MISSING_EXAMPLE_FILES = "Missing .py files in examples folder"
99
99
ERROR_MISSING_EXAMPLE_FOLDER = "Missing examples folder"
@@ -110,7 +110,7 @@ def get_result(self):
110
110
ERROR_MISSING_LINT = "Missing lint config"
111
111
ERROR_MISSING_CODE_OF_CONDUCT = "Missing CODE_OF_CONDUCT.md"
112
112
ERROR_MISSING_README_RST = "Missing README.rst"
113
- ERROR_MISSING_READTHEDOCS = "Missing readthedocs.yml "
113
+ ERROR_MISSING_READTHEDOCS = "Missing readthedocs.yaml "
114
114
ERROR_MISSING_SETUP_PY = "For pypi compatibility, missing setup.py"
115
115
ERROR_MISSING_REQUIREMENTS_TXT = "For pypi compatibility, missing requirements.txt"
116
116
ERROR_MISSING_BLINKA = (
@@ -230,25 +230,25 @@ def __init__(
230
230
231
231
@property
232
232
def rtd_yml_base (self ):
233
- """The parsed YAML from `.readthedocs.yml ` in the cookiecutter-adafruit-circuitpython repo.
234
- Used to verify that a library's `.readthedocs.yml ` matches this version.
233
+ """The parsed YAML from `.readthedocs.yaml ` in the cookiecutter-adafruit-circuitpython repo.
234
+ Used to verify that a library's `.readthedocs.yaml ` matches this version.
235
235
"""
236
236
if self ._rtd_yaml_base is None :
237
237
rtd_yml_dl_url = (
238
238
"https://raw.githubusercontent.com/adafruit/cookiecutter-adafruit-"
239
239
"circuitpython/main/%7B%7B%20cookiecutter%20and%20'tmp_repo'%20%7D"
240
240
"%7D/%7B%25%20if%20cookiecutter.sphinx_docs%20in%20%5B'y'%2C%20'yes'"
241
- "%5D%20%25%7D.readthedocs.yml %7B%25%20endif%20%25%7D"
241
+ "%5D%20%25%7D.readthedocs.yaml %7B%25%20endif%20%25%7D"
242
242
)
243
243
rtd_yml = requests .get (rtd_yml_dl_url )
244
244
if rtd_yml .ok :
245
245
try :
246
246
self ._rtd_yaml_base = yaml .safe_load (rtd_yml .text )
247
247
except yaml .YAMLError :
248
- print ("Error parsing cookiecutter .readthedocs.yml ." )
248
+ print ("Error parsing cookiecutter .readthedocs.yaml ." )
249
249
self ._rtd_yaml_base = ""
250
250
else :
251
- print ("Error retrieving cookiecutter .readthedocs.yml " )
251
+ print ("Error retrieving cookiecutter .readthedocs.yaml " )
252
252
self ._rtd_yaml_base = ""
253
253
254
254
return self ._rtd_yaml_base
@@ -645,7 +645,7 @@ def validate_contents(self, repo):
645
645
files = [x ["name" ] for x in content_list ]
646
646
647
647
# ignore new/in-work repos, which should have less than 8 files:
648
- # ___.py or folder, CoC, .github/, .readthedocs.yml , docs/,
648
+ # ___.py or folder, CoC, .github/, .readthedocs.yaml , docs/,
649
649
# examples/, README, LICENSE
650
650
if len (files ) < 8 :
651
651
BUNDLE_IGNORE_LIST .append (repo ["name" ])
@@ -701,11 +701,11 @@ def validate_contents(self, repo):
701
701
else :
702
702
errors .append (ERROR_UNABLE_PULL_REPO_CONTENTS )
703
703
704
- if "readthedocs.yml " in files or ".readthedocs.yml " in files :
704
+ if "readthedocs.yaml " in files or ".readthedocs.yaml " in files :
705
705
if self .rtd_yml_base != "" :
706
- filename = "readthedocs.yml "
707
- if ".readthedocs.yml " in files :
708
- filename = ".readthedocs.yml "
706
+ filename = "readthedocs.yaml "
707
+ if ".readthedocs.yaml " in files :
708
+ filename = ".readthedocs.yaml "
709
709
file_info = content_list [files .index (filename )]
710
710
rtd_contents = requests .get (file_info ["download_url" ])
711
711
if rtd_contents .ok :
@@ -715,7 +715,7 @@ def validate_contents(self, repo):
715
715
errors .append (ERROR_MISMATCHED_READTHEDOCS )
716
716
except yaml .YAMLError :
717
717
self .output_file_data .append (
718
- "Error parsing {} .readthedocs.yml ." .format (repo ["name" ])
718
+ "Error parsing {} .readthedocs.yaml ." .format (repo ["name" ])
719
719
)
720
720
errors .append (ERROR_OUTPUT_HANDLER )
721
721
else :
0 commit comments