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

Add PostgreSQL 17 to TW #1718

Merged
merged 4 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 4 additions & 3 deletions src/bci_build/package/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
_POSTGRES_LICENSE = (Path(__file__).parent / "postgres" / "LICENSE").read_bytes()

# first list the SLE15 versions, then the TW specific versions
_POSTGRES_MAJOR_VERSIONS = [16, 15, 14] + [13, 12]
_POSTGRES_MAJOR_VERSIONS = [16, 15, 14] + [17, 13, 12]
POSTGRES_CONTAINERS = [
ApplicationStackContainer(
name="postgres",
Expand All @@ -25,7 +25,7 @@
is_latest=ver == _POSTGRES_MAJOR_VERSIONS[0],
pretty_name=f"PostgreSQL {ver}",
support_level=SupportLevel.ACC,
package_list=[f"postgresql{ver}-server", "findutils"],
package_list=["libpq5", f"postgresql{ver}-server", "findutils"],
version="%%pg_patch_version%%",
tag_version=ver,
additional_versions=["%%pg_minor_version%%", "%%pg_patch_version%%"],
Expand Down Expand Up @@ -53,6 +53,7 @@
Replacement(
regex_in_build_description="%%pg_patch_version%%",
package_name=f"postgresql{ver}-server",
parse_version=ParseVersion.PATCH,
),
],
volumes=["$PGDATA"],
Expand All @@ -77,5 +78,5 @@
for variant in (OsVersion.SP6, OsVersion.SP7, OsVersion.TUMBLEWEED)
]
)
+ [(pg_ver, OsVersion.TUMBLEWEED) for pg_ver in (14, 13, 12)]
+ [(pg_ver, OsVersion.TUMBLEWEED) for pg_ver in (17, 14, 13, 12)]
]
1 change: 0 additions & 1 deletion src/staging/project_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ def generate_meta(
else:
assert os_version.is_tumbleweed
repository_paths = (
("openSUSE:Registry", "standard"),
("openSUSE:Factory", "images"),
("openSUSE:Factory:ARM", "images"),
("openSUSE:Factory:ARM", "standard"),
Expand Down
1 change: 0 additions & 1 deletion tests/test_project_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@
<enable/>
</debuginfo>
<repository name="standard">
<path project="openSUSE:Registry" repository="standard"/>
<path project="openSUSE:Factory" repository="images"/>
<path project="openSUSE:Factory:ARM" repository="images"/>
<path project="openSUSE:Factory:ARM" repository="standard"/>
Expand Down