Skip to content

Commit

Permalink
Remove cvxpy cap
Browse files Browse the repository at this point in the history
The bug in cvxpy 1.1.x that was breaking the aqua usage has been fixed
in the latest 1.1.3 release (see Qiskit/qiskit-aer#832 and
Qiskit/qiskit-aer#779 for more details). Since the bug is fixed we can
remove the version cap an enable newer versions of cvxpy to be
installed. Exclude rules are left on the setuptools extra requirement so
that end users don't accidently try to use a version known not to run.
  • Loading branch information
mtreinish committed Jul 30, 2020
1 parent ec502dd commit fb8128b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
- sudo apt-get -y install hunspell-en-us
- pip install pyenchant
- pip install cplex
- pip install "cvxpy>1.0.0,<1.1.0"
- pip install "cvxpy>1.0.0"
- pip install https://github.com/rpmuller/pyquante2/archive/master.zip --progress-bar off
script:
- pip check
Expand All @@ -148,7 +148,7 @@ jobs:
if: tag IS blank
python: 3.8
install:
- pip install "cvxpy>1.0.0,<1.1.0"
- pip install "cvxpy>1.0.0"
- pip install https://github.com/rpmuller/pyquante2/archive/master.zip --progress-bar off
script:
- make lint
Expand All @@ -174,7 +174,7 @@ jobs:
- aqua137.dep
before_script:
- pip install cplex
- pip install "cvxpy>1.0.0,<1.1.0"
- pip install "cvxpy>1.0.0"
- export PYTHON="coverage3 run --source qiskit/aqua,qiskit/chemistry,qiskit/finance,qiskit/ml,qiskit/optimization --omit */gauopen/* --parallel-mode"
script:
- stestr --test-path test/aqua run --blacklist-file selection.txt 2> >(tee /dev/stderr out.txt > /dev/null)
Expand All @@ -190,7 +190,7 @@ jobs:
paths: aqua138.dep
python: 3.8
before_script:
- pip install "cvxpy>1.0.0,<1.1.0"
- pip install "cvxpy>1.0.0"
script:
- stestr --test-path test/aqua run --blacklist-file selection.txt 2> >(tee /dev/stderr out.txt > /dev/null)
- python tools/extract_deprecation.py -file out.txt -output aqua138.dep
Expand All @@ -205,7 +205,7 @@ jobs:
- aqua237.dep
before_script:
- pip install cplex
- pip install "cvxpy>1.0.0,<1.1.0"
- pip install "cvxpy>1.0.0"
- export PYTHON="coverage3 run --source qiskit/aqua,qiskit/chemistry,qiskit/finance,qiskit/ml,qiskit/optimization --omit */gauopen/* --parallel-mode"
script:
- stestr --test-path test/aqua run --whitelist-file selection.txt 2> >(tee /dev/stderr out.txt > /dev/null)
Expand All @@ -221,7 +221,7 @@ jobs:
paths: aqua238.dep
python: 3.8
before_script:
- pip install "cvxpy>1.0.0,<1.1.0"
- pip install "cvxpy>1.0.0"
script:
- stestr --test-path test/aqua run --whitelist-file selection.txt 2> >(tee /dev/stderr out.txt > /dev/null)
- python tools/extract_deprecation.py -file out.txt -output aqua238.dep
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
extras_require={
'torch': ["torch; sys_platform == 'linux' or (python_version < '3.8' and sys_platform != 'win32')"],
'cplex': ["cplex; python_version >= '3.6' and python_version < '3.8'"],
'cvx': ['cvxpy>1.0.0,<1.1.0'],
'cvx': ['cvxpy>1.0.0,!=1.1.0,!=1.1.1,!=1.1.2'],
'pyscf': ["pyscf; sys_platform != 'win32'"],
},
zip_safe=False
Expand Down

0 comments on commit fb8128b

Please sign in to comment.