iker-python-common 1.0.71__tar.gz → 1.0.72__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/PKG-INFO +1 -1
- iker_python_common-1.0.71/src/iker/common/utils/shutils.py → iker_python_common-1.0.72/src/iker/common/utils/pathutils.py +36 -88
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker_python_common.egg-info/PKG-INFO +1 -1
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker_python_common.egg-info/SOURCES.txt +12 -12
- iker_python_common-1.0.71/test/iker_tests/common/utils/shutils_test.py → iker_python_common-1.0.72/test/iker_tests/common/utils/pathutils_test.py +127 -119
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/.editorconfig +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/.github/workflows/pr.yml +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/.github/workflows/push.yml +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/.gitignore +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/MANIFEST.in +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/README.md +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/VERSION +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/pyproject.toml +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/resources/unittest/config/config.cfg +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/resources/unittest/csvutils/data.csv +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/resources/unittest/csvutils/data.tsv +0 -0
- {iker_python_common-1.0.71/resources/unittest/shutils → iker_python_common-1.0.72/resources/unittest/pathutils}/dir.baz/file.bar.baz +0 -0
- {iker_python_common-1.0.71/resources/unittest/shutils → iker_python_common-1.0.72/resources/unittest/pathutils}/dir.baz/file.foo.bar +0 -0
- {iker_python_common-1.0.71/resources/unittest/shutils → iker_python_common-1.0.72/resources/unittest/pathutils}/dir.baz/file.foo.baz +0 -0
- {iker_python_common-1.0.71/resources/unittest/shutils → iker_python_common-1.0.72/resources/unittest/pathutils}/dir.foo/dir.foo.bar/dir.foo.bar.baz/file.foo.bar.baz +0 -0
- {iker_python_common-1.0.71/resources/unittest/shutils → iker_python_common-1.0.72/resources/unittest/pathutils}/dir.foo/dir.foo.bar/file.bar.baz +0 -0
- {iker_python_common-1.0.71/resources/unittest/shutils → iker_python_common-1.0.72/resources/unittest/pathutils}/dir.foo/dir.foo.bar/file.foo.bar +0 -0
- {iker_python_common-1.0.71/resources/unittest/shutils → iker_python_common-1.0.72/resources/unittest/pathutils}/dir.foo/dir.foo.bar/file.foo.baz +0 -0
- {iker_python_common-1.0.71/resources/unittest/shutils → iker_python_common-1.0.72/resources/unittest/pathutils}/dir.foo/file.bar +0 -0
- {iker_python_common-1.0.71/resources/unittest/shutils → iker_python_common-1.0.72/resources/unittest/pathutils}/dir.foo/file.baz +0 -0
- {iker_python_common-1.0.71/resources/unittest/shutils → iker_python_common-1.0.72/resources/unittest/pathutils}/dir.foo/file.foo +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/setup.cfg +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/setup.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/__init__.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/__init__.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/argutils.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/config.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/csvutils.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/dbutils.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/dtutils.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/funcutils.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/iterutils.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/jsonutils.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/logger.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/numutils.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/randutils.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/retry.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/span.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/strutils.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/testutils.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker/common/utils/typeutils.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker_python_common.egg-info/dependency_links.txt +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker_python_common.egg-info/not-zip-safe +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker_python_common.egg-info/requires.txt +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker_python_common.egg-info/top_level.txt +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/__init__.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/__init__.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/__init__.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/argutils_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/config_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/csvutils_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/dbutils_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/dtutils_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/funcutils_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/iterutils_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/jsonutils_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/logger_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/numutils_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/randutils_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/retry_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/span_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/strutils_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/testutils_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/typeutils_test.py +0 -0
- {iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/testenv.py +0 -0
|
@@ -17,8 +17,6 @@ __all__ = [
|
|
|
17
17
|
"glob_match",
|
|
18
18
|
"scan_files",
|
|
19
19
|
"copy_files",
|
|
20
|
-
"run",
|
|
21
|
-
"execute",
|
|
22
20
|
]
|
|
23
21
|
|
|
24
22
|
|
|
@@ -74,41 +72,32 @@ def make_path(
|
|
|
74
72
|
return path
|
|
75
73
|
|
|
76
74
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
Extracts the filename suffix from the given filename or path.
|
|
75
|
+
def fn_suffix(filename: str | os.PathLike[str] | None) -> str | None:
|
|
76
|
+
"""
|
|
77
|
+
Extracts the filename suffix from the given filename or path.
|
|
81
78
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
79
|
+
:param filename: The specific filename or path.
|
|
80
|
+
:return: The filename suffix, including the leading dot (e.g., ".txt" for "file.txt"),
|
|
81
|
+
or ``None`` if the input filename is ``None``.
|
|
82
|
+
"""
|
|
83
|
+
if (path := make_path(filename)) is not None:
|
|
84
|
+
if sys.version_info < (3, 14):
|
|
87
85
|
_, suffix_name = os.path.splitext(path.name)
|
|
88
86
|
return suffix_name
|
|
89
|
-
|
|
90
|
-
else:
|
|
91
|
-
def fn_suffix(filename: str | os.PathLike[str] | None) -> str | None:
|
|
92
|
-
"""
|
|
93
|
-
Extracts the filename suffix from the given filename or path.
|
|
94
|
-
|
|
95
|
-
:param filename: The specific filename or path.
|
|
96
|
-
:return: The filename suffix, including the leading dot (e.g., ".txt" for "file.txt"),
|
|
97
|
-
or ``None`` if the input filename is ``None``.
|
|
98
|
-
"""
|
|
99
|
-
if (path := make_path(filename)) is not None:
|
|
87
|
+
else:
|
|
100
88
|
return path.suffix
|
|
101
|
-
|
|
89
|
+
return None
|
|
90
|
+
|
|
102
91
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
Extracts all filename suffixes from the given filename or path.
|
|
92
|
+
def fn_suffixes(filename: str | os.PathLike[str] | None) -> list[str]:
|
|
93
|
+
"""
|
|
94
|
+
Extracts all filename suffixes from the given filename or path.
|
|
107
95
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
96
|
+
:param filename: The specific filename or path.
|
|
97
|
+
:return: A list of filename suffixes, each including the leading dot (e.g., [".tar", ".gz"] for "archive.tar.gz").
|
|
98
|
+
"""
|
|
99
|
+
if (path := make_path(filename)) is not None:
|
|
100
|
+
if sys.version_info < (3, 14):
|
|
112
101
|
results = []
|
|
113
102
|
stem_name = path.name
|
|
114
103
|
while True:
|
|
@@ -116,29 +105,21 @@ if sys.version_info < (3, 14):
|
|
|
116
105
|
if is_empty(suffix_name):
|
|
117
106
|
return list(reversed(results))
|
|
118
107
|
results.append(suffix_name)
|
|
119
|
-
|
|
120
|
-
else:
|
|
121
|
-
def fn_suffixes(filename: str | os.PathLike[str] | None) -> list[str]:
|
|
122
|
-
"""
|
|
123
|
-
Extracts all filename suffixes from the given filename or path.
|
|
124
|
-
|
|
125
|
-
:param filename: The specific filename or path.
|
|
126
|
-
:return: A list of filename suffixes, each including the leading dot (e.g., [".tar", ".gz"] for "archive.tar.gz").
|
|
127
|
-
"""
|
|
128
|
-
if (path := make_path(filename)) is not None:
|
|
108
|
+
else:
|
|
129
109
|
return path.suffixes
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
110
|
+
return []
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def fn_stem(filename: str | os.PathLike[str] | None, minimal: bool = False) -> str | None:
|
|
114
|
+
"""
|
|
115
|
+
Extracts the filename stem from the given filename or path.
|
|
116
|
+
|
|
117
|
+
:param filename: The specific filename or path.
|
|
118
|
+
:param minimal: If ``True``, extracts the minimal (shortest) stem, otherwise the default stem.
|
|
119
|
+
:return: The filename stem.
|
|
120
|
+
"""
|
|
121
|
+
if (path := make_path(filename)) is not None:
|
|
122
|
+
if sys.version_info < (3, 14):
|
|
142
123
|
if not minimal:
|
|
143
124
|
stem_name, _ = os.path.splitext(path.name)
|
|
144
125
|
return stem_name
|
|
@@ -148,17 +129,7 @@ if sys.version_info < (3, 14):
|
|
|
148
129
|
stem_name, suffix_name = os.path.splitext(stem_name)
|
|
149
130
|
if is_empty(suffix_name):
|
|
150
131
|
return stem_name
|
|
151
|
-
|
|
152
|
-
else:
|
|
153
|
-
def fn_stem(filename: str | os.PathLike[str] | None, minimal: bool = False) -> str | None:
|
|
154
|
-
"""
|
|
155
|
-
Extracts the filename stem from the given filename or path.
|
|
156
|
-
|
|
157
|
-
:param filename: The specific filename or path.
|
|
158
|
-
:param minimal: If ``True``, extracts the minimal (shortest) stem, otherwise the default stem.
|
|
159
|
-
:return: The filename stem.
|
|
160
|
-
"""
|
|
161
|
-
if (path := make_path(filename)) is not None:
|
|
132
|
+
else:
|
|
162
133
|
if not minimal:
|
|
163
134
|
return path.stem
|
|
164
135
|
else:
|
|
@@ -166,7 +137,7 @@ else:
|
|
|
166
137
|
if is_empty(path.suffix):
|
|
167
138
|
return path.stem
|
|
168
139
|
path = path.with_suffix("")
|
|
169
|
-
|
|
140
|
+
return None
|
|
170
141
|
|
|
171
142
|
|
|
172
143
|
def path_depth(root: str | os.PathLike[str], child: str | os.PathLike[str]) -> int:
|
|
@@ -295,26 +266,3 @@ def copy_files(
|
|
|
295
266
|
ignore_dangling_symlinks=ignore_dangling_symlinks,
|
|
296
267
|
dirs_exist_ok=dirs_exist_ok,
|
|
297
268
|
copy_function=copy_func)
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
def run(cmd: str) -> bool:
|
|
301
|
-
"""
|
|
302
|
-
Runs the given command and returns the success status.
|
|
303
|
-
|
|
304
|
-
:param cmd: Command to run.
|
|
305
|
-
:return: ``True`` if the command has been successfully run, ``False`` otherwise.
|
|
306
|
-
"""
|
|
307
|
-
return os.system(cmd) == 0
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
def execute(cmd: str, strip: bool = True) -> str:
|
|
311
|
-
"""
|
|
312
|
-
Executes the given command and returns contents collected from standard output.
|
|
313
|
-
|
|
314
|
-
:param cmd: Command to execute.
|
|
315
|
-
:param strip: If ``True``, the contents will be stripped.
|
|
316
|
-
:return: The content from standard output.
|
|
317
|
-
"""
|
|
318
|
-
if strip:
|
|
319
|
-
return os.popen(cmd).read().strip()
|
|
320
|
-
return os.popen(cmd).read()
|
{iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker_python_common.egg-info/SOURCES.txt
RENAMED
|
@@ -10,16 +10,16 @@ setup.py
|
|
|
10
10
|
resources/unittest/config/config.cfg
|
|
11
11
|
resources/unittest/csvutils/data.csv
|
|
12
12
|
resources/unittest/csvutils/data.tsv
|
|
13
|
-
resources/unittest/
|
|
14
|
-
resources/unittest/
|
|
15
|
-
resources/unittest/
|
|
16
|
-
resources/unittest/
|
|
17
|
-
resources/unittest/
|
|
18
|
-
resources/unittest/
|
|
19
|
-
resources/unittest/
|
|
20
|
-
resources/unittest/
|
|
21
|
-
resources/unittest/
|
|
22
|
-
resources/unittest/
|
|
13
|
+
resources/unittest/pathutils/dir.baz/file.bar.baz
|
|
14
|
+
resources/unittest/pathutils/dir.baz/file.foo.bar
|
|
15
|
+
resources/unittest/pathutils/dir.baz/file.foo.baz
|
|
16
|
+
resources/unittest/pathutils/dir.foo/file.bar
|
|
17
|
+
resources/unittest/pathutils/dir.foo/file.baz
|
|
18
|
+
resources/unittest/pathutils/dir.foo/file.foo
|
|
19
|
+
resources/unittest/pathutils/dir.foo/dir.foo.bar/file.bar.baz
|
|
20
|
+
resources/unittest/pathutils/dir.foo/dir.foo.bar/file.foo.bar
|
|
21
|
+
resources/unittest/pathutils/dir.foo/dir.foo.bar/file.foo.baz
|
|
22
|
+
resources/unittest/pathutils/dir.foo/dir.foo.bar/dir.foo.bar.baz/file.foo.bar.baz
|
|
23
23
|
src/iker/common/__init__.py
|
|
24
24
|
src/iker/common/utils/__init__.py
|
|
25
25
|
src/iker/common/utils/argutils.py
|
|
@@ -32,9 +32,9 @@ src/iker/common/utils/iterutils.py
|
|
|
32
32
|
src/iker/common/utils/jsonutils.py
|
|
33
33
|
src/iker/common/utils/logger.py
|
|
34
34
|
src/iker/common/utils/numutils.py
|
|
35
|
+
src/iker/common/utils/pathutils.py
|
|
35
36
|
src/iker/common/utils/randutils.py
|
|
36
37
|
src/iker/common/utils/retry.py
|
|
37
|
-
src/iker/common/utils/shutils.py
|
|
38
38
|
src/iker/common/utils/span.py
|
|
39
39
|
src/iker/common/utils/strutils.py
|
|
40
40
|
src/iker/common/utils/testutils.py
|
|
@@ -59,9 +59,9 @@ test/iker_tests/common/utils/iterutils_test.py
|
|
|
59
59
|
test/iker_tests/common/utils/jsonutils_test.py
|
|
60
60
|
test/iker_tests/common/utils/logger_test.py
|
|
61
61
|
test/iker_tests/common/utils/numutils_test.py
|
|
62
|
+
test/iker_tests/common/utils/pathutils_test.py
|
|
62
63
|
test/iker_tests/common/utils/randutils_test.py
|
|
63
64
|
test/iker_tests/common/utils/retry_test.py
|
|
64
|
-
test/iker_tests/common/utils/shutils_test.py
|
|
65
65
|
test/iker_tests/common/utils/span_test.py
|
|
66
66
|
test/iker_tests/common/utils/strutils_test.py
|
|
67
67
|
test/iker_tests/common/utils/testutils_test.py
|
|
@@ -5,10 +5,10 @@ import unittest
|
|
|
5
5
|
|
|
6
6
|
import ddt
|
|
7
7
|
|
|
8
|
-
from iker.common.utils.
|
|
9
|
-
from iker.common.utils.
|
|
10
|
-
from iker.common.utils.
|
|
11
|
-
from iker.common.utils.
|
|
8
|
+
from iker.common.utils.pathutils import copy_files, scan_files
|
|
9
|
+
from iker.common.utils.pathutils import fn_stem, fn_suffix, fn_suffixes
|
|
10
|
+
from iker.common.utils.pathutils import glob_match
|
|
11
|
+
from iker.common.utils.pathutils import make_path, path_depth
|
|
12
12
|
from testenv import resources_directory
|
|
13
13
|
|
|
14
14
|
work_dir = pathlib.Path.cwd
|
|
@@ -16,8 +16,10 @@ home_dir = pathlib.Path.home
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
@ddt.ddt
|
|
19
|
-
class
|
|
19
|
+
class PathUtilsTest(unittest.TestCase):
|
|
20
20
|
data_fn_suffix = [
|
|
21
|
+
(None, None),
|
|
22
|
+
("", ""),
|
|
21
23
|
(".", ""),
|
|
22
24
|
("..", ""),
|
|
23
25
|
("...", ""),
|
|
@@ -49,6 +51,8 @@ class ShUtilsTest(unittest.TestCase):
|
|
|
49
51
|
self.assertEqual(expect, fn_suffix(data))
|
|
50
52
|
|
|
51
53
|
data_fn_suffixes = [
|
|
54
|
+
(None, []),
|
|
55
|
+
("", []),
|
|
52
56
|
(".", []),
|
|
53
57
|
("..", []),
|
|
54
58
|
("...", []),
|
|
@@ -80,6 +84,8 @@ class ShUtilsTest(unittest.TestCase):
|
|
|
80
84
|
self.assertEqual(expect, fn_suffixes(data))
|
|
81
85
|
|
|
82
86
|
data_fn_stem = [
|
|
87
|
+
(None, None),
|
|
88
|
+
("", ""),
|
|
83
89
|
(".", ""),
|
|
84
90
|
("..", ".."),
|
|
85
91
|
("...", "..."),
|
|
@@ -111,6 +117,8 @@ class ShUtilsTest(unittest.TestCase):
|
|
|
111
117
|
self.assertEqual(expect, fn_stem(data))
|
|
112
118
|
|
|
113
119
|
data_fn_stem__minimal = [
|
|
120
|
+
(None, None),
|
|
121
|
+
("", ""),
|
|
114
122
|
(".", ""),
|
|
115
123
|
("..", ".."),
|
|
116
124
|
("...", "..."),
|
|
@@ -289,133 +297,133 @@ class ShUtilsTest(unittest.TestCase):
|
|
|
289
297
|
|
|
290
298
|
data_scan_files = [
|
|
291
299
|
(
|
|
292
|
-
"unittest/
|
|
300
|
+
"unittest/pathutils",
|
|
293
301
|
[],
|
|
294
302
|
[],
|
|
295
303
|
0,
|
|
296
304
|
[
|
|
297
|
-
"unittest/
|
|
298
|
-
"unittest/
|
|
299
|
-
"unittest/
|
|
300
|
-
"unittest/
|
|
301
|
-
"unittest/
|
|
302
|
-
"unittest/
|
|
303
|
-
"unittest/
|
|
304
|
-
"unittest/
|
|
305
|
-
"unittest/
|
|
306
|
-
"unittest/
|
|
305
|
+
"unittest/pathutils/dir.baz/file.foo.bar",
|
|
306
|
+
"unittest/pathutils/dir.baz/file.foo.baz",
|
|
307
|
+
"unittest/pathutils/dir.baz/file.bar.baz",
|
|
308
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
309
|
+
"unittest/pathutils/dir.foo/file.baz",
|
|
310
|
+
"unittest/pathutils/dir.foo/file.foo",
|
|
311
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.foo.bar",
|
|
312
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.foo.baz",
|
|
313
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.bar.baz",
|
|
314
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/dir.foo.bar.baz/file.foo.bar.baz",
|
|
307
315
|
],
|
|
308
316
|
),
|
|
309
317
|
(
|
|
310
|
-
"unittest/
|
|
318
|
+
"unittest/pathutils/dir.foo",
|
|
311
319
|
[],
|
|
312
320
|
[],
|
|
313
321
|
0,
|
|
314
322
|
[
|
|
315
|
-
"unittest/
|
|
316
|
-
"unittest/
|
|
317
|
-
"unittest/
|
|
318
|
-
"unittest/
|
|
319
|
-
"unittest/
|
|
320
|
-
"unittest/
|
|
321
|
-
"unittest/
|
|
323
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
324
|
+
"unittest/pathutils/dir.foo/file.baz",
|
|
325
|
+
"unittest/pathutils/dir.foo/file.foo",
|
|
326
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.foo.bar",
|
|
327
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.foo.baz",
|
|
328
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.bar.baz",
|
|
329
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/dir.foo.bar.baz/file.foo.bar.baz",
|
|
322
330
|
],
|
|
323
331
|
),
|
|
324
332
|
(
|
|
325
|
-
"unittest/
|
|
333
|
+
"unittest/pathutils/dir.baz",
|
|
326
334
|
[],
|
|
327
335
|
[],
|
|
328
336
|
0,
|
|
329
337
|
[
|
|
330
|
-
"unittest/
|
|
331
|
-
"unittest/
|
|
332
|
-
"unittest/
|
|
338
|
+
"unittest/pathutils/dir.baz/file.foo.bar",
|
|
339
|
+
"unittest/pathutils/dir.baz/file.foo.baz",
|
|
340
|
+
"unittest/pathutils/dir.baz/file.bar.baz",
|
|
333
341
|
],
|
|
334
342
|
),
|
|
335
343
|
(
|
|
336
|
-
"unittest/
|
|
344
|
+
"unittest/pathutils",
|
|
337
345
|
["*.foo", "*.bar"],
|
|
338
346
|
["*.foo.bar"],
|
|
339
347
|
0,
|
|
340
348
|
[
|
|
341
|
-
"unittest/
|
|
342
|
-
"unittest/
|
|
349
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
350
|
+
"unittest/pathutils/dir.foo/file.foo",
|
|
343
351
|
],
|
|
344
352
|
),
|
|
345
353
|
(
|
|
346
|
-
"unittest/
|
|
354
|
+
"unittest/pathutils",
|
|
347
355
|
["*.foo", "*.bar"],
|
|
348
356
|
[],
|
|
349
357
|
0,
|
|
350
358
|
[
|
|
351
|
-
"unittest/
|
|
352
|
-
"unittest/
|
|
353
|
-
"unittest/
|
|
354
|
-
"unittest/
|
|
359
|
+
"unittest/pathutils/dir.baz/file.foo.bar",
|
|
360
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
361
|
+
"unittest/pathutils/dir.foo/file.foo",
|
|
362
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.foo.bar",
|
|
355
363
|
],
|
|
356
364
|
),
|
|
357
365
|
(
|
|
358
|
-
"unittest/
|
|
366
|
+
"unittest/pathutils",
|
|
359
367
|
[],
|
|
360
368
|
["*.baz"],
|
|
361
369
|
0,
|
|
362
370
|
[
|
|
363
|
-
"unittest/
|
|
364
|
-
"unittest/
|
|
365
|
-
"unittest/
|
|
366
|
-
"unittest/
|
|
371
|
+
"unittest/pathutils/dir.baz/file.foo.bar",
|
|
372
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
373
|
+
"unittest/pathutils/dir.foo/file.foo",
|
|
374
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.foo.bar",
|
|
367
375
|
],
|
|
368
376
|
),
|
|
369
377
|
(
|
|
370
|
-
"unittest/
|
|
378
|
+
"unittest/pathutils",
|
|
371
379
|
[],
|
|
372
380
|
[],
|
|
373
381
|
2,
|
|
374
382
|
[
|
|
375
|
-
"unittest/
|
|
376
|
-
"unittest/
|
|
377
|
-
"unittest/
|
|
378
|
-
"unittest/
|
|
379
|
-
"unittest/
|
|
380
|
-
"unittest/
|
|
383
|
+
"unittest/pathutils/dir.baz/file.foo.bar",
|
|
384
|
+
"unittest/pathutils/dir.baz/file.foo.baz",
|
|
385
|
+
"unittest/pathutils/dir.baz/file.bar.baz",
|
|
386
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
387
|
+
"unittest/pathutils/dir.foo/file.baz",
|
|
388
|
+
"unittest/pathutils/dir.foo/file.foo",
|
|
381
389
|
],
|
|
382
390
|
),
|
|
383
391
|
(
|
|
384
|
-
"unittest/
|
|
392
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
385
393
|
[],
|
|
386
394
|
[],
|
|
387
395
|
0,
|
|
388
396
|
[
|
|
389
|
-
"unittest/
|
|
397
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
390
398
|
],
|
|
391
399
|
),
|
|
392
400
|
(
|
|
393
|
-
"unittest/
|
|
401
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
394
402
|
[],
|
|
395
403
|
[],
|
|
396
404
|
2,
|
|
397
405
|
[
|
|
398
|
-
"unittest/
|
|
406
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
399
407
|
],
|
|
400
408
|
),
|
|
401
409
|
(
|
|
402
|
-
"unittest/
|
|
410
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
403
411
|
["*.foo", "*.bar"],
|
|
404
412
|
["*.baz"],
|
|
405
413
|
0,
|
|
406
414
|
[
|
|
407
|
-
"unittest/
|
|
415
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
408
416
|
],
|
|
409
417
|
),
|
|
410
418
|
(
|
|
411
|
-
"unittest/
|
|
419
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
412
420
|
["*.foo"],
|
|
413
421
|
[],
|
|
414
422
|
0,
|
|
415
423
|
[],
|
|
416
424
|
),
|
|
417
425
|
(
|
|
418
|
-
"unittest/
|
|
426
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
419
427
|
[],
|
|
420
428
|
["*.bar"],
|
|
421
429
|
0,
|
|
@@ -436,145 +444,145 @@ class ShUtilsTest(unittest.TestCase):
|
|
|
436
444
|
|
|
437
445
|
data_copy_files = [
|
|
438
446
|
(
|
|
439
|
-
"unittest/
|
|
440
|
-
"unittest/
|
|
447
|
+
"unittest/pathutils",
|
|
448
|
+
"unittest/pathutils",
|
|
441
449
|
[],
|
|
442
450
|
[],
|
|
443
451
|
0,
|
|
444
452
|
[
|
|
445
|
-
"unittest/
|
|
446
|
-
"unittest/
|
|
447
|
-
"unittest/
|
|
448
|
-
"unittest/
|
|
449
|
-
"unittest/
|
|
450
|
-
"unittest/
|
|
451
|
-
"unittest/
|
|
452
|
-
"unittest/
|
|
453
|
-
"unittest/
|
|
454
|
-
"unittest/
|
|
453
|
+
"unittest/pathutils/dir.baz/file.foo.bar",
|
|
454
|
+
"unittest/pathutils/dir.baz/file.foo.baz",
|
|
455
|
+
"unittest/pathutils/dir.baz/file.bar.baz",
|
|
456
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
457
|
+
"unittest/pathutils/dir.foo/file.baz",
|
|
458
|
+
"unittest/pathutils/dir.foo/file.foo",
|
|
459
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.foo.bar",
|
|
460
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.foo.baz",
|
|
461
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.bar.baz",
|
|
462
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/dir.foo.bar.baz/file.foo.bar.baz",
|
|
455
463
|
],
|
|
456
464
|
),
|
|
457
465
|
(
|
|
458
|
-
"unittest/
|
|
459
|
-
"unittest/
|
|
466
|
+
"unittest/pathutils/dir.foo",
|
|
467
|
+
"unittest/pathutils/dir.foo",
|
|
460
468
|
[],
|
|
461
469
|
[],
|
|
462
470
|
0,
|
|
463
471
|
[
|
|
464
|
-
"unittest/
|
|
465
|
-
"unittest/
|
|
466
|
-
"unittest/
|
|
467
|
-
"unittest/
|
|
468
|
-
"unittest/
|
|
469
|
-
"unittest/
|
|
470
|
-
"unittest/
|
|
472
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
473
|
+
"unittest/pathutils/dir.foo/file.baz",
|
|
474
|
+
"unittest/pathutils/dir.foo/file.foo",
|
|
475
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.foo.bar",
|
|
476
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.foo.baz",
|
|
477
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.bar.baz",
|
|
478
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/dir.foo.bar.baz/file.foo.bar.baz",
|
|
471
479
|
],
|
|
472
480
|
),
|
|
473
481
|
(
|
|
474
|
-
"unittest/
|
|
475
|
-
"unittest/
|
|
482
|
+
"unittest/pathutils/dir.baz",
|
|
483
|
+
"unittest/pathutils/dir.baz",
|
|
476
484
|
[],
|
|
477
485
|
[],
|
|
478
486
|
0,
|
|
479
487
|
[
|
|
480
|
-
"unittest/
|
|
481
|
-
"unittest/
|
|
482
|
-
"unittest/
|
|
488
|
+
"unittest/pathutils/dir.baz/file.foo.bar",
|
|
489
|
+
"unittest/pathutils/dir.baz/file.foo.baz",
|
|
490
|
+
"unittest/pathutils/dir.baz/file.bar.baz",
|
|
483
491
|
],
|
|
484
492
|
),
|
|
485
493
|
(
|
|
486
|
-
"unittest/
|
|
487
|
-
"unittest/
|
|
494
|
+
"unittest/pathutils",
|
|
495
|
+
"unittest/pathutils",
|
|
488
496
|
["*.foo", "*.bar"],
|
|
489
497
|
["*.foo.bar"],
|
|
490
498
|
0,
|
|
491
499
|
[
|
|
492
|
-
"unittest/
|
|
493
|
-
"unittest/
|
|
500
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
501
|
+
"unittest/pathutils/dir.foo/file.foo",
|
|
494
502
|
],
|
|
495
503
|
),
|
|
496
504
|
(
|
|
497
|
-
"unittest/
|
|
498
|
-
"unittest/
|
|
505
|
+
"unittest/pathutils",
|
|
506
|
+
"unittest/pathutils",
|
|
499
507
|
["*.foo", "*.bar"],
|
|
500
508
|
[],
|
|
501
509
|
0,
|
|
502
510
|
[
|
|
503
|
-
"unittest/
|
|
504
|
-
"unittest/
|
|
505
|
-
"unittest/
|
|
506
|
-
"unittest/
|
|
511
|
+
"unittest/pathutils/dir.baz/file.foo.bar",
|
|
512
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
513
|
+
"unittest/pathutils/dir.foo/file.foo",
|
|
514
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.foo.bar",
|
|
507
515
|
],
|
|
508
516
|
),
|
|
509
517
|
(
|
|
510
|
-
"unittest/
|
|
511
|
-
"unittest/
|
|
518
|
+
"unittest/pathutils",
|
|
519
|
+
"unittest/pathutils",
|
|
512
520
|
[],
|
|
513
521
|
["*.baz"],
|
|
514
522
|
0,
|
|
515
523
|
[
|
|
516
|
-
"unittest/
|
|
517
|
-
"unittest/
|
|
518
|
-
"unittest/
|
|
519
|
-
"unittest/
|
|
524
|
+
"unittest/pathutils/dir.baz/file.foo.bar",
|
|
525
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
526
|
+
"unittest/pathutils/dir.foo/file.foo",
|
|
527
|
+
"unittest/pathutils/dir.foo/dir.foo.bar/file.foo.bar",
|
|
520
528
|
],
|
|
521
529
|
),
|
|
522
530
|
(
|
|
523
|
-
"unittest/
|
|
524
|
-
"unittest/
|
|
531
|
+
"unittest/pathutils",
|
|
532
|
+
"unittest/pathutils",
|
|
525
533
|
[],
|
|
526
534
|
[],
|
|
527
535
|
2,
|
|
528
536
|
[
|
|
529
|
-
"unittest/
|
|
530
|
-
"unittest/
|
|
531
|
-
"unittest/
|
|
532
|
-
"unittest/
|
|
533
|
-
"unittest/
|
|
534
|
-
"unittest/
|
|
537
|
+
"unittest/pathutils/dir.baz/file.foo.bar",
|
|
538
|
+
"unittest/pathutils/dir.baz/file.foo.baz",
|
|
539
|
+
"unittest/pathutils/dir.baz/file.bar.baz",
|
|
540
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
541
|
+
"unittest/pathutils/dir.foo/file.baz",
|
|
542
|
+
"unittest/pathutils/dir.foo/file.foo",
|
|
535
543
|
],
|
|
536
544
|
),
|
|
537
545
|
(
|
|
538
|
-
"unittest/
|
|
539
|
-
"unittest/
|
|
546
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
547
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
540
548
|
[],
|
|
541
549
|
[],
|
|
542
550
|
0,
|
|
543
551
|
[
|
|
544
|
-
"unittest/
|
|
552
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
545
553
|
],
|
|
546
554
|
),
|
|
547
555
|
(
|
|
548
|
-
"unittest/
|
|
549
|
-
"unittest/
|
|
556
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
557
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
550
558
|
[],
|
|
551
559
|
[],
|
|
552
560
|
2,
|
|
553
561
|
[
|
|
554
|
-
"unittest/
|
|
562
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
555
563
|
],
|
|
556
564
|
),
|
|
557
565
|
(
|
|
558
|
-
"unittest/
|
|
559
|
-
"unittest/
|
|
566
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
567
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
560
568
|
["*.foo", "*.bar"],
|
|
561
569
|
["*.baz"],
|
|
562
570
|
0,
|
|
563
571
|
[
|
|
564
|
-
"unittest/
|
|
572
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
565
573
|
],
|
|
566
574
|
),
|
|
567
575
|
(
|
|
568
|
-
"unittest/
|
|
569
|
-
"unittest/
|
|
576
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
577
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
570
578
|
["*.foo"],
|
|
571
579
|
[],
|
|
572
580
|
0,
|
|
573
581
|
[],
|
|
574
582
|
),
|
|
575
583
|
(
|
|
576
|
-
"unittest/
|
|
577
|
-
"unittest/
|
|
584
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
585
|
+
"unittest/pathutils/dir.foo/file.bar",
|
|
578
586
|
[],
|
|
579
587
|
["*.bar"],
|
|
580
588
|
0,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.71 → iker_python_common-1.0.72}/resources/unittest/config/config.cfg
RENAMED
|
File without changes
|
{iker_python_common-1.0.71 → iker_python_common-1.0.72}/resources/unittest/csvutils/data.csv
RENAMED
|
File without changes
|
{iker_python_common-1.0.71 → iker_python_common-1.0.72}/resources/unittest/csvutils/data.tsv
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker_python_common.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{iker_python_common-1.0.71 → iker_python_common-1.0.72}/src/iker_python_common.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/config_test.py
RENAMED
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/dbutils_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/dtutils_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/logger_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/retry_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.71 → iker_python_common-1.0.72}/test/iker_tests/common/utils/span_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|