Move trac integration to a subdirectory.

(imported from commit fea539e275a5c81d9fde7f66ef8396d77f8d8b6d)
This commit is contained in:
Tim Abbott
2013-02-14 13:46:23 -05:00
parent 4ed2ffb4ce
commit 61369c87ec
4 changed files with 11 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ setup(name='humbug',
url='https://humbughq.com/dist/api/', url='https://humbughq.com/dist/api/',
packages=['humbug'], packages=['humbug'],
data_files=[('share/humbug/examples', ["examples/humbugrc", "examples/send-message"]), data_files=[('share/humbug/examples', ["examples/humbugrc", "examples/send-message"]),
('share/humbug/integrations', glob.glob('integrations/*')), ('share/humbug/integrations/trac', glob.glob('integrations/trac/*')),
], ],
scripts=["bin/humbug-send"], scripts=["bin/humbug-send"],
) )

View File

@@ -155,9 +155,10 @@ following, to the stream <code>commits</code> with a subject that matches the re
{#--------------------------------------------------------------------#} {#--------------------------------------------------------------------#}
<div id="trac" class="integration"> <div id="trac" class="integration">
<h4>Trac</h4> <h4>Trac</h4>
<p>First, download and install our <a href="/api">Python bindings and example scripts</a>.</p> <p>First, download and install our <a href="/api">Python
bindings and example scripts</a> on your Trac server.</p>
<p>Next, open <code>integrations/humbug_trac_config.py</code> in <p>Next, open <code>integrations/trac/humbug_trac_config.py</code> in
your favorite editor, and change the following lines to specify your favorite editor, and change the following lines to specify
your bot's email address, API key, and where you'd like your your bot's email address, API key, and where you'd like your
notification messages to go (by default, notification messages to go (by default,
@@ -168,12 +169,13 @@ following, to the stream <code>commits</code> with a subject that matches the re
<span class="n">STREAM_FOR_NOTIFICATIONS</span> <span class="o">=</span> <span class="s">"trac"</span> <span class="n">STREAM_FOR_NOTIFICATIONS</span> <span class="o">=</span> <span class="s">"trac"</span>
<span class="n">TRAC_BASE_TICKET_URL</span> <span class="o">=</span> <span class="s">"https://trac.example.com/ticket"</span></pre></div> <span class="n">TRAC_BASE_TICKET_URL</span> <span class="o">=</span> <span class="s">"https://trac.example.com/ticket"</span></pre></div>
<p>Copy <code>humbug_trac.py</code> <p>Copy <code>integrations/trac/humbug_trac.py</code>
and <code>humbug_trac_config.py</code> to your Trac server, and <code>integrations/trac/humbug_trac_config.py</code> into
placing them in the Trac <code>plugins/</code> your Trac installation's <code>plugins/</code>
subdirectory. Once you've done that, subdirectory. Once you've done that, edit your Trac
edit <code>conf/trac.ini</code> to add <code>humbug_trac</code> installation's <code>conf/trac.ini</code> to
to the <code>[components]</code> section, as follows:</p> add <code>humbug_trac</code> to the <code>[components]</code>
section, as follows:</p>
<div class="codehilite"><pre><span class="k">[components]</span> <div class="codehilite"><pre><span class="k">[components]</span>
<span class="na">humbug_trac</span> <span class="o">=</span> <span class="s">enabled</span></pre></div> <span class="na">humbug_trac</span> <span class="o">=</span> <span class="s">enabled</span></pre></div>