Skip to content

Commit

Permalink
Create release v0.28.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mlxd committed Jan 11, 2023
1 parent efbded2 commit ac36864
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 7 deletions.
15 changes: 15 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# 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

### Breaking changes
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
24 changes: 22 additions & 2 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,8 +160,28 @@ 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:
Expand Down
2 changes: 1 addition & 1 deletion pennylane_lightning/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
"""


__version__ = "0.28.0"
__version__ = "0.28.1"
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ 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}",
"-DENABLE_WARNINGS=OFF", # Ignore warnings
]

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

info = {
Expand Down

0 comments on commit ac36864

Please sign in to comment.