winipedia-utils 0.1.5__py3-none-any.whl → 0.1.6__py3-none-any.whl

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.
@@ -4,10 +4,12 @@ finds all the plugins in the tests directory and the package's testing module
4
4
  and adds them to pytest_plugins. This way defining reusable fixtures is easy.
5
5
  """
6
6
 
7
+ from pathlib import Path
8
+
7
9
  import winipedia_utils
8
10
  from winipedia_utils.modules.module import to_module_name, to_path
9
11
 
10
- package_path = winipedia_utils.__path__[0]
12
+ package_path = Path(winipedia_utils.__path__[0])
11
13
 
12
14
  custom_plugin_path = to_path("tests.base.fixtures", is_package=True)
13
15
  package_plugin_path = (
@@ -17,8 +19,10 @@ package_plugin_path = (
17
19
  custom_plugin_module_names = [
18
20
  to_module_name(path) for path in custom_plugin_path.rglob("*.py")
19
21
  ]
22
+
20
23
  package_plugin_module_names = [
21
- to_module_name(path) for path in package_plugin_path.rglob("*.py")
24
+ to_module_name(path.relative_to(package_path.parent))
25
+ for path in package_plugin_path.rglob("*.py")
22
26
  ]
23
27
 
24
28
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: winipedia-utils
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: A package with many utility functions
5
5
  License: MIT
6
6
  Author: Winipedia
@@ -58,10 +58,10 @@ winipedia_utils/testing/tests/base/fixtures/scopes/package.py,sha256=IKOfj6vfyjE
58
58
  winipedia_utils/testing/tests/base/fixtures/scopes/session.py,sha256=Wdesvis8BleXjm93jK99JLX4u9Oy2dY0GIx_3ipXYXo,9624
59
59
  winipedia_utils/testing/tests/base/utils/__init__.py,sha256=mC-8dCkp8xarqkQu2QQLrPjHi6Ww9hcixWdHeQHWeRs,68
60
60
  winipedia_utils/testing/tests/base/utils/utils.py,sha256=dUPDrgAxlfREQb33zz23MfzacLLuwjy2AO-PQQp_aSI,2820
61
- winipedia_utils/testing/tests/conftest.py,sha256=8409afzrE8LFRuex66XSZjp9N3yaLvele7Oz8FJ5KPw,846
61
+ winipedia_utils/testing/tests/conftest.py,sha256=8RounBlI8Jq1aLaLNpv84MW4ne8Qq0aavQextDOp5ng,920
62
62
  winipedia_utils/text/__init__.py,sha256=j2bwtK6kyeHI6SnoBjpRju0C1W2n2paXBDlNjNtaUxA,48
63
63
  winipedia_utils/text/string.py,sha256=1jbBftlgxffGgSlPnQh3aRPIr8XekEwpSenjFCW6JyM,3478
64
- winipedia_utils-0.1.5.dist-info/LICENSE,sha256=3PrKJ2CWNrnyyHaC_r0wPDSukVWgmjOxHr__eQVH7cw,1087
65
- winipedia_utils-0.1.5.dist-info/METADATA,sha256=thDj7ZsiYJwRtJhOZqlBF1o0lzLS7qJEHtXwOMOGknw,12384
66
- winipedia_utils-0.1.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
67
- winipedia_utils-0.1.5.dist-info/RECORD,,
64
+ winipedia_utils-0.1.6.dist-info/LICENSE,sha256=3PrKJ2CWNrnyyHaC_r0wPDSukVWgmjOxHr__eQVH7cw,1087
65
+ winipedia_utils-0.1.6.dist-info/METADATA,sha256=Y6cU68IXZBTNJUSIOYbzrCcjRhIoh_Qad8mlq1kxVE4,12384
66
+ winipedia_utils-0.1.6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
67
+ winipedia_utils-0.1.6.dist-info/RECORD,,