Skip to content

Commit

Permalink
Py: Update README.md and fix ruff pin (#188)
Browse files Browse the repository at this point in the history
* py: don't pin ruff

Signed-off-by: Isabella Basso do Amaral <[email protected]>

* py: remove stale code from README

Signed-off-by: Isabella Basso do Amaral <[email protected]>

* py: fix supported versions badge

Signed-off-by: Isabella Basso do Amaral <[email protected]>

---------

Signed-off-by: Isabella Basso do Amaral <[email protected]>
  • Loading branch information
isinyaaa authored Jul 15, 2024
1 parent 67a7595 commit f38a1b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
6 changes: 1 addition & 5 deletions clients/python/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Model Registry Python Client

[![Python](https://img.shields.io/badge/python%20-3.9%7C3.10-blue)](https://github.com/kubeflow/model-registry)
[![Python](https://img.shields.io/badge/python%20-3.9%7C3.10%7C3.11%7C3.12-blue)](https://github.com/kubeflow/model-registry)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](../../../LICENSE)

This library provides a high level interface for interacting with a model registry server.
Expand Down Expand Up @@ -45,10 +45,6 @@ When registering models stored on S3-compatible object storage, you should use `
unambiguous URI for your artifact.

```py
from model_registry import ModelRegistry, utils

registry = ModelRegistry(server_address="server-address", port=9090, author="author")

model = registry.register_model(
"my-model", # model name
uri=utils.s3_uri_from("path/to/model", "my-bucket"),
Expand Down
3 changes: 1 addition & 2 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 @@ -44,7 +44,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.5.2"
ruff = "^0.5.2"
mypy = "^1.7.0"
pytest-asyncio = "^0.23.7"
requests = "^2.32.2"
Expand Down

0 comments on commit f38a1b8

Please sign in to comment.