pyrig-dev 2.1.0__tar.gz → 2.2.1__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.
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/PKG-INFO +1 -2
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/pyproject.toml +1 -2
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/src/pyrig_dev/rig/tests/fixtures/fixtures.py +12 -1
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/LICENSE +0 -0
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/README.md +0 -0
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/src/pyrig_dev/__init__.py +0 -0
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/src/pyrig_dev/py.typed +0 -0
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/src/pyrig_dev/rig/__init__.py +0 -0
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/src/pyrig_dev/rig/configs/__init__.py +0 -0
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/src/pyrig_dev/rig/configs/pyproject.py +0 -0
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/src/pyrig_dev/rig/configs/remote_version_control/__init__.py +0 -0
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/src/pyrig_dev/rig/configs/remote_version_control/workflows/__init__.py +0 -0
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/src/pyrig_dev/rig/configs/remote_version_control/workflows/health_check.py +0 -0
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/src/pyrig_dev/rig/tests/__init__.py +0 -0
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/src/pyrig_dev/rig/tests/fixtures/__init__.py +0 -0
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/src/pyrig_dev/rig/tools/__init__.py +0 -0
- {pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/src/pyrig_dev/rig/tools/dependency_auditor.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pyrig-dev"
|
|
3
|
-
version = "2.1
|
|
3
|
+
version = "2.2.1"
|
|
4
4
|
description = "A package that handles the dev dependencies of pyrig."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
@@ -26,7 +26,6 @@ classifiers = [
|
|
|
26
26
|
"Operating System :: OS Independent",
|
|
27
27
|
"Typing :: Typed",
|
|
28
28
|
]
|
|
29
|
-
keywords = []
|
|
30
29
|
|
|
31
30
|
[[project.authors]]
|
|
32
31
|
name = "Winipedia"
|
|
@@ -16,7 +16,7 @@ from pytest_mock import MockerFixture
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
@pytest.fixture
|
|
19
|
-
def
|
|
19
|
+
def register_module_as_src_package(
|
|
20
20
|
mocker: MockerFixture,
|
|
21
21
|
) -> Callable[[ModuleType, type], None]:
|
|
22
22
|
"""Return a callable that registers a module as a pyrig source module.
|
|
@@ -35,6 +35,17 @@ def register_module_as_pyrig_module(
|
|
|
35
35
|
"""
|
|
36
36
|
|
|
37
37
|
def register(module: ModuleType, cls: type) -> None:
|
|
38
|
+
"""Register ``module`` as a pyrig source module.
|
|
39
|
+
|
|
40
|
+
Patches ``is_src_package`` to report ``True`` and reimports ``module``
|
|
41
|
+
so its gated override class is registered as a subclass. Returns early
|
|
42
|
+
without reimporting if ``cls`` is already present on the module.
|
|
43
|
+
|
|
44
|
+
Args:
|
|
45
|
+
module: The override module to (re)import as a pyrig module.
|
|
46
|
+
cls: The override class whose presence marks ``module`` as already
|
|
47
|
+
registered.
|
|
48
|
+
"""
|
|
38
49
|
is_package_mock = mocker.patch(
|
|
39
50
|
is_src_package.__module__ + "." + is_src_package.__name__,
|
|
40
51
|
return_value=True,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyrig_dev-2.1.0 → pyrig_dev-2.2.1}/src/pyrig_dev/rig/configs/remote_version_control/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|