This commit is contained in:
s3lph 2019-11-26 17:01:06 +01:00
parent c142158f12
commit da890e0306

View file

@ -80,14 +80,6 @@ def fetch_debian_url(base_url: str, job_ids: Dict[str, str]) -> Optional[Tuple[s
return debian_url, debian_sha_url return debian_url, debian_sha_url
def fetch_rpm_url(base_url: str, job_ids: Dict[str, str]) -> Optional[Tuple[str, str]]:
mybase: str = f'{base_url}/jobs/{job_ids["build_rpm"]}/artifacts/raw'
rpm_sha_url: str = f'{mybase}/package/rpm/SHA256SUMS'
rpm_filename: str = fetch_single_shafile(rpm_sha_url)
rpm_url: str = f'{mybase}/package/rpm/{rpm_filename}'
return rpm_url, rpm_sha_url
def fetch_arch_url(base_url: str, job_ids: Dict[str, str]) -> Optional[Tuple[str, str]]: def fetch_arch_url(base_url: str, job_ids: Dict[str, str]) -> Optional[Tuple[str, str]]:
mybase: str = f'{base_url}/jobs/{job_ids["build_archlinux"]}/artifacts/raw' mybase: str = f'{base_url}/jobs/{job_ids["build_archlinux"]}/artifacts/raw'
arch_sha_url: str = f'{mybase}/package/archlinux/SHA256SUMS' arch_sha_url: str = f'{mybase}/package/archlinux/SHA256SUMS'
@ -129,7 +121,6 @@ def main():
wheel_url, wheel_sha_url = fetch_wheel_url(base_url, job_ids) wheel_url, wheel_sha_url = fetch_wheel_url(base_url, job_ids)
debian_url, debian_sha_url = fetch_debian_url(base_url, job_ids) debian_url, debian_sha_url = fetch_debian_url(base_url, job_ids)
rpm_url, rpm_sha_url = fetch_rpm_url(base_url, job_ids)
arch_url, arch_sha_url = fetch_arch_url(base_url, job_ids) arch_url, arch_sha_url = fetch_arch_url(base_url, job_ids)
augmented_changelog = f'''{changelog.strip()} augmented_changelog = f'''{changelog.strip()}
@ -138,7 +129,6 @@ def main():
- [Python Wheel]({wheel_url}) ([sha256]({wheel_sha_url})) - [Python Wheel]({wheel_url}) ([sha256]({wheel_sha_url}))
- [Debian Package]({debian_url}) ([sha256]({debian_sha_url})) - [Debian Package]({debian_url}) ([sha256]({debian_sha_url}))
- [RPM Package]({rpm_url}) ([sha256]({rpm_sha_url}))
- [Arch Linux Package]({arch_url}) ([sha256]({arch_sha_url})) - [Arch Linux Package]({arch_url}) ([sha256]({arch_sha_url}))
- Docker image: registry.gitlab.com/{project_name}:{release_tag}''' - Docker image: registry.gitlab.com/{project_name}:{release_tag}'''