@@ -199,6 +199,29 @@ def create_dependency(
199199 "allow-prereleases" , constraint .get ("allows-prereleases" , False )
200200 )
201201
202+ constraint_has_deprecated_develop = "develop" in constraint
203+ if "editable" in constraint :
204+ if constraint_has_deprecated_develop :
205+ raise RuntimeError (
206+ 'The "{}" dependency specifies '
207+ 'both the "editable" property and the deprecated "develop" property. '
208+ 'Please remove "develop" and resolve value conflicts!' .format (
209+ name
210+ )
211+ )
212+ editable = constraint .get ("editable" , False )
213+ elif constraint_has_deprecated_develop :
214+ message = (
215+ 'The "{}" dependency specifies '
216+ 'the "develop" property, which is deprecated. '
217+ 'Use "editable" instead.' .format (name )
218+ )
219+ warn (message , DeprecationWarning )
220+ logger .warning (message )
221+ editable = constraint .get ("develop" , False )
222+ else :
223+ editable = False
224+
202225 if "git" in constraint :
203226 # VCS dependency
204227 dependency = VCSDependency (
@@ -210,7 +233,7 @@ def create_dependency(
210233 rev = constraint .get ("rev" , None ),
211234 category = category ,
212235 optional = optional ,
213- develop = constraint . get ( "develop" , False ) ,
236+ editable = editable ,
214237 extras = constraint .get ("extras" , []),
215238 )
216239 elif "file" in constraint :
@@ -247,7 +270,7 @@ def create_dependency(
247270 category = category ,
248271 optional = optional ,
249272 base = root_dir ,
250- develop = constraint . get ( "develop" , False ) ,
273+ editable = editable ,
251274 extras = constraint .get ("extras" , []),
252275 )
253276 elif "url" in constraint :
0 commit comments