From 1a1d6e7ed7112fe0187c3ffc13332a88d821c076 Mon Sep 17 00:00:00 2001 From: marwaneltoukhy Date: Tue, 6 Aug 2024 16:31:38 +0300 Subject: [PATCH] expose APIs --- ipm/__init__.py | 2 +- ipm/manage.py | 5 +++++ pyproject.toml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ipm/__init__.py b/ipm/__init__.py index 07771f9..044aebb 100644 --- a/ipm/__init__.py +++ b/ipm/__init__.py @@ -13,4 +13,4 @@ # limitations under the License. from .__version__ import __version__ -from .manage import install, ls, ls_remote, info, install_deps +from .manage import install, ls, ls_remote, info, install_deps, update, rm, uninstall diff --git a/ipm/manage.py b/ipm/manage.py index b108ace..a683bab 100644 --- a/ipm/manage.py +++ b/ipm/manage.py @@ -188,6 +188,11 @@ def rm(ip_root, ip, ipm_root): "--ip-root", required=False, default=os.path.join(os.getcwd(), "ip"), help="IP path" ) def update_cmd(ipm_root, ip_root, ip): + """Check for new versions of all installed IPs in project or a specific IP.""" + update(ipm_root, ip_root, ip) + + +def update(ipm_root, ip_root, ip): """Check for new versions of all installed IPs in project or a specific IP.""" valid = check_ipm_directory(ipm_root) valid_ip_dir = check_ip_root_dir(ip_root) diff --git a/pyproject.toml b/pyproject.toml index 7e3f0b1..3f8a894 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ipmgr" -version = "1.0.10" +version = "1.0.11" description = "Package manager for Open Source ASIC IPs" authors = ["Efabless Corporation "] readme = "README.md"