@only_ci
def generate_requirements_txt(failed_deps):
 req_file = file(REQUIREMENTS_TXT, 'w')
 if failed_deps:
  for pkg in failed_deps:
   if pkg.is_git:
    req_file.write(('%s\n' % pkg.git_src))
   else:
    req_file.write(('%s==%s\n' % (pkg.package_name, pkg.package_version)))
 req_file.close()
 return REQUIREMENTS_TXT

@ only_ci def generate_requirements_txt ( failed_deps ) : req_file = file ( REQUIREMENTS_TXT , 'w' ) if failed_deps : for pkg in failed_deps : if pkg . is_git : req_file . write ( ( '%s\n' % pkg . git_src ) ) else : req_file . write ( ( '%s==%s\n' % ( pkg . package_name , pkg . package_version ) ) ) req_file . close ( ) return REQUIREMENTS_TXT
we want to generate a requirements .