Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Candidate V0.28.2 #408

Merged
merged 31 commits into from
Jan 26, 2023
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2203397
Create v0.28.0 RC
mlxd Dec 12, 2022
cdf1927
Create release tag
mlxd Dec 19, 2022
efbded2
Update Changelog
mlxd Dec 19, 2022
4391a3e
Fix Python modules and locations for Windows wheels.
mlxd Jan 11, 2023
e9be0b5
Merge branch 'master' into v0.28.1_rc
mlxd Jan 11, 2023
2ab66c5
Remove local pip install
mlxd Jan 11, 2023
20a09ff
Temp enable wheel cahcing for Windows
mlxd Jan 11, 2023
cd65694
Update for release [no ci]
mlxd Jan 11, 2023
ac36864
Create release v0.28.1
mlxd Jan 11, 2023
65db86f
Modify for merging to master
mlxd Jan 11, 2023
e140a66
testing wheels build
AmintorDusko Jan 25, 2023
437fa3c
Trigger CI
AmintorDusko Jan 25, 2023
ad3d342
fix pennylane for CI/CD and update version
AmintorDusko Jan 25, 2023
b97a51d
store windows and macOs wheels
AmintorDusko Jan 25, 2023
41ffbf2
test
AmintorDusko Jan 25, 2023
0ec83cf
test internal fix
AmintorDusko Jan 25, 2023
cbb44c8
test internal fix
AmintorDusko Jan 25, 2023
e5817e7
if python is enabled make python package required
AmintorDusko Jan 25, 2023
7ccf37f
setup solution
AmintorDusko Jan 25, 2023
904edbb
update changelog
AmintorDusko Jan 25, 2023
7ee94d7
remove python required
AmintorDusko Jan 25, 2023
79f13c7
update changelog
AmintorDusko Jan 25, 2023
4ddd379
Trigger CI
AmintorDusko Jan 26, 2023
ca7f7a5
Merge branch 'v0.28.1_rc' into v0.28.2_rc0
AmintorDusko Jan 26, 2023
d2d9e45
clean requirement-dev file
AmintorDusko Jan 26, 2023
416bb43
Update .github/CHANGELOG.md
AmintorDusko Jan 26, 2023
1eeb33d
Update .github/workflows/wheel_macos_x86_64.yml
AmintorDusko Jan 26, 2023
376d93b
Update .github/workflows/wheel_win_x86_64.yml
AmintorDusko Jan 26, 2023
9648d74
change pennylane requirement
AmintorDusko Jan 26, 2023
5d6494c
Merge branch 'v0.28.2_rc0' of github.com:PennyLaneAI/pennylane-lightn…
AmintorDusko Jan 26, 2023
e0b31e7
Merge branch 'master' into v0.28.2_rc0
AmintorDusko Jan 26, 2023
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
24 changes: 17 additions & 7 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
# Release 0.29.0-dev
# Release 0.28.2

### New features since last release
### Bug fixes

### Breaking changes
* Fix Pybind11 module versioning and locations for Linux wheels.
AmintorDusko marked this conversation as resolved.
Show resolved Hide resolved
[(#407)](https://github.com/PennyLaneAI/pennylane-lightning/pull/407)

### Improvements
### Contributors

### Documentation
This release contains contributions from (in alphabetical order):

Amintor Dusko

---

# Release 0.28.1

### Bug fixes

* Fix Pybind11 module versioning and locations for Windows wheels.
[(#400)](https://github.com/PennyLaneAI/pennylane-lightning/pull/400)

### Contributors

This release contains contributions from (in alphabetical order):

Lee J. O'Riordan

---

# Release 0.28.0
Expand All @@ -31,8 +43,6 @@ This release contains contributions from (in alphabetical order):
* Improve the stopping condition method.
[(#386)](https://github.com/PennyLaneAI/pennylane-lightning/pull/386)

### Documentation

### Bug fixes

- Pin CMake to 3.24.x in wheel-builder to avoid Python not found error in CMake 3.25, when building wheels for PennyLane-Lightning-GPU.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/post_release_version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ jobs:
title: Version Bump
body: updated changelog and _version.py
branch: post-release-version-bump
reviewers: antalszava
reviewers: mlxd
base: master
2 changes: 1 addition & 1 deletion .github/workflows/pre_release_version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ jobs:
title: Version Bump
body: updated changelog and _version.py
branch: pre-release-version-bump
reviewers: antalszava
reviewers: mlxd
base: master
2 changes: 1 addition & 1 deletion .github/workflows/wheel_macos_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ jobs:
regex: '.*[0-9]+.[0-9]+.[0-9]+[-_]?rc[0-9]+'

- uses: actions/upload-artifact@v2
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
AmintorDusko marked this conversation as resolved.
Show resolved Hide resolved
with:
name: ${{ runner.os }}-wheels-${{ matrix.arch }}.zip
path: ./wheelhouse/*.whl
Expand Down
26 changes: 23 additions & 3 deletions .github/workflows/wheel_win_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
-Destination "D:\a\pennylane-lightning\pennylane-lightning\Kokkos" -Recurse -Force

- name: Install cibuildwheel
run: python -m pip install cibuildwheel~=2.11.0
run: python -m pip install cibuildwheel~=2.11.0 wheel

- name: Build wheels
env:
Expand All @@ -145,7 +145,7 @@ jobs:

# Python build settings
CIBW_BEFORE_BUILD: |
pip install pybind11 cmake~=3.24.0
pip install pybind11 cmake~=3.24.0 build

# Testing of built wheels
CIBW_TEST_REQUIRES: numpy~=1.21 scipy pytest pytest-cov pytest-mock flaky
Expand All @@ -160,16 +160,36 @@ jobs:

CIBW_BUILD_VERBOSITY: 3

CIBW_BUILD_FRONTEND: build

run: python -m cibuildwheel --output-dir wheelhouse

- name: Patch wheels
run: |
cd wheelhouse
$wheels = Get-ChildItem "./" -Filter *.whl
foreach ($i in $wheels){
python -m wheel unpack $i.Name
$name = $i.Name
$dirName = python -c "s = '$name'; print('-'.join(s.split('-')[0:2]))"
if (Test-Path -Path $dirName\pennylane_lightning\RelWithDebInfo) {
Move-Item -Path $dirName\pennylane_lightning\RelWithDebInfo\* -Destination $dirName\pennylane_lightning
Remove-Item $dirName\pennylane_lightning\RelWithDebInfo -Recurse
python -m wheel pack $dirName
echo "Patched $name"
}
Remove-Item $dirName -Recurse
}
cd ..

- uses: actions-ecosystem/action-regex-match@v2
id: rc_build
with:
text: ${{ github.event.pull_request.head.ref }}
regex: '.*[0-9]+.[0-9]+.[0-9]+[-_]?rc[0-9]+'

- uses: actions/upload-artifact@v2
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
AmintorDusko marked this conversation as resolved.
Show resolved Hide resolved
with:
name: ${{ runner.os }}-wheels-${{ matrix.arch }}.zip
path: ./wheelhouse/*.whl
Expand Down
3 changes: 1 addition & 2 deletions pennylane_lightning/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@
Version number (major.minor.patch[-label])
"""


__version__ = "0.29.0-dev"
__version__ = "0.28.2-rc0"
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ninja
flaky
numpy
git+https://github.com/PennyLaneAI/pennylane.git@master
pennylane~=0.28
AmintorDusko marked this conversation as resolved.
Show resolved Hide resolved
pybind11
pytest
pytest-cov
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def build_extension(self, ext: CMakeExtension):
# Set Python_EXECUTABLE instead if you use PYBIND11_FINDPYTHON
configure_args = [
f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={extdir}",
f"-DPYTHON_EXECUTABLE={sys.executable}",
f"-DPython_EXECUTABLE={sys.executable}", # (Windows)
f"-DPYTHON_EXECUTABLE={sys.executable}", # (Ubuntu)
AmintorDusko marked this conversation as resolved.
Show resolved Hide resolved
"-DENABLE_WARNINGS=OFF", # Ignore warnings
]

Expand Down Expand Up @@ -115,7 +116,7 @@ def build_extension(self, ext: CMakeExtension):
requirements = [
"ninja",
"numpy",
"pennylane>=0.19",
"pennylane>=0.28",
]

info = {
Expand Down