@@ -99,21 +99,21 @@ def venv_bin(self, filename=None):
99
99
return os .path .join (* parts )
100
100
101
101
def environment_json_path (self ):
102
- """Return the path to the ``environment.json`` file for this venv ."""
102
+ """Return the path to the ``readthedocs- environment.json`` file."""
103
103
return os .path .join (
104
104
self .venv_path (),
105
- 'environment.json' ,
105
+ 'readthedocs- environment.json' ,
106
106
)
107
107
108
108
@property
109
109
def is_obsolete (self ):
110
110
"""
111
111
Determine if the Python version of the venv obsolete.
112
112
113
- It checks the the data stored at ``environment.json`` and compares it
114
- against the Python version in the project version to be built and the
115
- Docker image used to create the venv against the one in the project
116
- version config.
113
+ It checks the the data stored at ``readthedocs- environment.json`` and
114
+ compares it against the Python version in the project version to be
115
+ built and the Docker image used to create the venv against the one in
116
+ the project version config.
117
117
118
118
:returns: ``True`` when it's obsolete and ``False`` otherwise
119
119
@@ -131,7 +131,7 @@ def is_obsolete(self):
131
131
env_python_version = environment_conf ['python' ]['version' ]
132
132
env_build_image = environment_conf ['build' ]['image' ]
133
133
except (IOError , TypeError , KeyError , ValueError ):
134
- log .error ('Unable to read/parse environment.json file' )
134
+ log .error ('Unable to read/parse readthedocs- environment.json file' )
135
135
return False
136
136
137
137
# TODO: remove getattr when https://github.com/rtfd/readthedocs.org/pull/3339 got merged
0 commit comments