Commit b0e4f996 authored by Guillaume Sagnol's avatar Guillaume Sagnol

release ready: todo from sdist

parent ccb05e2e
import os
files = os.popen('ls full_html/last/*.html').readlines()
files = [f[:-1] for f in files if f[:6] not in ('search','py-mod','genind')]
for f in files:
fi=open(f,'r')
fitmp=open(f+'tmp','w')
line = fi.readline()
while '</head>' not in line:
fitmp.write(line)
line = fi.readline()
fitmp.write('\n')
fitmp.write('\n')
fitmp.write(' <script type="text/javascript">\n')
fitmp.write('\n')
fitmp.write(' var _gaq = _gaq || [];\n')
fitmp.write(" _gaq.push(['_setAccount', 'UA-33037163-1']);\n")
fitmp.write(" _gaq.push(['_trackPageview']);\n")
fitmp.write('\n')
fitmp.write(" (function() {\n")
fitmp.write(" var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n")
fitmp.write(" ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n")
fitmp.write(" var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n")
fitmp.write(" })();\n")
fitmp.write('\n')
fitmp.write(" </script>\n")
fitmp.write('\n')
while line:
if 'tar.gz' in line:
vsplit=line.split('tar.gz')
version=vsplit[0].split('PICOS')[1][1:-1]
vsplit=version.split('.')
ocstring=('''onClick="javascript: _gaq.push(['_trackPageview', '/downloads/version'''
+str(vsplit[0]) +str(vsplit[1]) +str(vsplit[2])
+ '''']);"''')
indtar = line.index('tar.gz') + 7
line = line[:indtar]+' '+ocstring+line[indtar:]
fitmp.write(line)
line = fi.readline()
fi.close()
fitmp.close()
os.system('mv '+f+'tmp '+f)
#newlines =['<body>',
#'<div class="admonition warning">',
#'<p class="first admonition-title">Warning</p>',
#'<p class="last">You are consulting the doc of a former version of PICOS.',
#'The latest version is <a href="../index.html">HERE</a>. </p>',
#'</div>'
#]
newlines = [
'<div role="main" class="document">',
'<div class="admonition warning" id="api">',
'<p class="first admonition-title">Warning</p>',
'<p class="last">You are consulting the doc of a former version of PICOS. The',
' latest version is <a href="../index.html">HERE</a>. </p>',
'</div>']
import os
files = os.popen('ls *.html').readlines()
files = [f[:-1] for f in files if f[:6] not in ('search','py-mod','genind')]
for f in files:
print f
fi=open(f,'r')
fitmp=open(f+'tmp','w')
line = fi.readline()
#while '<body>' not in line:
while '<div role="main" class="document">' not in line:
fitmp.write(line)
line = fi.readline()
for ln in newlines:
fitmp.write(ln)
line = fi.readline()
while line:
fitmp.write(line)
line = fi.readline()
fi.close()
fitmp.close()
os.system('mv '+f+'tmp '+f)
......@@ -8,6 +8,13 @@
Change History
==============
* 29 Aug. 15: **Picos** :ref:`1.1.1 <download>` **Released**
Minor release with following changes:
* Partial trace of an Affine Expression, cf. :func:`partial_trace() <picos.tools.partial_trace>`
* Bugfix for compatibility with python3 (thanks to `Sergio Callegari <http://www.unibo.it/faculty/sergio.callegari>`_)
* Initial support for the SDPA solver (with the option ``solver='sdpa'``, picos works as a wrapper around the SDPA executable based on the :func:`write_to_file() <picos.Problem.write_to_file()>` function; thanks to `Petter Wittek <http://peterwittek.com/>`_ )
* Better PEP8-compliance
* 15 Apr. 15: **Picos** :ref:`1.1.0 <download>` **Released**
* PICOS is now compatible with **python 3+** (and remains compatible with python 2.6+). Many thanks to `Sergio Callegari <http://www.unibo.it/faculty/sergio.callegari>`_ for this compatibility layer ! If you plan to work with PICOS and python3, think to install the most recent version of your solver (Mosek, Cplex, Gurobi, or Cvxopt). SCIP is not supported in python3+ at this point (but remains supported with python 2.x).
......
......@@ -179,8 +179,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="the-picos-reference">
<span id="api"></span><h1>The PICOS Reference<a class="headerlink" href="#the-picos-reference" title="Permalink to this headline"></a></h1>
<div class="toctree-wrapper compound">
......
......@@ -178,8 +178,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="change-history">
<span id="changes"></span><h1>Change History<a class="headerlink" href="#change-history" title="Permalink to this headline"></a></h1>
<blockquote>
......
......@@ -182,8 +182,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="complex-semidefinite-programming">
<span id="complex"></span><h1><strong>Complex Semidefinite Programming</strong><a class="headerlink" href="#complex-semidefinite-programming" title="Permalink to this headline"></a></h1>
<p>Since the version 1.0.1, it is possible to
......
......@@ -182,8 +182,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="constraint">
<span id="id1"></span><h1><strong>Constraint</strong><a class="headerlink" href="#constraint" title="Permalink to this headline"></a></h1>
<dl class="class">
......
......@@ -179,8 +179,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="download">
<span id="id1"></span><h1>Download<a class="headerlink" href="#download" title="Permalink to this headline"></a></h1>
<p>The latest version of PICOS can be downloaded here:</p>
......
......@@ -179,8 +179,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="examples">
<span id="id1"></span><h1>Examples<a class="headerlink" href="#examples" title="Permalink to this headline"></a></h1>
<div class="toctree-wrapper compound">
......
......@@ -182,8 +182,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="expression">
<span id="id1"></span><h1><strong>Expression</strong><a class="headerlink" href="#expression" title="Permalink to this headline"></a></h1>
<dl class="class">
......
......@@ -182,8 +182,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="cut-problems-in-graphs">
<span id="graphs"></span><h1><strong>Cut problems in graphs</strong><a class="headerlink" href="#cut-problems-in-graphs" title="Permalink to this headline"></a></h1>
<p>The code below initializes the graph used in all the examples of this page.
......
......@@ -178,8 +178,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="picos-a-python-interface-for-conic-optimization-solvers">
<h1>PICOS: A Python Interface for Conic Optimization Solvers<a class="headerlink" href="#picos-a-python-interface-for-conic-optimization-solvers" title="Permalink to this headline"></a></h1>
<img alt="_images/picos_big_trans.gif" src="_images/picos_big_trans.gif" />
......
......@@ -179,8 +179,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="introduction">
<span id="intro"></span><h1>Introduction<a class="headerlink" href="#introduction" title="Permalink to this headline"></a></h1>
<p>PICOS is a user friendly interface
......
......@@ -182,8 +182,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="examples-from-optimal-experimental-design">
<span id="optdes"></span><h1><strong>Examples from Optimal Experimental Design</strong><a class="headerlink" href="#examples-from-optimal-experimental-design" title="Permalink to this headline"></a></h1>
<p>Optimal experimental design is a theory
......
......@@ -182,8 +182,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="problem">
<span id="id1"></span><h1><strong>Problem</strong><a class="headerlink" href="#problem" title="Permalink to this headline"></a></h1>
<dl class="class">
......
......@@ -182,8 +182,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="summary-of-implemented-functions">
<span id="summary"></span><h1><strong>Summary of implemented functions</strong><a class="headerlink" href="#summary-of-implemented-functions" title="Permalink to this headline"></a></h1>
<div class="section" id="operators-to-manipulate-picos-expressions">
......
......@@ -182,8 +182,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="module-picos.tools">
<span id="picos-tools"></span><span id="tools"></span><h1><strong>picos.tools</strong><a class="headerlink" href="#module-picos.tools" title="Permalink to this headline"></a></h1>
<dl class="function">
......
......@@ -182,8 +182,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="tutorial">
<span id="tutocontent"></span><h1><strong>Tutorial</strong><a class="headerlink" href="#tutorial" title="Permalink to this headline"></a></h1>
<p>First of all, let us import the PICOS module and cvxopt</p>
......
......@@ -179,8 +179,7 @@
</ul>
<hr/>
</div>
<div role="main" class="document">
<div role="main" class="document"><div class="admonition warning" id="api"><p class="first admonition-title">Warning</p><p class="last">You are consulting the doc of a former version of PICOS. The latest version is <a href="../index.html">HERE</a>. </p></div>
<div class="section" id="user-s-guide">
<span id="tuto"></span><h1>User&#8217;s guide<a class="headerlink" href="#user-s-guide" title="Permalink to this headline"></a></h1>
<p>Users who already know how picos works can have a look at this
......
......@@ -32,7 +32,7 @@ on every function of PICOS.
**News**
* xx Aug. 15: **Picos** :ref:`1.1.1 <download>` **Released**
* 29 Aug. 15: **Picos** :ref:`1.1.1 <download>` **Released**
Minor release with following changes:
* Partial trace of an Affine Expression, cf. :func:`partial_trace() <picos.tools.partial_trace>`
* Bugfix for compatibility with python3 (thanks to `Sergio Callegari <http://www.unibo.it/faculty/sergio.callegari>`_)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment