File tree Expand file tree Collapse file tree 3 files changed +4
-12
lines changed
src/pip/_internal/commands Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,7 @@ environment, including installed distributions.
10
10
11
11
The report is a JSON object with the following properties:
12
12
13
- - ` version ` : the string ` 0 ` , denoting that the inspect command is an experimental
14
- feature. This value will change to ` 1 ` , when the feature is deemed stable after
15
- gathering user feedback (likely in pip 22.3 or 23.0). Backward incompatible changes
16
- may be introduced in version ` 1 ` without notice. After that, it will change only if
13
+ - ` version ` : the string ` 1 ` . It will change only if
17
14
and when backward incompatible changes are introduced, such as removing mandatory
18
15
fields or changing the semantics or data type of existing fields. The introduction of
19
16
backward incompatible changes will follow the usual pip processes such as the
@@ -72,7 +69,7 @@ this (metadata abriged for brevity):
72
69
73
70
``` json
74
71
{
75
- "version" : " 0 " ,
72
+ "version" : " 1 " ,
76
73
"pip_version" : " 22.2.dev0" ,
77
74
"installed" : [
78
75
{
Original file line number Diff line number Diff line change @@ -46,19 +46,14 @@ def add_options(self) -> None:
46
46
self .parser .insert_option_group (0 , self .cmd_opts )
47
47
48
48
def run (self , options : Values , args : List [str ]) -> int :
49
- logger .warning (
50
- "pip inspect is currently an experimental command. "
51
- "The output format may change in a future release without prior warning."
52
- )
53
-
54
49
cmdoptions .check_list_path_option (options )
55
50
dists = get_environment (options .path ).iter_installed_distributions (
56
51
local_only = options .local ,
57
52
user_only = options .user ,
58
53
skip = set (stdlib_pkgs ),
59
54
)
60
55
output = {
61
- "version" : "0 " ,
56
+ "version" : "1 " ,
62
57
"pip_version" : __version__ ,
63
58
"installed" : [self ._dist_to_dict (dist ) for dist in dists ],
64
59
"environment" : default_environment (),
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def test_inspect_basic(simple_script: PipTestEnvironment) -> None:
28
28
"""
29
29
Test default behavior of inspect command.
30
30
"""
31
- result = simple_script .pip ("inspect" , allow_stderr_warning = True )
31
+ result = simple_script .pip ("inspect" )
32
32
report = json .loads (result .stdout )
33
33
installed = report ["installed" ]
34
34
assert len (installed ) == 4
You can’t perform that action at this time.
0 commit comments