-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Corey
committed
Jul 6, 2023
1 parent
9c57296
commit d5dcdb3
Showing
4 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from .t_invocation_env import T_InvocationEnv, PyProjectSrc | ||
|
||
class GlobalInstalBase(T_InvocationEnv): | ||
@classmethod | ||
def set_params(cls): | ||
cls.local_origen = True | ||
cls.invocation = PyProjectSrc.Global | ||
cls.cli_dir = cls.site_cli_dir | ||
cls.file_based_evals = True | ||
|
||
# Pyproject closer to root - no plugins | ||
class TestGlobalInstallNoPlugins(GlobalInstalBase): | ||
@classmethod | ||
def set_params(cls): | ||
super().set_params() | ||
cls.target_pyproj_dir = cls.site_packages_dir.parent | ||
cls.has_pls = False | ||
|
||
# Pyproject at site-packages dir - with plugins | ||
class TestGlobalInstallWithPlugins(GlobalInstalBase): | ||
@classmethod | ||
def set_params(cls): | ||
super().set_params() | ||
cls.target_pyproj_dir = cls.site_packages_dir | ||
cls.has_pls = True | ||
|
||
# Pyproject at binary location - no plugins | ||
class TestGlobalInstallAtCliDir(GlobalInstalBase): | ||
@classmethod | ||
def set_params(cls): | ||
super().set_params() | ||
cls.target_pyproj_dir = cls.site_cli_dir | ||
cls.has_pls = False |