Skip to content

Commit

Permalink
Update dev script
Browse files Browse the repository at this point in the history
- pep8 -> pycodestyle
- remove develop.py because devlpr is not mature enough
- regenerate docs
  • Loading branch information
jacquev6 committed Feb 9, 2018
1 parent 7427812 commit b8bc990
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 46 deletions.
2 changes: 1 addition & 1 deletion ActionTree/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ def _run_action(self, action, action_id, dependency_statuses):
os.close(pipe_r)
try:
self._check_picklability((exception, return_value))
except: # Not doctested: mandatory picklability is more an issue than a feature
except BaseException: # Not doctested: mandatory picklability is more an issue than a feature
self.events.put((PICKLING_EXCEPTION, action_id, ()))
else:
end_time = datetime.datetime.now()
Expand Down
32 changes: 0 additions & 32 deletions develop.py

This file was deleted.

6 changes: 3 additions & 3 deletions docs/reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ <h1>Reference<a class="headerlink" href="#reference" title="Permalink to this he
<dl class="method">
<dt id="ActionTree.DependencyGraph.get_graphviz_graph">
<code class="descname">get_graphviz_graph</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#ActionTree.DependencyGraph.get_graphviz_graph" title="Permalink to this definition"></a></dt>
<dd><p>Return a <a class="reference external" href="http://graphviz.readthedocs.io/en/stable/api.html#graphviz.Digraph" title="(in graphviz v0.8)"><code class="xref py py-class docutils literal"><span class="pre">graphviz.Digraph</span></code></a> of this dependency graph.</p>
<dd><p>Return a <a class="reference external" href="http://graphviz.readthedocs.io/en/stable/api.html#graphviz.Digraph" title="(in graphviz v0.8.2)"><code class="xref py py-class docutils literal"><span class="pre">graphviz.Digraph</span></code></a> of this dependency graph.</p>
<p>See also <a class="reference internal" href="#ActionTree.DependencyGraph.write_to_png" title="ActionTree.DependencyGraph.write_to_png"><code class="xref py py-meth docutils literal"><span class="pre">write_to_png()</span></code></a> for the simplest use-case.</p>
</dd></dl>

Expand All @@ -627,15 +627,15 @@ <h1>Reference<a class="headerlink" href="#reference" title="Permalink to this he
<dl class="method">
<dt id="ActionTree.GanttChart.get_mpl_figure">
<code class="descname">get_mpl_figure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#ActionTree.GanttChart.get_mpl_figure" title="Permalink to this definition"></a></dt>
<dd><p>Return a <a class="reference external" href="http://matplotlib.org/api/figure_api.html#matplotlib.figure.Figure" title="(in Matplotlib v2.0.2)"><code class="xref py py-class docutils literal"><span class="pre">matplotlib.figure.Figure</span></code></a> of this Gantt chart.</p>
<dd><p>Return a <a class="reference external" href="https://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure" title="(in Matplotlib v2.1.2)"><code class="xref py py-class docutils literal"><span class="pre">matplotlib.figure.Figure</span></code></a> of this Gantt chart.</p>
<p>See also <a class="reference internal" href="#ActionTree.GanttChart.plot_on_mpl_axes" title="ActionTree.GanttChart.plot_on_mpl_axes"><code class="xref py py-meth docutils literal"><span class="pre">plot_on_mpl_axes()</span></code></a> if you want to draw the Gantt chart on your own matplotlib figure.</p>
<p>See also <a class="reference internal" href="#ActionTree.GanttChart.write_to_png" title="ActionTree.GanttChart.write_to_png"><code class="xref py py-meth docutils literal"><span class="pre">write_to_png()</span></code></a> for the simplest use-case.</p>
</dd></dl>

<dl class="method">
<dt id="ActionTree.GanttChart.plot_on_mpl_axes">
<code class="descname">plot_on_mpl_axes</code><span class="sig-paren">(</span><em>ax</em><span class="sig-paren">)</span><a class="headerlink" href="#ActionTree.GanttChart.plot_on_mpl_axes" title="Permalink to this definition"></a></dt>
<dd><p>Plot this Gantt chart on the provided <a class="reference external" href="http://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes" title="(in Matplotlib v2.0.2)"><code class="xref py py-class docutils literal"><span class="pre">matplotlib.axes.Axes</span></code></a>.</p>
<dd><p>Plot this Gantt chart on the provided <a class="reference external" href="https://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes" title="(in Matplotlib v2.1.2)"><code class="xref py py-class docutils literal"><span class="pre">matplotlib.axes.Axes</span></code></a>.</p>
<p>See also <a class="reference internal" href="#ActionTree.GanttChart.write_to_png" title="ActionTree.GanttChart.write_to_png"><code class="xref py py-meth docutils literal"><span class="pre">write_to_png()</span></code></a> and <a class="reference internal" href="#ActionTree.GanttChart.get_mpl_figure" title="ActionTree.GanttChart.get_mpl_figure"><code class="xref py py-meth docutils literal"><span class="pre">get_mpl_figure()</span></code></a> for the simpler use-cases.</p>
</dd></dl>

Expand Down
15 changes: 5 additions & 10 deletions run_development_cycle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,25 @@ clear

git checkout docs

python2 setup.py test --quiet

# ./develop.py dependencies


./develop.py test
python3 setup.py test --quiet

python2 setup.py build_sphinx --builder=doctest

python2 setup.py check --strict --metadata --restructuredtext

pycodestyle --max-line-length=120 ActionTree *.py doc/conf.py

pep8 --max-line-length=120 ActionTree *.py doc/conf.py


python setup.py build_sphinx
python2 setup.py build_sphinx
rm -rf docs
cp -r build/sphinx/html docs
echo
echo "See documentation in $(pwd)/docs/index.html"
echo


# python3 setup.py install
# cd demo
# ./demo.py


echo "Development cycle OK"

0 comments on commit b8bc990

Please sign in to comment.