Skip to content

Commit 08ff614

Browse files
committed
Rename subprocess.environment to subprocesses.inspect_environment
1 parent 0e7ebf2 commit 08ff614

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

rsconnect/environment.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Given a directory and a Python executable, this module inspects the environment
44
and returns information about the Python version and the environment itself.
55
6-
To inspect the environment it relies on a subprocess that runs the `rsconnect.subprocesses.environment`
6+
To inspect the environment it relies on a subprocess that runs the `rsconnect.subprocesses.inspect_environment`
77
module. This module is responsible for gathering the environment information and returning it in a JSON format.
88
"""
99

@@ -19,7 +19,7 @@
1919
from . import pyproject
2020
from .log import logger
2121
from .exception import RSConnectException
22-
from .subprocesses.environment import EnvironmentData, MakeEnvironmentData as _MakeEnvironmentData
22+
from .subprocesses.inspect_environment import EnvironmentData, MakeEnvironmentData as _MakeEnvironmentData
2323

2424
import click
2525

@@ -189,7 +189,7 @@ def _inspect_environment(
189189
if force_generate:
190190
flags.append("f")
191191

192-
args = [python, "-m", "rsconnect.subprocesses.environment"]
192+
args = [python, "-m", "rsconnect.subprocesses.inspect_environment"]
193193
if flags:
194194
args.append("-" + "".join(flags))
195195
args.append(directory)

rsconnect/subprocesses/environment.py renamed to rsconnect/subprocesses/inspect_environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Environment data class abstraction that is usable as an executable module
44
55
```bash
6-
python -m rsconnect.subprocesses.environment
6+
python -m rsconnect.subprocesses.inspect_environment
77
```
88
"""
99
from __future__ import annotations

tests/test_environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import rsconnect.environment
99
from rsconnect.exception import RSConnectException
1010
from rsconnect.environment import Environment, which_python
11-
from rsconnect.subprocesses.environment import get_python_version, get_default_locale, filter_pip_freeze_output
11+
from rsconnect.subprocesses.inspect_environment import get_python_version, get_default_locale, filter_pip_freeze_output
1212

1313
from .utils import get_dir
1414

0 commit comments

Comments
 (0)