Skip to content

Commit

Permalink
Merge pull request #94 from kubeflow/main
Browse files Browse the repository at this point in the history
[pull] main from kubeflow:main
  • Loading branch information
openshift-merge-bot[bot] authored Jul 11, 2024
2 parents e382520 + aeb4bda commit 327aeb5
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 63 deletions.
111 changes: 56 additions & 55 deletions clients/python/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ sphinx-autobuild = ">=2021.3.14,<2025.0.0"
pytest = ">=7.4.2,<9.0.0"
coverage = { extras = ["toml"], version = "^7.3.2" }
pytest-cov = ">=4.1,<6.0"
ruff = "^0.4.4"
ruff = "0.5.1"
mypy = "^1.7.0"
pytest-asyncio = "^0.23.7"
requests = "^2.32.2"
Expand Down
2 changes: 1 addition & 1 deletion clients/python/src/model_registry/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Main package for the ODH model registry."""

__version__ = "0.1.0"
__version__ = "0.2.3a1"

from ._client import ModelRegistry

Expand Down
12 changes: 6 additions & 6 deletions clients/python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ def _compose_mr(root):
msg = f"The file {sqlite_db_file} already exists; make sure to cancel it before running these tests."
raise FileExistsError(msg)
print(f" Starting Docker Compose in folder {root}")
p = subprocess.Popen(
p = subprocess.Popen( # noqa: S602
f"{DOCKER} compose -f {COMPOSE_FILE} up --build",
shell=True, # noqa: S602
shell=True,
cwd=root,
)
yield

p.kill()
print(f" Closing Docker Compose in folder {root}")
subprocess.call(
subprocess.call( # noqa: S602
f"{DOCKER} compose -f {COMPOSE_FILE} down",
shell=True, # noqa: S602
shell=True,
cwd=root,
)
try:
Expand Down Expand Up @@ -95,9 +95,9 @@ async def yield_and_restart(root):
sleep(1)

print("Restarting model-registry...")
subprocess.call(
subprocess.call( # noqa: S602
f"{DOCKER} compose -f {COMPOSE_FILE} restart model-registry",
shell=True, # noqa: S602
shell=True,
cwd=root,
)

Expand Down

0 comments on commit 327aeb5

Please sign in to comment.