From 877f255f487ebc0d60fa7419469c47641c857578 Mon Sep 17 00:00:00 2001 From: konyaev_m Date: Fri, 21 Jun 2024 17:05:57 +0700 Subject: [PATCH] feat(node): Removed ulid python package --- ml_pipeline_engine/node/node.py | 4 +--- poetry.lock | 13 +------------ pyproject.toml | 1 - 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/ml_pipeline_engine/node/node.py b/ml_pipeline_engine/node/node.py index 8681660..d66169a 100644 --- a/ml_pipeline_engine/node/node.py +++ b/ml_pipeline_engine/node/node.py @@ -4,8 +4,6 @@ import typing as t import uuid -from ulid import ULID - from ml_pipeline_engine.logs import logger_node as logger from ml_pipeline_engine.module_loading import get_instance from ml_pipeline_engine.node.enums import NodeTag @@ -21,7 +19,7 @@ def generate_pipeline_id() -> uuid.UUID: - return ULID().to_uuid() + return uuid.uuid4() def generate_node_id(prefix: str, name: t.Optional[str] = None) -> str: diff --git a/poetry.lock b/poetry.lock index 9c47813..9bf0aec 100644 --- a/poetry.lock +++ b/poetry.lock @@ -413,17 +413,6 @@ pytest = ">=6.2.5" [package.extras] dev = ["pre-commit", "pytest-asyncio", "tox"] -[[package]] -name = "python-ulid" -version = "1.1.0" -description = "Universally Unique Lexicographically Sortable Identifier" -optional = false -python-versions = ">=3.7" -files = [ - {file = "python-ulid-1.1.0.tar.gz", hash = "sha256:5fb5e4a91db8ca93e8938a613360b3def299b60d41f847279a8c39c9b2e9c65e"}, - {file = "python_ulid-1.1.0-py3-none-any.whl", hash = "sha256:88c952f6be133dbede19c907d72d26717d2691ec8421512b573144794d891e24"}, -] - [[package]] name = "pyyaml" version = "6.0.1" @@ -575,4 +564,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "514c01833ae8bb964a4fe9f53f2f99698485ff7cdf088de02a3647d67bc4f4dc" +content-hash = "0413e864a1d540e26925ea6778deaabf98d6b5f0b6929931210611a7aa9a3390" diff --git a/pyproject.toml b/pyproject.toml index 858b4f8..fb6c954 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,6 @@ classifiers = [ [tool.poetry.dependencies] python = "^3.8" networkx = ">=3.1,<4.0" -python-ulid = ">=1.1.0,<2.0" importlib-resources = "^6.4.0" cachetools = "^5.3.3" click = "^8.1.7"