Skip to content

provider index: removed import from + refactored a few parts#15570

Merged
tldahlgren merged 3 commits intospack:developfrom
alalazo:refactor/provider_index
Mar 25, 2020
Merged

provider index: removed import from + refactored a few parts#15570
tldahlgren merged 3 commits intospack:developfrom
alalazo:refactor/provider_index

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented Mar 19, 2020

The refactoring is instrumental to a further subclassing of _IndexBase to implement user defined bindings of provider spec for #15443

@adamjstewart
Copy link
Copy Markdown
Member

Why are we changing from from X import Y? Is there a style guide somewhere or a reason to avoid that syntax? Just want to be consistent.

@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented Mar 20, 2020

@adamjstewart There are two main reasons from my side:

  1. For large files it gives a sense to the reader that something was imported from another location without having to look into all the import statements
  2. It helps avoiding issues with circular imports

@tldahlgren tldahlgren self-requested a review March 24, 2020 17:49
alalazo added 3 commits March 25, 2020 13:23
The refactoring is instrumental to a further subclassing
of _IndexBase to implement user defined bindings of
provider specs.
@alalazo alalazo force-pushed the refactor/provider_index branch from d15bf9b to a7b6285 Compare March 25, 2020 13:36
@tldahlgren tldahlgren self-requested a review March 25, 2020 16:34
Copy link
Copy Markdown
Contributor

@tldahlgren tldahlgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes. Confirmed the tests work fine for me locally.

@tldahlgren tldahlgren merged commit b42a96d into spack:develop Mar 25, 2020
@alalazo alalazo deleted the refactor/provider_index branch March 25, 2020 16:48
@tldahlgren
Copy link
Copy Markdown
Contributor

Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants