rucio-clients 37.1.0.post1__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 +17 -10
- rucio/vcsversion.py +3 -3
- {rucio_clients-37.1.0.post1.dist-info → rucio_clients-37.2.0.dist-info}/METADATA +1 -2
- {rucio_clients-37.1.0.post1.dist-info → rucio_clients-37.2.0.dist-info}/RECORD +15 -15
- {rucio_clients-37.1.0.post1.dist-info → rucio_clients-37.2.0.dist-info}/WHEEL +1 -1
- {rucio_clients-37.1.0.post1.data → rucio_clients-37.2.0.data}/data/etc/rse-accounts.cfg.template +0 -0
- {rucio_clients-37.1.0.post1.data → rucio_clients-37.2.0.data}/data/etc/rucio.cfg.atlas.client.template +0 -0
- {rucio_clients-37.1.0.post1.data → rucio_clients-37.2.0.data}/data/etc/rucio.cfg.template +0 -0
- {rucio_clients-37.1.0.post1.data → rucio_clients-37.2.0.data}/data/requirements.client.txt +0 -0
- {rucio_clients-37.1.0.post1.data → rucio_clients-37.2.0.data}/data/rucio_client/merge_rucio_configs.py +0 -0
- {rucio_clients-37.1.0.post1.data → rucio_clients-37.2.0.data}/scripts/rucio +0 -0
- {rucio_clients-37.1.0.post1.data → rucio_clients-37.2.0.data}/scripts/rucio-admin +0 -0
- {rucio_clients-37.1.0.post1.dist-info → rucio_clients-37.2.0.dist-info}/licenses/AUTHORS.rst +0 -0
- {rucio_clients-37.1.0.post1.dist-info → rucio_clients-37.2.0.dist-info}/licenses/LICENSE +0 -0
- {rucio_clients-37.1.0.post1.dist-info → rucio_clients-37.2.0.dist-info}/top_level.txt +0 -0
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
|
|
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
|
|
603
|
+
:returns: A tuple containing the extracted scope and the name.
|
|
603
604
|
"""
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
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.
|
|
7
|
+
'version': '37.2.0',
|
|
8
8
|
'branch_nick': 'release-37',
|
|
9
|
-
'revision_id': '
|
|
10
|
-
'revno':
|
|
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.
|
|
3
|
+
Version: 37.2.0
|
|
4
4
|
Summary: Rucio Client Lite Package
|
|
5
5
|
Home-page: https://rucio.cern.ch/
|
|
6
6
|
Author: Rucio
|
|
@@ -26,7 +26,6 @@ Requires-Dist: dogpile-cache<=1.2.2
|
|
|
26
26
|
Requires-Dist: packaging
|
|
27
27
|
Requires-Dist: tabulate
|
|
28
28
|
Requires-Dist: jsonschema
|
|
29
|
-
Requires-Dist: dataclasses
|
|
30
29
|
Requires-Dist: rich
|
|
31
30
|
Requires-Dist: typing_extensions
|
|
32
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=
|
|
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=
|
|
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.
|
|
93
|
-
rucio_clients-37.
|
|
94
|
-
rucio_clients-37.
|
|
95
|
-
rucio_clients-37.
|
|
96
|
-
rucio_clients-37.
|
|
97
|
-
rucio_clients-37.
|
|
98
|
-
rucio_clients-37.
|
|
99
|
-
rucio_clients-37.
|
|
100
|
-
rucio_clients-37.
|
|
101
|
-
rucio_clients-37.
|
|
102
|
-
rucio_clients-37.
|
|
103
|
-
rucio_clients-37.
|
|
104
|
-
rucio_clients-37.
|
|
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,,
|
{rucio_clients-37.1.0.post1.data → rucio_clients-37.2.0.data}/data/etc/rse-accounts.cfg.template
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rucio_clients-37.1.0.post1.dist-info → rucio_clients-37.2.0.dist-info}/licenses/AUTHORS.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|