rucio-clients 37.1.0__py3-none-any.whl → 37.2.0__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 rucio-clients might be problematic. Click here for more details.

rucio/common/utils.py CHANGED
@@ -595,20 +595,17 @@ class ScopeExtractionAlgorithms(PolicyPackageAlgorithms):
595
595
  @staticmethod
596
596
  def extract_scope_default(did: str, scopes: Optional['Sequence[str]']) -> 'Sequence[str]':
597
597
  """
598
- Default fallback scope extraction algorithm, based on the ATLAS scope extraction algorithm.
598
+ Default scope extraction algorithm. Extracts the scope from the DID.
599
599
 
600
600
  :param did: The DID to extract the scope from.
601
+ :param scopes: Not used in the default algorithm.
601
602
 
602
- :returns: A tuple containing the extracted scope and the DID.
603
+ :returns: A tuple containing the extracted scope and the name.
603
604
  """
604
- if did.find(':') > -1:
605
- if len(did.split(':')) > 2:
606
- raise RucioException('Too many colons. Cannot extract scope and name')
607
- scope, name = did.split(':')[0], did.split(':')[1]
608
- if name.endswith('/'):
609
- name = name[:-1]
610
- return scope, name
611
- else:
605
+
606
+ # This block is ATLAS specific, to be removed in the future.
607
+ # More info at https://github.com/rucio/rucio/pull/7521
608
+ if did.find(':') == -1:
612
609
  scope = did.split('.')[0]
613
610
  if did.startswith('user') or did.startswith('group'):
614
611
  scope = ".".join(did.split('.')[0:2])
@@ -616,6 +613,16 @@ class ScopeExtractionAlgorithms(PolicyPackageAlgorithms):
616
613
  did = did[:-1]
617
614
  return scope, did
618
615
 
616
+ parts = did.split(':')
617
+ if len(parts) != 2:
618
+ msg = f"Cannot extract scope and name from DID {did}. The DID should have exactly one colon but found {len(parts)} colons."
619
+ raise RucioException(msg)
620
+ scope, name = parts
621
+ if not scope or not name:
622
+ msg = f"Cannot extract scope and name from DID {did}. Found empty scope or name."
623
+ raise RucioException(msg)
624
+ return scope, name
625
+
619
626
  @staticmethod
620
627
  def extract_scope_dirac(did: str, scopes: Optional['Sequence[str]']) -> 'Sequence[str]':
621
628
  # Default dirac scope extract algorithm. Scope is the second element in the LFN or the first one (VO name)
rucio/vcsversion.py CHANGED
@@ -4,8 +4,8 @@ This file is automatically generated; Do not edit it. :)
4
4
  '''
5
5
  VERSION_INFO = {
6
6
  'final': True,
7
- 'version': '37.1.0',
7
+ 'version': '37.2.0',
8
8
  'branch_nick': 'release-37',
9
- 'revision_id': 'f6fa712c32b14e1d104349a1c2596cdcb4d8d92d',
10
- 'revno': 13640
9
+ 'revision_id': 'ebd2ace1ae33234044fc2d70c35f6ae8f59127ce',
10
+ 'revno': 13666
11
11
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rucio-clients
3
- Version: 37.1.0
3
+ Version: 37.2.0
4
4
  Summary: Rucio Client Lite Package
5
5
  Home-page: https://rucio.cern.ch/
6
6
  Author: Rucio
@@ -19,13 +19,13 @@ Classifier: Programming Language :: Python :: 3.10
19
19
  Requires-Python: >=3.9, <4
20
20
  License-File: LICENSE
21
21
  License-File: AUTHORS.rst
22
+ Requires-Dist: click
22
23
  Requires-Dist: requests
23
24
  Requires-Dist: urllib3
24
25
  Requires-Dist: dogpile-cache<=1.2.2
25
26
  Requires-Dist: packaging
26
27
  Requires-Dist: tabulate
27
28
  Requires-Dist: jsonschema
28
- Requires-Dist: dataclasses
29
29
  Requires-Dist: rich
30
30
  Requires-Dist: typing_extensions
31
31
  Provides-Extra: ssh
@@ -1,6 +1,6 @@
1
1
  rucio/__init__.py,sha256=Y7cPPlHVQPFyN8bSPFC0W3WViEdONr5g_qwBub5rufE,660
2
2
  rucio/alembicrevision.py,sha256=lNSQZYA4U_fsMW8l0dHpiV243XZhioqvVo9ihmpuQBo,690
3
- rucio/vcsversion.py,sha256=EsGNongUObTBlx1iw_IL0O62ePrVqOiCZI9lA0dfr6g,244
3
+ rucio/vcsversion.py,sha256=1QLGzI9aecOoeru4NFiVYESuyOrJF78DFMRx9OiQz-w,244
4
4
  rucio/version.py,sha256=IwsNb1QQk0D092QQbR2K9wBPF2Akny1RGs-ZZziUohE,1519
5
5
  rucio/cli/__init__.py,sha256=GIkHmxgE3xdvWSf-7ZnvVaJmbs7NokaSjbFzsrXOG9o,662
6
6
  rucio/cli/account.py,sha256=7YWLfmiplhCjaaHNSYBzd7d_4yYzxUSRrsT0xGcNr2w,9452
@@ -64,7 +64,7 @@ rucio/common/stomp_utils.py,sha256=3GTiRTJ0roe5OX_wgkVwOJYAIhGgYbhiROHc2M8LQT8,5
64
64
  rucio/common/stopwatch.py,sha256=_9zxoLjr8A0wUDJsljK4vZNDCI-dIOgpcxXiCNVJcHU,1641
65
65
  rucio/common/test_rucio_server.py,sha256=2teFpN5Pthp-zQt1_aErOURDTgOhFP9GKdEr1NMmc4o,5085
66
66
  rucio/common/types.py,sha256=THfYyGKy7KUEvkBgAXSkdI2SxZBlsSr6E3sF9OkEms4,11764
67
- rucio/common/utils.py,sha256=oPBOcyaEG9Z4AI22rPt87gv5RhxJenAttxq7CLdU0FU,61531
67
+ rucio/common/utils.py,sha256=nvubI6L2MH5aQy-23NmyHUVkmdeeMLbd-RYMiG85pT4,61854
68
68
  rucio/common/schema/__init__.py,sha256=2nmfxV4ps9J030fUoSiJs4OQCxiEk77rPrNeGk9xgZs,7800
69
69
  rucio/common/schema/generic.py,sha256=NkjdxVutlRm-7AvgQf9bTW0Gb0AomuiV1iwfXOPNmIQ,15811
70
70
  rucio/common/schema/generic_multi_vo.py,sha256=Owk9JMxycAcayTDnx-9kiXZSRBHC_jPaq79jjE1FiB0,15035
@@ -89,16 +89,16 @@ rucio/rse/protocols/ssh.py,sha256=pHPAQx2bPNkMrtqbCqDfq7OXoy7XphQ-i2Stzdvnf1k,17
89
89
  rucio/rse/protocols/storm.py,sha256=Z4fzklxG-x70A0Lugg1jE1RicwCSeF27iz0MXO-4to0,7864
90
90
  rucio/rse/protocols/webdav.py,sha256=nNMWEVqO1nYxJWrCVBoWLhG-XG2-ee5CL5H_MNRwkg0,24513
91
91
  rucio/rse/protocols/xrootd.py,sha256=oJHueVR44dcW5nkg8jCbr9PetV9UIti3C0tka_m7yIk,12604
92
- rucio_clients-37.1.0.data/data/requirements.client.txt,sha256=uGqQvHApEbAsTgkHDqGFTmPmKtd2vL7o4rv4LO8ikjM,1790
93
- rucio_clients-37.1.0.data/data/etc/rse-accounts.cfg.template,sha256=IfDnXVxBPUrMnTMbJnd3P7eYHgY1C4Kfz7xKskJs-FI,543
94
- rucio_clients-37.1.0.data/data/etc/rucio.cfg.atlas.client.template,sha256=aHP1oX9m5yA8xVTTT2Hz6AyOYu92-Bcd5LF0i3AZRQw,1350
95
- rucio_clients-37.1.0.data/data/etc/rucio.cfg.template,sha256=iqtbivJDlngApmuJDiOLDQPRlxDRfljpLmiT_tzlUrM,8081
96
- rucio_clients-37.1.0.data/data/rucio_client/merge_rucio_configs.py,sha256=u62K1EcCGydM5nZA30zhlqWo4EX5N87b_MDkx5YfzVI,6163
97
- rucio_clients-37.1.0.data/scripts/rucio,sha256=xQRL_0mwut48KxOgWZexsSx9jfnaZHqSTAo7OnCHAgA,5081
98
- rucio_clients-37.1.0.data/scripts/rucio-admin,sha256=AhPO6-fAPviHObhB_Yi7GJXKfjpaH6m0RqxwctBeFlE,4229
99
- rucio_clients-37.1.0.dist-info/licenses/AUTHORS.rst,sha256=c4MEJjLcFZ5euNtPA7jGFL26javbFKpWTvxBoIs_l6w,4726
100
- rucio_clients-37.1.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
101
- rucio_clients-37.1.0.dist-info/METADATA,sha256=V7x7N0dwHh1yGUWLRVgF6R4W9bFR2_XqoVJ2CVB6MHQ,1753
102
- rucio_clients-37.1.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
103
- rucio_clients-37.1.0.dist-info/top_level.txt,sha256=lJM8plwW0ePPICkwFnpYzfdqHnSv6JZr1OD4JEysPgM,6
104
- rucio_clients-37.1.0.dist-info/RECORD,,
92
+ rucio_clients-37.2.0.data/data/requirements.client.txt,sha256=uGqQvHApEbAsTgkHDqGFTmPmKtd2vL7o4rv4LO8ikjM,1790
93
+ rucio_clients-37.2.0.data/data/etc/rse-accounts.cfg.template,sha256=IfDnXVxBPUrMnTMbJnd3P7eYHgY1C4Kfz7xKskJs-FI,543
94
+ rucio_clients-37.2.0.data/data/etc/rucio.cfg.atlas.client.template,sha256=aHP1oX9m5yA8xVTTT2Hz6AyOYu92-Bcd5LF0i3AZRQw,1350
95
+ rucio_clients-37.2.0.data/data/etc/rucio.cfg.template,sha256=iqtbivJDlngApmuJDiOLDQPRlxDRfljpLmiT_tzlUrM,8081
96
+ rucio_clients-37.2.0.data/data/rucio_client/merge_rucio_configs.py,sha256=u62K1EcCGydM5nZA30zhlqWo4EX5N87b_MDkx5YfzVI,6163
97
+ rucio_clients-37.2.0.data/scripts/rucio,sha256=xQRL_0mwut48KxOgWZexsSx9jfnaZHqSTAo7OnCHAgA,5081
98
+ rucio_clients-37.2.0.data/scripts/rucio-admin,sha256=AhPO6-fAPviHObhB_Yi7GJXKfjpaH6m0RqxwctBeFlE,4229
99
+ rucio_clients-37.2.0.dist-info/licenses/AUTHORS.rst,sha256=c4MEJjLcFZ5euNtPA7jGFL26javbFKpWTvxBoIs_l6w,4726
100
+ rucio_clients-37.2.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
101
+ rucio_clients-37.2.0.dist-info/METADATA,sha256=AD8orLD7P3wE6x06sLwzOY5eWq6M56Ur6c1s5W523sY,1747
102
+ rucio_clients-37.2.0.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
103
+ rucio_clients-37.2.0.dist-info/top_level.txt,sha256=lJM8plwW0ePPICkwFnpYzfdqHnSv6JZr1OD4JEysPgM,6
104
+ rucio_clients-37.2.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (80.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5