Skip to content

Commit 867b8b5

Browse files
author
Erik Nielsen
committed
Merge branch 'beta' (to become release 0.9.5)
2 parents 65a863d + 02985ff commit 867b8b5

File tree

275 files changed

+187541
-457487
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

275 files changed

+187541
-457487
lines changed

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ test/test_packages/cmp_chk_files/Fake_Dataset_none.txt.cache
4141
*.aux
4242
*.dvi
4343
*.toc
44+
build/*
45+
dist/*
46+
packages/pygsti.egg-info
47+
packages/pygsti/baseobjs/parsetab_string.py
48+
packages/pygsti/objects/fastgatecalc.cpp
49+
packages/pygsti/objects/fastreplib.cpp
50+
packages/pygsti/tools/fastcalc.c
51+
4452

4553
# Packages #
4654
############
@@ -88,6 +96,11 @@ scripts/profiling/report/tp_report.py
8896
scripts/profiling/report/rigetti_nocache.py
8997

9098
# Profiling data #
99+
#################
91100
scripts/profiling/output
92101
scripts/profiling/data
93102

103+
# Other Local-only Files #
104+
############################
105+
local
106+

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,15 @@ env:
2323
before_install:
2424
- sudo apt-get -qq update
2525
- sudo apt-get -qq install gfortran libblas-dev liblapack-dev
26-
- sudo apt-get -qq install openmpi-bin openmpi-common openssh-client openssh-server libopenmpi1.3 libopenmpi-dbg libopenmpi-dev >/dev/null
27-
- sudo bash CI/install.sh # Only install texlive and extensions if we need them
26+
- sudo apt-get -qq install openmpi-bin openmpi-common openssh-client openssh-server libopenmpi1.3 libopenmpi-dbg libopenmpi-dev > /dev/null
27+
- travis_wait 30 "sudo bash CI/install.sh > /dev/null 2>&1"
2828
- "export DISPLAY=:99.0"
2929
- "sh -e /etc/init.d/xvfb start" #some tests require a display
3030
- sleep 3 # give xvfb some time to start
3131

3232
install:
33-
- travis_retry travis_wait pip install -r requirements.txt
34-
- pip install --global-option=build_ext --global-option="-I/usr/include/suitesparse" cvxpy cvxopt >/dev/null
35-
- pip install ipython mpi4py zmq coverage msgpack-python cython psutil >/dev/null
36-
- pip install -e . >/dev/null
33+
- pip install zmq coverage >/dev/null
34+
- pip install -e .[travisci]
3735

3836
cache:
3937
pip: true
@@ -42,8 +40,10 @@ cache:
4240
#Script For default "test" stage
4341
script:
4442
- cd test
45-
- travis_wait 50 python travisTests.py # Tests may take some time!
46-
- cd ..
43+
- python travisTests.py # just produce test_packages/runTravisTests.sh
44+
- cd test_packages
45+
- source runTravisTests.sh # no need for travis_wait (always outputs every 9m)
46+
- cd ../..
4747

4848
jobs:
4949
include:

CI/install.sh

Lines changed: 34 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
# This script needs to be run as admin
3+
sudo apt-get update > /dev/null 2>&1
34

45
##An example of how to search for a file in apt packages
56
## (useful for debugging TravisCI build errors)
@@ -16,49 +17,39 @@
1617
# lapack as this requested library, which allow the build to
1718
# proceed since it apparently doesn't actually require anything
1819
# in the non-existent library...
19-
apt-get install libsuitesparse-dev
20-
cp /usr/lib/liblapack.so /usr/lib/libsuitesparseconfig.so
20+
apt-get install libsuitesparse-dev > /dev/null 2>&1
21+
cp /usr/lib/liblapack.so /usr/lib/libsuitesparseconfig.so > /dev/null 2>&1
2122

23+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test > /dev/null 2>&1
24+
sudo apt-get update > /dev/null 2>&1
2225

23-
#Latex is no longer needed!
24-
#echo "Checking if pdflatex install is needed"
25-
#
26-
#if [ "$ReportA" == "True" ]; then
27-
# apt-get -qq install texlive-full
28-
#fi
29-
#
30-
#if [ "$Drivers" == "True" ]; then
31-
# apt-get -qq install texlive-latex-base
32-
#fi
33-
#
34-
#if [ "$ReportA" == "True" ] || [ "$Drivers" == "True" ]; then
35-
# echo "Installing pdflatex requirements"
36-
# pushd /usr/share/texmf-texlive/
37-
# wget http://mirrors.ctan.org/install/macros/latex/contrib/etoolbox.tds.zip
38-
# wget http://mirrors.ctan.org/install/macros/latex/contrib/adjustbox.tds.zip
39-
# wget http://mirrors.ctan.org/install/macros/latex/contrib/collectbox.tds.zip
40-
# wget http://mirrors.ctan.org/install/macros/latex/contrib/pdfcomment.tds.zip
41-
# wget http://mirrors.ctan.org/install/macros/latex/contrib/datetime2.tds.zip
42-
# wget http://mirrors.ctan.org/install/macros/generic/tracklang.tds.zip
43-
# wget http://mirrors.ctan.org/install/macros/latex/contrib/bezos.tds.zip
44-
# wget http://mirrors.ctan.org/install/macros/latex/contrib/hyperref.tds.zip
45-
# wget http://mirrors.ctan.org/install/macros/latex/contrib/oberdiek.tds.zip
46-
# wget http://mirrors.ctan.org/install/macros/generic/ifxetex.tds.zip
47-
# wget http://mirrors.ctan.org/install/macros/latex/contrib/standalone.tds.zip
48-
# unzip -o etoolbox.tds.zip
49-
# unzip -o adjustbox.tds.zip
50-
# unzip -o collectbox.tds.zip
51-
# unzip -o pdfcomment.tds.zip
52-
# unzip -o datetime2.tds.zip
53-
# unzip -o tracklang.tds.zip
54-
# unzip -o bezos.tds.zip
55-
# unzip -o hyperref.tds.zip
56-
# unzip -o oberdiek.tds.zip
57-
# unzip -o ifxetex.tds.zip
58-
# unzip -o standalone.tds.zip
59-
# texhash
60-
# popd
61-
#else
62-
# echo "pdflatex is not required for these tests (ReportA is not set to \"True\")"
63-
#fi
26+
sudo update-alternatives --remove-all gcc > /dev/null 2>&1
27+
sudo update-alternatives --remove-all g++ > /dev/null 2>&1
28+
sudo apt-get install gcc-4.8 > /dev/null 2>&1
29+
sudo apt-get install g++-4.8 > /dev/null 2>&1
30+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 > /dev/null 2>&1
31+
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20 > /dev/null 2>&1
32+
sudo update-alternatives --config gcc > /dev/null 2>&1
33+
sudo update-alternatives --config g++ > /dev/null 2>&1
34+
sudo apt-get update > /dev/null 2>&1
35+
sudo apt-get upgrade -y > /dev/null 2>&1
36+
sudo apt-get dist-upgrade > /dev/null 2>&1
6437

38+
export CXX=g++ > /dev/null 2>&1
39+
40+
sudo apt remove cmake > /dev/null 2>&1
41+
42+
# Install the following version of CMAKE
43+
version=3.11 > /dev/null 2>&1
44+
build=1 > /dev/null 2>&1
45+
mkdir ~/temp > /dev/null 2>&1
46+
cd ~/temp > /dev/null 2>&1
47+
wget https://cmake.org/files/v$version/cmake-$version.$build.tar.gz > /dev/null 2>&1
48+
tar -xzvf cmake-$version.$build.tar.gz > /dev/null 2>&1
49+
cd cmake-$version.$build/ > /dev/null 2>&1
50+
./bootstrap > /dev/null 2>&1
51+
make -j4 > /dev/null 2>&1
52+
sudo make install > /dev/null 2>&1
53+
cd .. > /dev/null 2>&1
54+
rm -r temp > /dev/null 2>&1
55+
cmake --version

MANIFEST.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
include README COPYING license.txt
2-
include install_locally.py
2+
include install_locally.py
3+
include requirements.txt
4+
include optional-requirements.txt
35
include jupyter_notebooks/Tutorials/*.ipynb
46
include jupyter_notebooks/Examples/*.ipynb
57
include jupyter_notebooks/FAQ.ipynb

doc/build/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sphinx
2+
numpydoc
3+
sphinx_rtd_theme

0 commit comments

Comments
 (0)