mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-29 14:19:25 +01:00
supybot-plugin-create: Create setup.py
This commit is contained in:
parent
498290f1cd
commit
dacaefda24
@ -187,6 +187,16 @@ configure = config.configure
|
|||||||
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
|
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
|
||||||
'''.lstrip()
|
'''.lstrip()
|
||||||
|
|
||||||
|
setupTemplate = '''
|
||||||
|
%s
|
||||||
|
|
||||||
|
from supybot.setup import plugin_setup
|
||||||
|
|
||||||
|
plugin_setup(
|
||||||
|
%r,
|
||||||
|
)
|
||||||
|
'''.lstrip()
|
||||||
|
|
||||||
testTemplate = '''
|
testTemplate = '''
|
||||||
%s
|
%s
|
||||||
|
|
||||||
@ -289,6 +299,7 @@ def main():
|
|||||||
writeFile('config.py', configTemplate % (copyright, name, name, name, name,
|
writeFile('config.py', configTemplate % (copyright, name, name, name, name,
|
||||||
name))
|
name))
|
||||||
writeFile('__init__.py', __init__Template % (copyright, name, options.desc))
|
writeFile('__init__.py', __init__Template % (copyright, name, options.desc))
|
||||||
|
writeFile('setup.py', setupTemplate % (copyright, name))
|
||||||
writeFile('test.py', testTemplate % (copyright, name, name))
|
writeFile('test.py', testTemplate % (copyright, name, name))
|
||||||
writeFile('README.md', readmeTemplate % (options.desc,))
|
writeFile('README.md', readmeTemplate % (options.desc,))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user