Skip to content

Commit

Permalink
Ringo, please calm down (#716)
Browse files Browse the repository at this point in the history
* Try fix on version update script

* Auto update version from '0.36.0-dev47' to '0.36.0-dev48'

* trigger ci

---------

Co-authored-by: ringo-but-quantum <github-ringo-but-quantum@xanadu.ai>
Co-authored-by: Ali Asadi <10773383+maliasadi@users.noreply.github.com>
  • Loading branch information
3 people committed May 6, 2024
1 parent cc57f14 commit cde3016
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/dev_version_script.py
Expand Up @@ -94,7 +94,14 @@ def update_prerelease_version(repo_root_path: Path, version: Version):
# Only attempt to bump the version if the pull_request is:
# - A prerelease, has `X.Y.Z-prerelease` in _version.py
# - The prerelease startswith `dev`. We do not want to auto bump for non-dev prerelease.
if pr_version.prerelease and pr_version.prerelease.startswith(DEV_PRERELEASE_TAG_PREFIX):
# However,
# If a PR is of a higher version AND the prerelease tag is reset, then do nothing
# This captures the case during release where we might bump the release version
# within a PR and reset tag back to dev0
if pr_version > master_version and pr_version.prerelease and pr_version.prerelease == DEV_PRERELEASE_TAG_START:
print("This Pull Request is upgrading the package version to next release ... skipping bumping!")
print("If this is happening in error, please report it to the PennyLane team!")
elif pr_version.prerelease and pr_version.prerelease.startswith(DEV_PRERELEASE_TAG_PREFIX):
# If master branch does not have a prerelease (for any reason) OR does not have an ending number
# Then default to the starting tag
if not master_version.prerelease or master_version.prerelease == DEV_PRERELEASE_TAG_PREFIX:
Expand Down
2 changes: 1 addition & 1 deletion pennylane_lightning/core/_version.py
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.36.0-dev47"
__version__ = "0.36.0-dev48"

0 comments on commit cde3016

Please sign in to comment.