coiled 1.121.1.dev15__py3-none-any.whl → 1.121.1.dev16__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.

Potentially problematic release.


This version of coiled might be problematic. Click here for more details.

coiled/software_utils.py CHANGED
@@ -55,6 +55,7 @@ subdir_datas = {}
55
55
 
56
56
  ANY_AVAILABLE = "ANY-AVAILABLE"
57
57
  AUTH_BEARER_USERNAME = "AUTH_BEARER_TOKEN"
58
+ CONDA_TOKEN_USERNAME = "CONDA_TOKEN"
58
59
  COILED_LOCAL_PACKAGE_PREFIX = "coiled_local_"
59
60
  DEFAULT_JSON_PYPI_URL = "https://pypi.org/pypi"
60
61
  DEFAULT_PYPI_URL = "https://pypi.org/simple"
@@ -573,7 +574,9 @@ def get_mamba_auth_dict(home_dir: Path | None = None) -> dict[str, tuple[str, st
573
574
  auth_data = json.load(f)
574
575
  for domain, auth in auth_data.items():
575
576
  auth_type = auth.get("type")
576
- if auth_type == "CondaToken" or auth_type == "BearerToken":
577
+ if auth_type == "CondaToken":
578
+ domain_auth[domain] = (CONDA_TOKEN_USERNAME, auth["token"])
579
+ elif auth_type == "BearerToken":
577
580
  domain_auth[domain] = (AUTH_BEARER_USERNAME, auth["token"])
578
581
  elif auth_type == "BasicHTTPAuthentication":
579
582
  domain_auth[domain] = (
@@ -706,7 +709,7 @@ print(json.dumps(auth_parts))
706
709
  return None
707
710
 
708
711
  if auth_type == "token":
709
- username = AUTH_BEARER_USERNAME
712
+ username = CONDA_TOKEN_USERNAME
710
713
 
711
714
  if not username and not password:
712
715
  return None
@@ -759,7 +762,7 @@ def set_auth_for_url(url: Url | str) -> str:
759
762
  )
760
763
  if auth_parts is not None:
761
764
  username, password = auth_parts
762
- if username == AUTH_BEARER_USERNAME:
765
+ if username == CONDA_TOKEN_USERNAME:
763
766
  # If the username indicates this is a token (which only happens for mamba auth)
764
767
  # the token should be embedded directly in the URL and not in the auth portion
765
768
 
@@ -775,8 +778,11 @@ def set_auth_for_url(url: Url | str) -> str:
775
778
  elif username or password:
776
779
  parsed_url = parsed_url._replace(auth=f"{username or ''}:{password or ''}")
777
780
 
778
- if username and username != AUTH_BEARER_USERNAME and not password:
779
- logger.info(f"No password found for {parsed_url.url}")
781
+ if username and username != CONDA_TOKEN_USERNAME and not password:
782
+ if username == AUTH_BEARER_USERNAME:
783
+ logger.warning(f"No bearer token found for {parsed_url.url}")
784
+ else:
785
+ logger.info(f"No password found for {parsed_url.url}")
780
786
  elif not username:
781
787
  logger.info(f"No username or password found for {parsed_url.url}")
782
788
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: coiled
3
- Version: 1.121.1.dev15
3
+ Version: 1.121.1.dev16
4
4
  Summary: Python client for coiled.io dask clusters
5
5
  Project-URL: Homepage, https://coiled.io
6
6
  Maintainer-email: Coiled <info@coiled.io>
@@ -19,7 +19,7 @@ coiled/prefect.py,sha256=j1EOg7Xuw82TNRonAGEoZ3ANlwN8GM5aDXRYSjC0lnA,1497
19
19
  coiled/pypi_conda_map.py,sha256=GlLqvSjqvFoEPsoIVZ7so4JH3j-Z9oHKwf77UoQ7d7s,9865
20
20
  coiled/scan.py,sha256=ghAo7TKAG7E013HJpYWbic-Kp_UUf8iu533GaBpYnS8,25760
21
21
  coiled/software.py,sha256=eh3kZ8QBuIt_SPvTy_x6TXEv87SGqOJkO4HW-LCSsas,8701
22
- coiled/software_utils.py,sha256=TMrNzG_B0cRL49msGvNZbWm1P6rLL1DorOrs-nMvJyc,35218
22
+ coiled/software_utils.py,sha256=6fdhzNG09XZuagOBaqAaqYZRNdh8TGt3XA3ULbdfWQ8,35503
23
23
  coiled/spans.py,sha256=Aq2MOX6JXaJ72XiEmymPcsefs-kID85MEw6t-kOdPWI,2078
24
24
  coiled/spark.py,sha256=kooZCZT4dLMG_AQEOlaf6gj86G3UdowDfbw-Eiq94MU,9059
25
25
  coiled/types.py,sha256=G2SAprLouhf5GpoO3KnSxRlBtUP7_cI4xc7xQK_6bfE,13873
@@ -94,8 +94,8 @@ coiled/v2/widgets/__init__.py,sha256=Bt3GHTTyri-kFUaqGRVydDM-sCg5NdNujDg2RyvgV8U
94
94
  coiled/v2/widgets/interface.py,sha256=YeMQ5qdRbbpM04x9qIg2LE1xwxyRxFbdDYnkrwHazPk,301
95
95
  coiled/v2/widgets/rich.py,sha256=3rU5-yso92NdeEh3uSvEE-GwPNyp6i0Nb5PE5czXCik,28974
96
96
  coiled/v2/widgets/util.py,sha256=Y8qpGqwNzqfCzgyRFRy7vcscBoXqop-Upi4HLPpXLgg,3120
97
- coiled-1.121.1.dev15.dist-info/METADATA,sha256=5WR3Ydy5WIs_9PcI__0P14TQQ42IUGV6C7zVtxNQYJA,2182
98
- coiled-1.121.1.dev15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
99
- coiled-1.121.1.dev15.dist-info/entry_points.txt,sha256=C8dz1ST_bTlTO-kNvuHBJQma9PyJPotg0S4xpPt5aHY,47
100
- coiled-1.121.1.dev15.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
101
- coiled-1.121.1.dev15.dist-info/RECORD,,
97
+ coiled-1.121.1.dev16.dist-info/METADATA,sha256=rbrN-wQvjppbKPckPR0yqeIvL2IuPqW810jrP8Jf0Y4,2182
98
+ coiled-1.121.1.dev16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
99
+ coiled-1.121.1.dev16.dist-info/entry_points.txt,sha256=C8dz1ST_bTlTO-kNvuHBJQma9PyJPotg0S4xpPt5aHY,47
100
+ coiled-1.121.1.dev16.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
101
+ coiled-1.121.1.dev16.dist-info/RECORD,,