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

feat: Bioconductor skeleton updates #1027

Merged
merged 2 commits into from
Dec 23, 2024
Merged
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
37 changes: 24 additions & 13 deletions bioconda_utils/bioconductor_skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,12 @@ def bioarchive_url(self):
package, otherwise returns None.
"""
url = bioarchive_url(self.package, self.version, self.bioc_version)
response = requests.head(url)
if response.status_code == 200:
return url
try:
response = requests.head(url)
if response.status_code == 200:
return url
except requests.exceptions.SSLError:
pass

@property
def cargoport_url(self):
Expand All @@ -479,16 +482,19 @@ def cargoport_url(self):
it exists.
"""
url = cargoport_url(self.package, self.version, self.bioc_version)
response = requests.head(url)
if response.status_code == 404:
# This is expected if this is a new package or an updated version.
# Cargo Port will archive a working URL upon merging
return
elif response.status_code == 200:
return url
else:
raise PageNotFoundError(
"Unexpected error: {0.status_code} ({0.reason})".format(response))
try:
response = requests.head(url)
if response.status_code == 404:
# This is expected if this is a new package or an updated version.
# Cargo Port will archive a working URL upon merging
return
elif response.status_code == 200:
return url
else:
raise PageNotFoundError(
"Unexpected error: {0.status_code} ({0.reason})".format(response))
except requests.exceptions.SSLError:
pass

@property
def bioconductor_tarball_url(self):
Expand Down Expand Up @@ -937,6 +943,11 @@ def sub_placeholders(x):
additional_host_deps.append('libblas')
additional_host_deps.append('liblapack')

# During the BioC 3.20 builds, which also corresponded to updates
# in pinnings, there were quite a few issues where zlib was
# missing.
additional_host_deps.append('zlib')

additional_run_deps = []
if self.is_data_package:
additional_run_deps.append('curl')
Expand Down
Loading