pipu-cli 0.1.dev0__py3-none-any.whl → 0.1.dev1__py3-none-any.whl

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.
pipu_cli/__init__.py CHANGED
@@ -1,7 +1,7 @@
1
1
  import logging
2
2
  from .config import LOG_LEVEL
3
3
 
4
- __version__ = '0.1.dev0'
4
+ __version__ = '0.1.dev1'
5
5
 
6
6
 
7
7
  # Configure logging
pipu_cli/internals.py CHANGED
@@ -231,6 +231,13 @@ def list_outdated(
231
231
  session = PipSession()
232
232
  # Set timeout on the session
233
233
  session.timeout = timeout
234
+
235
+ # Add trusted hosts to the session
236
+ for host in trusted_hosts:
237
+ # Strip whitespace and skip empty strings
238
+ host = host.strip()
239
+ if host:
240
+ session.add_trusted_host(host, source="pip configuration")
234
241
  except Exception as e:
235
242
  # If we can't create a session (network issues, permissions, etc.), raise error
236
243
  raise ConnectionError(f"Failed to create network session: {e}") from e
@@ -133,6 +133,11 @@ def validate_existing_constraints_and_triggers(env_name: Optional[str] = None) -
133
133
  installed_packages = _get_installed_packages()
134
134
 
135
135
  try:
136
+ # Check if config file exists - if not, there's nothing to validate
137
+ config_path = get_recommended_pip_config_path()
138
+ if not config_path.exists():
139
+ return invalid_constraint_packages, invalid_trigger_packages
140
+
136
141
  # Check constraints
137
142
  section_name = _get_section_name(env_name)
138
143
  config, _ = _load_config(create_if_missing=False)
@@ -1107,7 +1112,11 @@ def remove_all_constraints_from_config(env_name: Optional[str] = None) -> Tuple[
1107
1112
  # Read existing config
1108
1113
  config = configparser.ConfigParser()
1109
1114
  if not config_path.exists():
1110
- raise ValueError(f"No pip configuration file found at {config_path}")
1115
+ # If file doesn't exist, no constraints to remove
1116
+ if env_name:
1117
+ raise ValueError(f"No constraints found in environment '{env_name}'")
1118
+ else:
1119
+ raise ValueError("No constraints found in any environment")
1111
1120
 
1112
1121
  config.read(config_path)
1113
1122
 
@@ -1195,7 +1204,11 @@ def remove_all_ignores_from_config(env_name: Optional[str] = None) -> Tuple[Path
1195
1204
  # Read existing config
1196
1205
  config = configparser.ConfigParser()
1197
1206
  if not config_path.exists():
1198
- raise ValueError(f"No pip configuration file found at {config_path}")
1207
+ # If file doesn't exist, no ignores to remove
1208
+ if env_name:
1209
+ raise ValueError(f"No ignores found in environment '{env_name}'")
1210
+ else:
1211
+ raise ValueError("No ignores found in any environment")
1199
1212
 
1200
1213
  config.read(config_path)
1201
1214
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pipu-cli
3
- Version: 0.1.dev0
3
+ Version: 0.1.dev1
4
4
  Summary: A cute Python package updater
5
5
  Author-email: Scott Arne Johnson <scott.arne.johnson@gmail.com>
6
6
  License-Expression: MIT
@@ -1,9 +1,9 @@
1
- pipu_cli/__init__.py,sha256=KOxurgQjOvev1wXOq9gL0JkZTXSsfbhH_KDEJjhHtG4,1190
1
+ pipu_cli/__init__.py,sha256=uIap9wB7bium3QAQQVj8Xds-A6LWdZxiVUi7Q-fRViw,1190
2
2
  pipu_cli/cli.py,sha256=aCN2Fz1bWhXs8MC7kqy5GdzJggNtTdumW4PQkxKOBpg,39993
3
3
  pipu_cli/common.py,sha256=g5krfXFsvVJpOf87Vw4DGi5WIduDgMlRuONKXqO328M,78
4
4
  pipu_cli/config.py,sha256=xsfNU4ORAujla_FGfsMKpxy7QTpd_bJhRF_u4IPKLW0,3635
5
- pipu_cli/internals.py,sha256=mOVsEEzR-xm1Kg1y3c_JU0BcJS4FjnogLoSoyqHV2-8,31806
6
- pipu_cli/package_constraints.py,sha256=aIFYRJc_DhUNWaNQmZBxUED3orG8x8Sy0W7xfJ5XVHY,92483
5
+ pipu_cli/internals.py,sha256=UIYmqZdxytwYoPcAc_EeMVGURSywXIHOvfXsZqAv_gM,32067
6
+ pipu_cli/package_constraints.py,sha256=6LSFlC93HNIFym7dYkfYn0fsOic6QDe1ADyghK94Pk8,93052
7
7
  pipu_cli/thread_safe.py,sha256=zdQyCoMVJW73MC-d1pL_4ZO-K4AwkI0JeVyQsd8x7nY,7545
8
8
  pipu_cli/utils.py,sha256=ijSHKVuKbjmRbj2RwD9S1606PeY4oDiutzhutpX25wM,5842
9
9
  pipu_cli/ui/__init__.py,sha256=nCb_3G_vZXy5_Or9z9r-3XhYV1ppUR1r7nMZ9_6Srwg,1432
@@ -11,9 +11,9 @@ pipu_cli/ui/apps.py,sha256=ltH24sg-3nqVpoomgCwhVYuAwq3hBUwYRH60JXtV2Yg,59771
11
11
  pipu_cli/ui/constants.py,sha256=HBPf4KYWHiT18c7ciQ0HeI7gZE3VIFOT0uobLU8YxQA,445
12
12
  pipu_cli/ui/modal_dialogs.py,sha256=5OF8UL2lXXH3GoAxFQCqp_T3jc5jeLSk77Y7ffBt6mw,45849
13
13
  pipu_cli/ui/table_widgets.py,sha256=PC0CqqrK3KgMbTCYRPG01lxkEtRBz9xr9PN8EzoObz8,14322
14
- pipu_cli-0.1.dev0.dist-info/licenses/LICENSE,sha256=q6TxVbSI0WMB9ulF2V0FWQfeA5om3d-T9X7QwuhdiYE,1075
15
- pipu_cli-0.1.dev0.dist-info/METADATA,sha256=xfsM0WPvGOfZFYkIZcGRvYhr10qudNk4567_4s76xj8,13200
16
- pipu_cli-0.1.dev0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- pipu_cli-0.1.dev0.dist-info/entry_points.txt,sha256=VSv6od00zOPblnFPflNLaci4jBtQIgLYJjL1BKxLz_o,42
18
- pipu_cli-0.1.dev0.dist-info/top_level.txt,sha256=z3Yce93-jGQjGRpsGZUZvbS8osh3OyS7MVpzG0uBE5M,9
19
- pipu_cli-0.1.dev0.dist-info/RECORD,,
14
+ pipu_cli-0.1.dev1.dist-info/licenses/LICENSE,sha256=q6TxVbSI0WMB9ulF2V0FWQfeA5om3d-T9X7QwuhdiYE,1075
15
+ pipu_cli-0.1.dev1.dist-info/METADATA,sha256=A0PcDEuBI6mLWJSL1u2seQwqyXF2II8dWqPy85-rZiw,13200
16
+ pipu_cli-0.1.dev1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ pipu_cli-0.1.dev1.dist-info/entry_points.txt,sha256=VSv6od00zOPblnFPflNLaci4jBtQIgLYJjL1BKxLz_o,42
18
+ pipu_cli-0.1.dev1.dist-info/top_level.txt,sha256=z3Yce93-jGQjGRpsGZUZvbS8osh3OyS7MVpzG0uBE5M,9
19
+ pipu_cli-0.1.dev1.dist-info/RECORD,,