python-utility-scripts 0.0.5__tar.gz → 0.0.7__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-utility-scripts
3
- Version: 0.0.5
3
+ Version: 0.0.7
4
4
  Summary: Python utility scripts
5
5
  Home-page: https://github.com/RedHatQE/python-utility-scripts
6
6
  License: Apache-2.0
@@ -15,7 +15,6 @@ Classifier: Programming Language :: Python :: 3.9
15
15
  Classifier: Programming Language :: Python :: 3.10
16
16
  Classifier: Programming Language :: Python :: 3.11
17
17
  Classifier: Programming Language :: Python :: 3.12
18
- Requires-Dist: openshift-python-utilities (>=5.0.23,<6.0.0)
19
18
  Requires-Dist: pylero (>=0.0.8,<0.0.9)
20
19
  Requires-Dist: python-simple-logger (>=1.0.8,<2.0.0)
21
20
  Project-URL: Documentation, https://github.com/RedHatQE/python-utility-scripts/blob/main/README.md
@@ -15,10 +15,12 @@ def is_fixture_autouse(func):
15
15
  for deco in func.decorator_list:
16
16
  if not hasattr(deco, "func"):
17
17
  continue
18
- if deco.func.attr == "fixture" and deco.func.value.id == "pytest":
19
- for _key in deco.keywords:
20
- if _key.arg == "autouse":
21
- return _key.value.s
18
+
19
+ if getattr(deco.func, "attr", None) and getattr(deco.func, "value", None):
20
+ if deco.func.attr == "fixture" and deco.func.value.id == "pytest":
21
+ for _key in deco.keywords:
22
+ if _key.arg == "autouse":
23
+ return _key.value.s
22
24
 
23
25
 
24
26
  def _iter_functions(tree):
@@ -64,7 +66,9 @@ def is_ignore_function_list(ignore_prefix_list, function):
64
66
  default=os.path.expanduser("~/.config/python-utility-scripts/config.yaml"),
65
67
  )
66
68
  @click.option(
67
- "--exclude-files", help="Provide a comma-separated string or list of files to exclude", type=ListParamType()
69
+ "--exclude-files",
70
+ help="Provide a comma-separated string or list of files to exclude",
71
+ type=ListParamType(),
68
72
  )
69
73
  @click.option(
70
74
  "--exclude-function-prefixes",
@@ -9,7 +9,7 @@ exclude = [".git", ".venv", ".mypy_cache", ".tox", "__pycache__"]
9
9
 
10
10
  [tool.poetry]
11
11
  name = "python-utility-scripts"
12
- version = "0.0.5"
12
+ version = "0.0.7"
13
13
  description = "Python utility scripts"
14
14
  authors = ["dbasunag <dbasunag@redhat.com>"]
15
15
  license = "Apache License 2.0"
@@ -32,7 +32,6 @@ pyappsutils-unusedcode = "apps.unused_code.unused_code:get_unused_functions"
32
32
  python = "^3.8"
33
33
  python-simple-logger = "^1.0.8"
34
34
  pylero = "^0.0.8"
35
- openshift-python-utilities = "^5.0.23"
36
35
 
37
36
  [tool.poetry.group.dev.dependencies]
38
37
  ipdb = "^0.13.13"