13</pre></div></td><td class="code"><div class="highlight"><pre><span class="err">[distutils]</span><span class="c1"># this tells distutils what package indexes you can push to</span>
<p>As you can see, you need to register both in the <a class="reference external" href="https://pypi.python.org/pypi?%3Aaction=register_form">main pypi
</pre></div>
</td></tr></table><p>As you can see, you need to register both in the <a class="reference external" href="https://pypi.python.org/pypi?%3Aaction=register_form">main pypi
repository</a> and
the <a class="reference external" href="https://testpypi.python.org/pypi?%3Aaction=register_form">testing
server</a>.
@ -236,6 +247,7 @@ The usernames and passwords might be different, that is up to you!</p>
<span class="n">packages</span><span class="o">=</span><span class="p">[</span><span class="s">&#39;mypackage&#39;</span><span class="p">],</span><span class="c"># this must be the same as the name above</span>
<span class="n">version</span><span class="o">=</span><span class="s">&#39;{ version }&#39;</span><span class="p">,</span>
<span class="n">keywords</span><span class="o">=</span><span class="p">[</span><span class="s">&#39;websockets&#39;</span><span class="p">,</span><span class="s">&#39;display&#39;</span><span class="p">,</span><span class="s">&#39;d3&#39;</span><span class="p">],</span><span class="c"># list of keywords that represent your package</span>
2</pre></div></td><td class="code"><div class="highlight"><pre>git tag <span class="o">{</span>version<span class="o">}</span> -m <span class="s2">&quot;{ Description of this tag/version}&quot;</span>
13</pre></div></td><td class="code"><div class="highlight"><pre><span class="err">[distutils]</span><span class="c1"># this tells distutils what package indexes you can push to</span>
<p>As you can see, you need to register both in the <a class="reference external" href="https://pypi.python.org/pypi?%3Aaction=register_form">main pypi
</pre></div>
</td></tr></table><p>As you can see, you need to register both in the <a class="reference external" href="https://pypi.python.org/pypi?%3Aaction=register_form">main pypi
repository</a> and
the <a class="reference external" href="https://testpypi.python.org/pypi?%3Aaction=register_form">testing
server</a>.
@ -236,6 +247,7 @@ The usernames and passwords might be different, that is up to you!</p>
<span class="n">packages</span><span class="o">=</span><span class="p">[</span><span class="s">&#39;mypackage&#39;</span><span class="p">],</span><span class="c"># this must be the same as the name above</span>
<span class="n">version</span><span class="o">=</span><span class="s">&#39;{ version }&#39;</span><span class="p">,</span>
<span class="n">keywords</span><span class="o">=</span><span class="p">[</span><span class="s">&#39;websockets&#39;</span><span class="p">,</span><span class="s">&#39;display&#39;</span><span class="p">,</span><span class="s">&#39;d3&#39;</span><span class="p">],</span><span class="c"># list of keywords that represent your package</span>
2</pre></div></td><td class="code"><div class="highlight"><pre>git tag <span class="o">{</span>version<span class="o">}</span> -m <span class="s2">&quot;{ Description of this tag/version}&quot;</span>
13</pre></div></td><tdclass="code"><divclass="highlight"><pre><spanclass="err">[distutils]</span><spanclass="c1"># this tells distutils what package indexes you can push to</span>
<p>As you can see, you need to register both in the <aclass="reference external"href="https://pypi.python.org/pypi?%3Aaction=register_form">main pypi
</pre></div>
</td></tr></table><p>As you can see, you need to register both in the <aclass="reference external"href="https://pypi.python.org/pypi?%3Aaction=register_form">main pypi
repository</a> and
the <aclass="reference external"href="https://testpypi.python.org/pypi?%3Aaction=register_form">testing
server</a>.
@ -145,6 +156,7 @@ The usernames and passwords might be different, that is up to you!</p>
</div>
<divclass="section"id="prepare-your-package">
<h2>Prepare your package</h2>
<p>This should be the structure:</p>
<preclass="literal-block">
root-dir/ # Any name you want
setup.py
@ -159,32 +171,48 @@ root-dir/ # Any name you want
<spanclass="n">packages</span><spanclass="o">=</span><spanclass="p">[</span><spanclass="s">'mypackage'</span><spanclass="p">],</span><spanclass="c"># this must be the same as the name above</span>
<spanclass="n">version</span><spanclass="o">=</span><spanclass="s">'{ version }'</span><spanclass="p">,</span>
<spanclass="n">url</span><spanclass="o">=</span><spanclass="s">'https://github.com/{user}/{package}'</span><spanclass="p">,</span><spanclass="c"># URL to the github repo</span>
<spanclass="n">keywords</span><spanclass="o">=</span><spanclass="p">[</span><spanclass="s">'websockets'</span><spanclass="p">,</span><spanclass="s">'display'</span><spanclass="p">,</span><spanclass="s">'d3'</span><spanclass="p">],</span><spanclass="c"># list of keywords that represent your package</span>
2</pre></div></td><tdclass="code"><divclass="highlight"><pre>git tag <spanclass="o">{</span>version<spanclass="o">}</span> -m <spanclass="s2">"{ Description of this tag/version}"</span>