Skip to content

Commit

Permalink
Import algorithms as part of get_algorithms to avoid circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
rdimaio committed Nov 12, 2024
1 parent 404b4f2 commit d891ccb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "belleii_rucio_policy_package"
version = "0.0.4"
version = "0.0.5"
authors = [
{ name="Belle II", email="[email protected]" },
]
Expand Down
7 changes: 3 additions & 4 deletions src/belleii_rucio_policy_package/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from belleii_rucio_policy_package.non_deterministic_pfn import BelleIINonDeterministicPFNAlgorithm
from belleii_rucio_policy_package.scope import BelleIIScopeExtractionAlgorithm
from belleii_rucio_policy_package.lfn2pfn import BelleIIRSEDeterministicTranslation

SUPPORTED_VERSION = ["35"] # Only use with Rucio >=35.1.0 - pending https://github.com/rucio/rucio/issues/7082

def get_algorithms():
from belleii_rucio_policy_package.non_deterministic_pfn import BelleIINonDeterministicPFNAlgorithm
from belleii_rucio_policy_package.scope import BelleIIScopeExtractionAlgorithm
from belleii_rucio_policy_package.lfn2pfn import BelleIIRSEDeterministicTranslation
return {
'non_deterministic_pfn': {
'belleii_non_deterministic_pfn': BelleIINonDeterministicPFNAlgorithm.construct_non_deterministic_pfn_belleii
Expand Down

0 comments on commit d891ccb

Please sign in to comment.