Skip to content

Commit

Permalink
Create a PennyLane-lightning requirements-dev.txt and update the Dock…
Browse files Browse the repository at this point in the history
…erfile (#330)

* Create a requirements-dev.txt

* Update tests and benchmarks

* Improve dockerfile
  • Loading branch information
AmintorDusko authored Aug 18, 2022
1 parent 87538ec commit c15fa0d
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

### Improvements

* Introduces requirements-dev.txt and improves dockerfile.
[(#330)](https://github.com/PennyLaneAI/pennylane-lightning/pull/330)

### Documentation

### Bug fixes
Expand All @@ -14,6 +17,8 @@

This release contains contributions from (in alphabetical order):

Amintor Dusko

---

# Release 0.25.0
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ jobs:
run: |
cd main
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install matplotlib
pip install git+https://github.com/PennyLaneAI/pennylane.git@master
- name: Install lightning.qubit device (master)
run: |
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/tests_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ jobs:
run: |
cd main
python -m pip install --upgrade pip
pip install -r requirements.txt
pip uninstall pennylane -y
pip install git+https://github.com/PennyLaneAI/pennylane.git
pip install -r requirements-dev.txt
- name: Install ML libraries for interfaces
run: |
Expand Down Expand Up @@ -285,9 +283,7 @@ jobs:
run: |
cd main
python -m pip install --upgrade pip
pip install -r requirements.txt
pip uninstall pennylane -y
pip install git+https://github.com/PennyLaneAI/pennylane.git
pip install -r requirements-dev.txt
- name: Install ML libraries for interfaces
run: |
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/tests_without_binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ jobs:
run: |
cd main
python -m pip install --upgrade pip
pip install -r requirements.txt
pip uninstall pennylane -y
pip install git+https://github.com/PennyLaneAI/pennylane.git
pip install -r requirements-dev.txt
- name: Install lightning.qubit device
run: |
Expand Down
8 changes: 3 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ RUN apt-get update \
python3-pip \
python3-venv \
python3-dev \
gcc-10 g++-10 cpp-10 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10 \
&& /usr/sbin/update-ccache-symlinks \
&& mkdir /opt/ccache \
&& ccache --set-config=cache_dir=/opt/ccache \
Expand All @@ -44,12 +46,8 @@ WORKDIR /opt/pennylane-lightning
COPY . .

RUN pip install --no-cache-dir wheel \
pytest \
pytest-cov \
pytest-mock \
flaky \
sphinx \
&& pip install --no-cache-dir -r requirements.txt \
&& pip install --no-cache-dir -r requirements-dev.txt \
&& pip uninstall -y PennyLane_Lightning \
&& make install \
&& make test-python \
Expand Down
2 changes: 1 addition & 1 deletion pennylane_lightning/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.26.0-dev"
__version__ = "0.26.0-dev1"
8 changes: 8 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ninja
flaky
numpy
git+https://github.com/PennyLaneAI/pennylane.git@master
pybind11
pytest
pytest-cov
pytest-mock
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ninja
flaky
numpy
pennylane>=0.15
pennylane~=0.25
pybind11
pytest
pytest-cov
Expand Down

0 comments on commit c15fa0d

Please sign in to comment.