Commit d98cd1a0 authored by Guillaume Sagnol's avatar Guillaume Sagnol

deployment files cleaned

parent 92f63241

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

lancer python ../../add_warning_notlast.py from directory /doc/full_html/x.x.x (former_version)
lancer script add_google_script directly from /doc
Changer CHANGE file
Creer dist file (python setup.py sdist) -> check that the doc is in the dist file ???
make html (to copy dist)
rsync to /www:
rsync -luzvr full_html/* opts1.zib.de:/www/Abt-Optimization/picos
Register on pypi (python setup.py register, username guillaume.sagnol)
sed -i 's/Picos 0\.1\.0/Picos 0\.1\.1/g' picos/*.py
et change version num dans conf.py and setup.py and __init__.py
make new directory in the full_html directory and update the symolic link "last" with the ".." trick
\ No newline at end of file
website: ask Paul how to make redirections ?
dualize does not work on cplxsdp
solve re3 with solveviadual (pb matrice pas symmetrique -> but OK with A+A.H/2: check)
problem de rang avec cvxopt: remove constraints redondantes ?
add new contributors (Marco Dalai, Peter Wittek ?)
trace (AM^p)
robust -- uncertainty sets
read solution partially
fix some variables as constant
solve_via_dual avec cvxopt -- something special to do (finir primalize())
probleme qd solve problems 2 times in a row sequentially (test_cutting_plane.py avec mosek6, but only at zib (?))
problem avec duals de gurobi pour probleme dsocp de test_picos.py (faire testSOCP5 ?). Bug gurobi -> min example ?
write_to_file --> scaled vars [mettre ds nom variable ?]
file reader
mps writer
dat-s writer with option to desymmetrize the matrices
Better Exception handling in _retrieve_matrix
quad expression of dimension>1 ?
QP avec cvxopt
doc populate et related properties (number_solutions,value_alt,...)
and options
* pool_size=None (solver default) : maximum number of computed
solutions in the solution pool.
* pool_gap = None (0%) : keeps only the solution
within this gap in the pool
duals avec zibopt ?
documenter dat-sx format ?
sqp method and related options:
* step_sqp=1 : 'first step length for the sequential quadratic programming procedure'
* harmonic_steps=True : step at the ith step of the sqp procedure is step_sqp/i]
no string mode.
generaliser les inplace operators (avoid seelfcopy as much as possible)
lancer script add_google_script
Changer CHANGE file
Creer dist file (python setup.py sdist)
move to /www, and change root-index with 3 <meta tags> and $sed -i 's/href="/href="v013\//g' index.html
Register on pypi (python setup.py register, username guillaume.sagnol)
sed -i 's/Picos 0\.1\.0/Picos 0\.1\.1/g' picos/*.py
et change version num dans conf.py and setup.py and __init__.py
This diff is collapsed.
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)
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: beb97d53a22f7e7a57996db44bfe9314
tags: fbb0d17656682115ca4d033fb2f83ba1
[Dolphin]
AdditionalInfoV2=Details_Size,Details_Date,CustomizedDetails
ShowPreview=true
Sorting=1
Timestamp=2012,12,8,23,56,18
Version=2
ViewMode=1
[Settings]
ShowDotFiles=true