Skip to content

Commit

Permalink
Qiskit ecosystem? (#204)
Browse files Browse the repository at this point in the history
* Create ecosystem.json

(cherry picked from commit f433644)

* Update requirements.txt

(cherry picked from commit 2c4ff21)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* Update Dockerfile

* Update Dockerfile

update protobuf

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
gcattan and pre-commit-ci[bot] authored Nov 6, 2023
1 parent 6103055 commit f158e10
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get -y install build-essential

RUN pip install urllib3==1.26.12
RUN pip install "numpy<1.24"
RUN pip install qiskit-terra==0.45.0rc1
RUN pip install qiskit-terra==0.45.0
RUN python setup.py develop
RUN pip install .[docs]
RUN pip install .[tests]
Expand All @@ -24,10 +24,10 @@ RUN mkdir /root/mne_data
RUN mkdir /home/mne_data

## Workaround for firestore
RUN pip install protobuf==4.25.0rc2
RUN pip install protobuf==4.25.0
RUN pip install google_cloud_firestore==2.13.0
### Missing __init__ file in protobuf
RUN touch /usr/local/lib/python3.9/site-packages/protobuf-4.25.0rc2-py3.9-linux-x86_64.egg/google/__init__.py
RUN touch /usr/local/lib/python3.9/site-packages/protobuf-4.25.0-py3.9-linux-x86_64.egg/google/__init__.py
## google.cloud.location is never used in these files, and is missing in path.
RUN sed -i 's/from google.cloud.location import locations_pb2//g' '/usr/local/lib/python3.9/site-packages/google_cloud_firestore-2.13.0-py3.9.egg/google/cloud/firestore_v1/services/firestore/client.py'
RUN sed -i 's/from google.cloud.location import locations_pb2//g' '/usr/local/lib/python3.9/site-packages/google_cloud_firestore-2.13.0-py3.9.egg/google/cloud/firestore_v1/services/firestore/transports/base.py'
Expand Down
4 changes: 4 additions & 0 deletions ecosystem.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dependencies_files": ["requirements.txt"],
"extra_dependencies": ["pytest", "seaborn", "flake8", "mne", "pooch"]
}
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ qiskit-ibm-provider==0.7.2
qiskit-optimization==0.5.0
qiskit-aer==0.13.0
cvxpy==1.4.1
scipy==1.11.3
docplex>=2.21.207
firebase_admin==6.2.0
tqdm

0 comments on commit f158e10

Please sign in to comment.