winipedia-utils 0.1.5__py3-none-any.whl → 0.1.7__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.
- winipedia_utils/setup.py +4 -0
- winipedia_utils/testing/tests/conftest.py +6 -2
- {winipedia_utils-0.1.5.dist-info → winipedia_utils-0.1.7.dist-info}/METADATA +1 -1
- {winipedia_utils-0.1.5.dist-info → winipedia_utils-0.1.7.dist-info}/RECORD +6 -6
- {winipedia_utils-0.1.5.dist-info → winipedia_utils-0.1.7.dist-info}/LICENSE +0 -0
- {winipedia_utils-0.1.5.dist-info → winipedia_utils-0.1.7.dist-info}/WHEEL +0 -0
winipedia_utils/setup.py
CHANGED
@@ -10,10 +10,12 @@ from winipedia_utils.git.gitignore.gitignore import _add_package_patterns_to_git
|
|
10
10
|
from winipedia_utils.git.pre_commit.config import _add_package_hook_to_pre_commit_config
|
11
11
|
from winipedia_utils.git.pre_commit.run_hooks import _run_all_hooks
|
12
12
|
from winipedia_utils.logging.logger import get_logger
|
13
|
+
from winipedia_utils.os.os import run_subprocess
|
13
14
|
from winipedia_utils.projects.poetry.config import (
|
14
15
|
_add_configurations_to_pyproject_toml,
|
15
16
|
)
|
16
17
|
from winipedia_utils.projects.poetry.poetry import (
|
18
|
+
POETRY_RUN_ARGS,
|
17
19
|
_install_dev_dependencies,
|
18
20
|
)
|
19
21
|
from winipedia_utils.projects.project import _create_project_root
|
@@ -27,6 +29,8 @@ def _setup() -> None:
|
|
27
29
|
_install_dev_dependencies()
|
28
30
|
# create pre-commit config
|
29
31
|
_add_package_hook_to_pre_commit_config()
|
32
|
+
# install pre-commit
|
33
|
+
run_subprocess([*POETRY_RUN_ARGS, "pre-commit", "install"], check=True)
|
30
34
|
# add patterns to .gitignore
|
31
35
|
_add_package_patterns_to_gitignore()
|
32
36
|
# add tool.* configurations to pyproject.toml
|
@@ -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
|
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
|
|
@@ -40,7 +40,7 @@ winipedia_utils/projects/poetry/config.py,sha256=eEAU-9_uCEeOYx2lTAfydmH3D_YYTx6
|
|
40
40
|
winipedia_utils/projects/poetry/poetry.py,sha256=5jyUSMxhCZ7pz9bOaz5E9r7Da9qIrGOp6wcBzI1y7Cg,932
|
41
41
|
winipedia_utils/projects/project.py,sha256=GRprpzhasBtV9OtPhQE2HxeufOzcJgbaCZbrW34YnnE,691
|
42
42
|
winipedia_utils/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
43
|
-
winipedia_utils/setup.py,sha256=
|
43
|
+
winipedia_utils/setup.py,sha256=zh02NliaF2RkP1iVONVp_LbNqoZCwcB7KmAdO8QmREU,1735
|
44
44
|
winipedia_utils/testing/__init__.py,sha256=kXhB5xw02ec5xpcW_KV--9CBKdyCjnuR-NZzAJ5tq0g,51
|
45
45
|
winipedia_utils/testing/assertions.py,sha256=0JF4mqVTnLQ1qkAL_FuTwyN_idr00rvVlta7aDdnUXA,851
|
46
46
|
winipedia_utils/testing/convention.py,sha256=NxC_hYaUXshsa6LL6nQoEEKpTzC1KwTloKL8aS2gUPI,5010
|
@@ -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=
|
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.
|
65
|
-
winipedia_utils-0.1.
|
66
|
-
winipedia_utils-0.1.
|
67
|
-
winipedia_utils-0.1.
|
64
|
+
winipedia_utils-0.1.7.dist-info/LICENSE,sha256=3PrKJ2CWNrnyyHaC_r0wPDSukVWgmjOxHr__eQVH7cw,1087
|
65
|
+
winipedia_utils-0.1.7.dist-info/METADATA,sha256=eCVD7jQppbQQ-DykP6cwgehnZHpzvVloNP2qbc0LEB0,12384
|
66
|
+
winipedia_utils-0.1.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
67
|
+
winipedia_utils-0.1.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|