def bootstrap_datapackage(repo, force=False,<EOL>options=None, noinput=False):
print("<STR_LIT>")<EOL>tsprefix = datetime.now().date().isoformat()<EOL>package = OrderedDict([<EOL>('<STR_LIT:title>', '<STR_LIT>'),<EOL>('<STR_LIT:description>', '<STR_LIT>'),<EOL>('<STR_LIT:username>', repo.username),<EOL>('<STR_LIT>', repo.reponame),<EOL>('<STR_LIT:name>', str(repo)),<EOL>('<STR_LIT:title>', "<STR_LIT>"),<EOL>('<STR_LIT:description>', "<STR_LIT>"),<EOL>('<STR_LIT>', []),<EOL>('<STR_LIT>', []),<EOL>('<STR_LIT>', getpass.getuser()),<EOL>('<STR_LIT>', datetime.now().isoformat()),<EOL>('<STR_LIT>', repo.remoteurl)<EOL>])<EOL>if options is not None:<EOL><INDENT>package['<STR_LIT:title>'] = options['<STR_LIT:title>']<EOL>package['<STR_LIT:description>'] = options['<STR_LIT:description>']<EOL><DEDENT>else:<EOL><INDENT>if noinput:<EOL><INDENT>raise IncompleteParameters("<STR_LIT>")<EOL><DEDENT>for var in ['<STR_LIT:title>', '<STR_LIT:description>']:<EOL><INDENT>value = '<STR_LIT>'<EOL>while value in ['<STR_LIT>',None]:<EOL><INDENT>value = input('<STR_LIT>' + var.title() + "<STR_LIT>")<EOL>if len(value) == <NUM_LIT:0>:<EOL><INDENT>print("<STR_LIT>".format(var.title()))<EOL><DEDENT><DEDENT>package[var] = value<EOL><DEDENT><DEDENT>(handle, filename) = tempfile.mkstemp()<EOL>with open(filename, '<STR_LIT:w>') as fd:<EOL><INDENT>fd.write(json.dumps(package, indent=<NUM_LIT:4>))<EOL><DEDENT>repo.package = package<EOL>return filename<EOL>
Create the datapackage file..