Skip to content

Commit

Permalink
Merge pull request #25 from jdavcs/dev_pointreelase_edits2
Browse files Browse the repository at this point in the history
Misc. refactoring and enhancements to create_point_release
  • Loading branch information
jdavcs authored Dec 17, 2024
2 parents e48ffe8 + fffe0a8 commit 6d57c2a
Show file tree
Hide file tree
Showing 4 changed files with 212 additions and 112 deletions.
5 changes: 4 additions & 1 deletion galaxy_release_util/bootstrap_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
PROJECT_URL,
strip_release,
)
from .util import verify_galaxy_root

OLDER_RELEASES_FILENAME = "older_releases.rst"

Expand Down Expand Up @@ -388,6 +389,7 @@ def create_release_issue(
release_date: datetime.date,
dry_run: bool,
):
verify_galaxy_root(galaxy_root)
previous_version = _get_previous_release_version(galaxy_root, release_version)
next_version = next_version or _get_next_release_version(release_version)
assert next_version > release_version, "Next release version should be greater than release version"
Expand Down Expand Up @@ -457,6 +459,7 @@ def create_next_release_announcement_file() -> None:
filename = _release_file(galaxy_root, f"{next_version}_announce.rst")
_write_file(filename, content, skip_if_exists=True)

verify_galaxy_root(galaxy_root)
next_version = next_version or _get_next_release_version(release_version)
create_release_file()
create_announcement_file()
Expand Down Expand Up @@ -645,7 +648,7 @@ def _get_release_documentation_filenames(galaxy_root: Path) -> List[str]:
"""Return contents of release documentation directory."""
releases_path = galaxy_root / "doc" / "source" / "releases"
if not os.path.exists(releases_path):
msg = f"Path to releases documentation not found: {releases_path}. If you are running this script outside of galaxy root directory, you should specify the '--galaxy-root' argument"
msg = f"Path to releases documentation not found: {releases_path}"
raise Exception(msg)
return sorted(os.listdir(releases_path))

Expand Down
Loading

0 comments on commit 6d57c2a

Please sign in to comment.