<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import , print_function <EOL> import os . path <EOL> import string <EOL> from pkgutil import get_data <EOL> __author__ = "<STR_LIT>" <EOL> __copyright__ = "<STR_LIT>" <EOL> __license__ = "<STR_LIT>" <EOL> licenses = { "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT:none>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" } <EOL> def get_template ( name ) : <EOL> """<STR_LIT>""" <EOL> pkg_name = __name__ . split ( "<STR_LIT:.>" , <NUM_LIT:1> ) [ <NUM_LIT:0> ] <EOL> file_name = "<STR_LIT>" . format ( name = name ) <EOL> data = get_data ( pkg_name , os . path . join ( "<STR_LIT>" , file_name ) ) <EOL> return string . Template ( data . decode ( encoding = '<STR_LIT:utf8>' ) ) <EOL> def setup_py ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . safe_substitute ( opts ) <EOL> def setup_cfg ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def gitignore ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def gitignore_empty ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def sphinx_conf ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def sphinx_index ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def sphinx_license ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def sphinx_authors ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def sphinx_changes ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def sphinx_makefile ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . safe_substitute ( opts ) <EOL> def readme ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def authors ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def requirements ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( <EOL> requirements_str = '<STR_LIT>' . join ( opts [ '<STR_LIT>' ] ) , ** opts ) <EOL> def test_requirements ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def license ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( licenses [ opts [ '<STR_LIT>' ] ] ) <EOL> return template . substitute ( opts ) <EOL> def init ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def coveragerc ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def tox ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def travis ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . safe_substitute ( opts ) <EOL> def travis_install ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . safe_substitute ( opts ) <EOL> def pre_commit_config ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . safe_substitute ( opts ) <EOL> def namespace ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def skeleton ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def test_skeleton ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def changes ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) <EOL> def conftest_py ( opts ) : <EOL> """<STR_LIT>""" <EOL> template = get_template ( "<STR_LIT>" ) <EOL> return template . substitute ( opts ) </s>
