rucio-clients 37.1.0.post1__py3-none-any.whl → 37.3.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/plugins.py CHANGED
@@ -156,7 +156,7 @@ class PolicyPackageAlgorithms:
156
156
  # import from utils here to avoid circular import
157
157
 
158
158
  env_name = 'RUCIO_POLICY_PACKAGE' + ('' if not vo else '_' + vo.upper())
159
- package = getattr(os.environ, env_name, "")
159
+ package = os.getenv(env_name, "")
160
160
  if not package:
161
161
  package = str(config.config_get('policy', 'package' + ('' if not vo else '-' + vo)))
162
162
 
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.post1',
7
+ 'version': '37.3.0',
8
8
  'branch_nick': 'release-37',
9
- 'revision_id': '420fea7843ab9f55e21b71eb93709f7621db8873',
10
- 'revno': 13642
9
+ 'revision_id': '874ee3e820d3ff64ab941ccfe8a02906b5540066',
10
+ 'revno': 13716
11
11
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rucio-clients
3
- Version: 37.1.0.post1
3
+ Version: 37.3.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=o7fw2A7VRmOW4SKfkbgfr8YSZIjL82ypU098dXZqrqQ,250
3
+ rucio/vcsversion.py,sha256=a8AHqmVeDldjkD1j62lMPxaQ5yOm6ObzSAx3KaISmDQ,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
@@ -58,13 +58,13 @@ rucio/common/exception.py,sha256=U4Jnpv8QTkNmMG2scV4bYNzOqLsMnfrmiGeSH-P_B_g,345
58
58
  rucio/common/extra.py,sha256=IE01275vTJobyNiYbptU9NmsUl2Ga_92FSoOODV8Qfk,1054
59
59
  rucio/common/logging.py,sha256=_G1QDFpPLghz2VXOjdhC7j-TtZBxmPJsyJtztW7mf68,15874
60
60
  rucio/common/pcache.py,sha256=pgIfBJxXYPWlD70l8g3-CVTizk_UfzaZxE27NhTvq6w,47001
61
- rucio/common/plugins.py,sha256=O6Snuhm2Tf2lyTA3cCBzSJB27RX1MY_r9mEAccrRCj4,7283
61
+ rucio/common/plugins.py,sha256=xp9Fzy9mN6JjZcE2flF-OpzC3Husj57MYk7clLlTDNY,7273
62
62
  rucio/common/policy.py,sha256=2ByqoQQp4jpHdnnpq4-Ie7GwHslP8S9Zfu8qOqgzukU,3490
63
63
  rucio/common/stomp_utils.py,sha256=3GTiRTJ0roe5OX_wgkVwOJYAIhGgYbhiROHc2M8LQT8,5414
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.post1.data/data/requirements.client.txt,sha256=uGqQvHApEbAsTgkHDqGFTmPmKtd2vL7o4rv4LO8ikjM,1790
93
- rucio_clients-37.1.0.post1.data/data/etc/rse-accounts.cfg.template,sha256=IfDnXVxBPUrMnTMbJnd3P7eYHgY1C4Kfz7xKskJs-FI,543
94
- rucio_clients-37.1.0.post1.data/data/etc/rucio.cfg.atlas.client.template,sha256=aHP1oX9m5yA8xVTTT2Hz6AyOYu92-Bcd5LF0i3AZRQw,1350
95
- rucio_clients-37.1.0.post1.data/data/etc/rucio.cfg.template,sha256=iqtbivJDlngApmuJDiOLDQPRlxDRfljpLmiT_tzlUrM,8081
96
- rucio_clients-37.1.0.post1.data/data/rucio_client/merge_rucio_configs.py,sha256=u62K1EcCGydM5nZA30zhlqWo4EX5N87b_MDkx5YfzVI,6163
97
- rucio_clients-37.1.0.post1.data/scripts/rucio,sha256=xQRL_0mwut48KxOgWZexsSx9jfnaZHqSTAo7OnCHAgA,5081
98
- rucio_clients-37.1.0.post1.data/scripts/rucio-admin,sha256=AhPO6-fAPviHObhB_Yi7GJXKfjpaH6m0RqxwctBeFlE,4229
99
- rucio_clients-37.1.0.post1.dist-info/licenses/AUTHORS.rst,sha256=c4MEJjLcFZ5euNtPA7jGFL26javbFKpWTvxBoIs_l6w,4726
100
- rucio_clients-37.1.0.post1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
101
- rucio_clients-37.1.0.post1.dist-info/METADATA,sha256=nvesaUQJZ3rjJzdn8vDyWA_0qoSMxlYFH7IExpvqwVc,1780
102
- rucio_clients-37.1.0.post1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
103
- rucio_clients-37.1.0.post1.dist-info/top_level.txt,sha256=lJM8plwW0ePPICkwFnpYzfdqHnSv6JZr1OD4JEysPgM,6
104
- rucio_clients-37.1.0.post1.dist-info/RECORD,,
92
+ rucio_clients-37.3.0.data/data/requirements.client.txt,sha256=uGqQvHApEbAsTgkHDqGFTmPmKtd2vL7o4rv4LO8ikjM,1790
93
+ rucio_clients-37.3.0.data/data/etc/rse-accounts.cfg.template,sha256=IfDnXVxBPUrMnTMbJnd3P7eYHgY1C4Kfz7xKskJs-FI,543
94
+ rucio_clients-37.3.0.data/data/etc/rucio.cfg.atlas.client.template,sha256=aHP1oX9m5yA8xVTTT2Hz6AyOYu92-Bcd5LF0i3AZRQw,1350
95
+ rucio_clients-37.3.0.data/data/etc/rucio.cfg.template,sha256=iqtbivJDlngApmuJDiOLDQPRlxDRfljpLmiT_tzlUrM,8081
96
+ rucio_clients-37.3.0.data/data/rucio_client/merge_rucio_configs.py,sha256=u62K1EcCGydM5nZA30zhlqWo4EX5N87b_MDkx5YfzVI,6163
97
+ rucio_clients-37.3.0.data/scripts/rucio,sha256=xQRL_0mwut48KxOgWZexsSx9jfnaZHqSTAo7OnCHAgA,5081
98
+ rucio_clients-37.3.0.data/scripts/rucio-admin,sha256=AhPO6-fAPviHObhB_Yi7GJXKfjpaH6m0RqxwctBeFlE,4229
99
+ rucio_clients-37.3.0.dist-info/licenses/AUTHORS.rst,sha256=c4MEJjLcFZ5euNtPA7jGFL26javbFKpWTvxBoIs_l6w,4726
100
+ rucio_clients-37.3.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
101
+ rucio_clients-37.3.0.dist-info/METADATA,sha256=qcAcloT6MnbtIR2sZ01Ho5hXES-N9MebDDBHjnulLC4,1747
102
+ rucio_clients-37.3.0.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
103
+ rucio_clients-37.3.0.dist-info/top_level.txt,sha256=lJM8plwW0ePPICkwFnpYzfdqHnSv6JZr1OD4JEysPgM,6
104
+ rucio_clients-37.3.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (80.4.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5