From 5be7e5b94ca7c54d6b5625c16ba4dac36fa14637 Mon Sep 17 00:00:00 2001 From: Antony Milne <49395058+antonymilne@users.noreply.github.com> Date: Thu, 26 Oct 2023 12:48:32 +0100 Subject: [PATCH] Update check_package_release.py Undo the hack... Signed-off-by: Antony Milne <49395058+antonymilne@users.noreply.github.com> --- tools/check_package_release.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/check_package_release.py b/tools/check_package_release.py index 245436dfe..804f10484 100644 --- a/tools/check_package_release.py +++ b/tools/check_package_release.py @@ -41,9 +41,9 @@ def _check_no_dev_version(package_name, package_version): for package_name in AVAILABLE_PACKAGES: package_version = subprocess.check_output(["hatch", "version"], cwd=f"{package_name}").decode("utf-8").strip() - if _check_no_dev_version(package_name, package_version): # and _check_no_version_pypi( - # package_name, package_version - # ): + if _check_no_dev_version(package_name, package_version) and _check_no_version_pypi( + package_name, package_version + ): if new_release: sys.exit("Cannot release two packages at the same time. Please modify your PR.") new_release = True