Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
zigai committed Aug 24, 2023
1 parent 9b80370 commit 148b239
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pypipeline/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Any, Dict, Type

from objinspect import Class
from stdl.str_u import kebab_case
from stdl.st import kebab_case

from pypipeline.item import Item

Expand Down
13 changes: 6 additions & 7 deletions pypipeline/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
import docstring_parser
from objinspect import Class, Method
from stdl.fs import read_stdin
from stdl.str_u import colored, kebab_case
from stdl.st import colored, kebab_case
from strto import get_parser

from pypipeline.action import Action, get_actions_dict
from pypipeline.action import Action
from pypipeline.constants import (
CLI_HELP_INDENT,
CLI_MAX_LJUST,
Expand Down Expand Up @@ -89,8 +89,8 @@ def parse(self, value):
raise ValueError(
f"Action '{self.obj_action.name}' does not have an argument '{param_name}'."
)
param_obj = self.init_obj_container.get_param(param_name) # type: ignore
self.args[param_name] = TYPE_PARSER.parse(param_value, param_obj.type)
parameter = self.init_obj_container.get_param(param_name) # type: ignore
self.args[param_name] = TYPE_PARSER.parse(param_value, parameter.type)
return

param = self.init_args[self.arg_index]
Expand Down Expand Up @@ -177,9 +177,8 @@ def collect_actions(self) -> None:
if action.cls.type == "filter":
self.cli_action_map[action.flag_long + FILTER_INVERT_SUFFIX] = action
if action.flag_short:
self.cli_action_map[
action.flag_short + FILTER_INVERT_SUFFIX # type:ignore
] = action
key = action.flag_short + FILTER_INVERT_SUFFIX
self.cli_action_map[key] = action

@cached_property
def ljust(self) -> int:
Expand Down
3 changes: 1 addition & 2 deletions pypipeline/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
from fnmatch import fnmatch
from typing import Literal

from pypipeline.action import Action, Filter
from pypipeline.action import Filter
from pypipeline.constants import INT_MAX, INT_MIN, SEP
from pypipeline.item import Item
from pypipeline.util import get_pattern_type


Expand Down
2 changes: 1 addition & 1 deletion pypipeline/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Literal

from stdl import fs
from stdl.str_u import snake_case
from stdl.st import snake_case

from pypipeline.action import Action

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
stdl>=0.4.5
stdl==0.4.6
tqdm
docstring_parser==0.15
objinspect==0.2.4
objinspect==0.2.5
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="pypeline-python",
version="0.1.3",
version="0.1.4",
description="PyPipeline is a simple Python framework for building data processing pipelines.",
long_description=README,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 148b239

Please sign in to comment.