1313
1414import click
1515
16- from python_inspector import pyinspector_settings as settings
16+ from python_inspector import settings
1717from python_inspector import utils_pypi
1818from python_inspector .cli_utils import FileOptionType
1919from python_inspector .utils import write_output_in_file
2020
2121TRACE = False
2222
23- __version__ = "0.13 .0"
23+ __version__ = "0.14 .0"
2424
2525DEFAULT_PYTHON_VERSION = settings .DEFAULT_PYTHON_VERSION
26+ PYPI_SIMPLE_URL = settings .PYPI_SIMPLE_URL
2627
2728
2829def print_version (ctx , param , value ):
@@ -71,7 +72,6 @@ def print_version(ctx, param, value):
7172 "python_version" ,
7273 type = click .Choice (utils_pypi .valid_python_versions ),
7374 metavar = "PYVER" ,
74- default = settings .DEFAULT_PYTHON_VERSION ,
7575 show_default = True ,
7676 required = True ,
7777 help = "Python version to use for dependency resolution. One of "
@@ -83,19 +83,18 @@ def print_version(ctx, param, value):
8383 "operating_system" ,
8484 type = click .Choice (utils_pypi .PLATFORMS_BY_OS ),
8585 metavar = "OS" ,
86- default = settings .DEFAULT_OS ,
8786 show_default = True ,
8887 required = True ,
8988 help = "OS to use for dependency resolution. One of " + ", " .join (utils_pypi .PLATFORMS_BY_OS ),
9089)
9190@click .option (
9291 "--index-url" ,
9392 "index_urls" ,
94- envvar = "PYINSP_INDEX_URL" ,
9593 type = str ,
9694 metavar = "INDEX" ,
9795 show_default = True ,
98- default = tuple (settings .INDEX_URL ),
96+ # since multiple is True, this is a sequence
97+ default = [settings .PYPI_SIMPLE_URL ],
9998 multiple = True ,
10099 help = "PyPI simple index URL(s) to use in order of preference. "
101100 "This option can be used multiple times." ,
@@ -123,7 +122,6 @@ def print_version(ctx, param, value):
123122 "--netrc" ,
124123 "netrc_file" ,
125124 type = click .Path (exists = True , readable = True , path_type = str , dir_okay = False ),
126- envvar = "PYINSP_NETRC_FILE" ,
127125 metavar = "NETRC-FILE" ,
128126 hidden = True ,
129127 required = False ,
@@ -165,7 +163,6 @@ def print_version(ctx, param, value):
165163)
166164@click .option (
167165 "--verbose" ,
168- envvar = "PYINSP_VERBOSE" ,
169166 is_flag = True ,
170167 help = "Enable verbose debug output." ,
171168)
0 commit comments