Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/v2-build-branch-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: V2 Build QML Branch - Dev
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1,3,5' # At 00:00 on Sunday (Monday am), Tuesday (Wednesday am), Thursday (Friday am).
- cron: '0 5 * * 1,3,5' # At 05:00 (12am EST) on Sunday (Monday am), Tuesday (Wednesday am), Thursday (Friday am).
#- cron: '0 10 * * *' # At 10:00 (5am EST) on every day-of-week. Use this during feature freeze.
Comment on lines +5 to +6
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the old cron job to account for UTC and added a commented out cron to use during feature freeze.


concurrency:
group: v2-build-qml-demo-branch-dev
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/v2-build-branch-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: V2 Build QML Branch - Master
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1,3,5' # At 00:00 on Sunday (Monday am), Tuesday (Wednesday am), Thursday (Friday am).
- cron: '0 5 * * 1,3,5' # At 05:00 (12am EST) on Sunday (Monday am), Tuesday (Wednesday am), Thursday (Friday am).

concurrency:
group: v2-build-qml-demo-branch-master
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/v2-build-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ jobs:

- name: Install pandoc, opencl, and graphviz
run: |
sudo apt-get update
sudo apt-get install -y \
ocl-icd-opencl-dev \
pandoc \
Expand Down
8 changes: 8 additions & 0 deletions dependencies/constraints-plc-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Specifies constraints for PennyLane, Lightning, and Catalyst dev builds.
# These need to be installed separately, and in a specific order, and as such are not controlled
# by the constraints-dev.txt file. Please do not change the order of these constraints.
# Use upper bounds targeting the next-to-next stable release so we continue to build RC branches during feature freeze.

pennylane-catalyst<0.15.0
pennylane-lightning<0.45.0
pennylane<0.45.0
4 changes: 4 additions & 0 deletions lib/qml/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def stable_constraints_file(self) -> Path:
def dev_constraints_file(self) -> Path:
return self.repo_root / "dependencies" / "constraints-dev.txt"

@property
def plc_dev_constraints_file(self) -> Path:
return self.repo_root / "dependencies" / "constraints-plc-dev.txt"

@property
def build_requirements_file(self) -> Path:
return self.repo_root / "dependencies" / "requirements-build.txt"
42 changes: 18 additions & 24 deletions lib/qml/lib/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,30 +292,24 @@ def _build_demo(
# If dev, we need to re-install the latest Catalyst, then Lightning, then PennyLane
# in that order, regardless of conflicts/warnings.
if dev:
# Catalyst
cmds.pip_install(
build_venv.python,
"--upgrade",
"--extra-index-url",
"https://test.pypi.org/simple/",
"PennyLane-Catalyst",
use_uv=False,
quiet=False,
pre=True,
)
# Lightning
cmds.pip_install(
build_venv.python,
"--upgrade",
"--extra-index-url",
"https://test.pypi.org/simple/",
"PennyLane-Lightning",
use_uv=False,
quiet=False,
pre=True,
)
if dev:
# Need dev version of PennyLane to build, whether or not we're executing
with open(ctx.plc_dev_constraints_file, "r") as f:
packages = f.readlines()
for package in packages:
package = package.strip()
if package and not package.startswith("#"):
cmds.pip_install(
build_venv.python,
"--upgrade",
"--index-url",
"https://test.pypi.org/simple/",
package,
use_uv=False,
quiet=False,
pre=True,
)

elif dev:
# Need latest version of PennyLane to build, whether or not we're executing
cmds.pip_install(
build_venv.python,
"--upgrade",
Expand Down