Skip to content

Commit

Permalink
Merge branch 'master' into 1069-batch-add-versioning-in-docker-builds
Browse files Browse the repository at this point in the history
  • Loading branch information
DhanshreeA committed Jan 3, 2025
2 parents 972b2b7 + c41fb34 commit bef315c
Show file tree
Hide file tree
Showing 244 changed files with 5,549 additions and 2,126 deletions.
9 changes: 4 additions & 5 deletions .github/scripts/airtableops.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import os

import requests
import pyairtable
import requests
import yaml

from ersilia.hub.content.card import BaseInformation
from ersilia.hub.content.card import RepoMetadataFile
from ersilia.utils.terminal import run_command
from ersilia.hub.content.card import BaseInformation, RepoMetadataFile
from ersilia.utils.logging import make_temp_dir
from ersilia.utils.terminal import run_command

GITHUB_ORG = "ersilia-os"
AIRTABLE_MODEL_HUB_BASE_ID = "appgxpCzCDNyGjWc8"
Expand Down Expand Up @@ -121,7 +120,7 @@ def __init__(self, model_id, config_json=None):
self.model_id = model_id

def read_information(self):
print ("Cannot read directly from README file. Using AirTable instead")
print("Cannot read directly from README file. Using AirTable instead")
am = AirtableMetadata(model_id=self.model_id)
bi = am.read_information()
print(bi.as_dict())
Expand Down
5 changes: 3 additions & 2 deletions .github/scripts/convert_airtable_to_json.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import os
import json
import logging
import os

import boto3
from botocore.exceptions import ClientError, NoCredentialsError
import requests
from botocore.exceptions import ClientError, NoCredentialsError

AIRTABLE_MODEL_HUB_BASE_ID = "appgxpCzCDNyGjWc8"
AIRTABLE_TABLE_ID = "tblZGe2a2XeBxrEHP"
Expand Down
4 changes: 2 additions & 2 deletions .github/scripts/generate_eos_identifier.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import json
import os
import random
import string
import json
import subprocess
import os


def run_command_check_output(cmd):
Expand Down
3 changes: 2 additions & 1 deletion .github/scripts/place_a_dockerfile_in_current_eos_repo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import os
import shutil
import sys

import requests
import shutil

BUILD_VERSIONS = ["ersiliapack", "legacy-bentoml", "multistage-condapack"]
ENV_TYPES = ["conda", "pip"]
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/static_version_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def wrapper(package_path):
with open(toml_path, "r") as f:
toml_content = f.read()
toml_content = re.sub(
'version\s=\s"[0-9\.]+"', f'version = "{version}"', toml_content
r'version\s=\s"[0-9\.]+"', f'version = "{version}"', toml_content
)
with open(toml_path, "w") as f:
f.write(toml_content)
Expand Down
Loading

0 comments on commit bef315c

Please sign in to comment.