pipu-cli 0.1.dev1__py3-none-any.whl → 0.1.dev3__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.dev1'
4
+ __version__ = '0.1.dev3'
5
5
 
6
6
 
7
7
  # Configure logging
pipu_cli/internals.py CHANGED
@@ -210,9 +210,16 @@ def list_outdated(
210
210
  extra_index_urls = []
211
211
  extra_index_urls = extra_index_urls or []
212
212
 
213
- # Ensure extra_index_urls is a list
213
+ # Parse extra_index_urls - pip config returns multi-line values as a single string
214
214
  if isinstance(extra_index_urls, str):
215
- extra_index_urls = [extra_index_urls]
215
+ # Split by newlines and clean up each URL (remove comments and whitespace)
216
+ extra_index_urls = [
217
+ url.strip()
218
+ for url in extra_index_urls.split('\n')
219
+ if url.strip() and not url.strip().startswith('#')
220
+ ]
221
+ elif not isinstance(extra_index_urls, list):
222
+ extra_index_urls = []
216
223
 
217
224
  # Combine all index URLs
218
225
  all_index_urls = [index_url] + extra_index_urls
@@ -223,8 +230,17 @@ def list_outdated(
223
230
  except Exception:
224
231
  trusted_hosts = []
225
232
  trusted_hosts = trusted_hosts or []
233
+
234
+ # Parse trusted_hosts - pip config returns multi-line values as a single string
226
235
  if isinstance(trusted_hosts, str):
227
- trusted_hosts = [trusted_hosts]
236
+ # Split by newlines and clean up each host (remove comments and whitespace)
237
+ trusted_hosts = [
238
+ host.strip()
239
+ for host in trusted_hosts.split('\n')
240
+ if host.strip() and not host.strip().startswith('#')
241
+ ]
242
+ elif not isinstance(trusted_hosts, list):
243
+ trusted_hosts = []
228
244
 
229
245
  # Set up pip session and package finder to check for updates
230
246
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pipu-cli
3
- Version: 0.1.dev1
3
+ Version: 0.1.dev3
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
@@ -11,9 +11,9 @@ Requires-Python: >=3.10
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
13
  Requires-Dist: rich_click<2.0,>=1.7
14
- Requires-Dist: rich<14.0,>=13.0
15
- Requires-Dist: textual<1.0,>=0.40
16
- Requires-Dist: packaging<25.0,>=23.0
14
+ Requires-Dist: rich<15.0,>=13.0
15
+ Requires-Dist: textual<7.0,>=0.40
16
+ Requires-Dist: packaging<26.0,>=23.0
17
17
  Provides-Extra: dev
18
18
  Requires-Dist: invoke; extra == "dev"
19
19
  Requires-Dist: build; extra == "dev"
@@ -1,8 +1,8 @@
1
- pipu_cli/__init__.py,sha256=uIap9wB7bium3QAQQVj8Xds-A6LWdZxiVUi7Q-fRViw,1190
1
+ pipu_cli/__init__.py,sha256=ZGWSFbUBHC0Pkg98JvTSu7BYa8nE73GgCi8vvlDrNxQ,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=UIYmqZdxytwYoPcAc_EeMVGURSywXIHOvfXsZqAv_gM,32067
5
+ pipu_cli/internals.py,sha256=1Fds2mMn2SJwfTwfjbeqAcTWJjOazP9QtrjRvgzzspo,32786
6
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
@@ -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.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,,
14
+ pipu_cli-0.1.dev3.dist-info/licenses/LICENSE,sha256=q6TxVbSI0WMB9ulF2V0FWQfeA5om3d-T9X7QwuhdiYE,1075
15
+ pipu_cli-0.1.dev3.dist-info/METADATA,sha256=9NjeUzT8buLXYRHBUAuQPulDnA0sLi66eov4XldR57c,13200
16
+ pipu_cli-0.1.dev3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ pipu_cli-0.1.dev3.dist-info/entry_points.txt,sha256=VSv6od00zOPblnFPflNLaci4jBtQIgLYJjL1BKxLz_o,42
18
+ pipu_cli-0.1.dev3.dist-info/top_level.txt,sha256=z3Yce93-jGQjGRpsGZUZvbS8osh3OyS7MVpzG0uBE5M,9
19
+ pipu_cli-0.1.dev3.dist-info/RECORD,,