-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define separate entrypoints for plugins
- Loading branch information
Showing
4 changed files
with
33 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
from .version import version as __version__ # noqa | ||
|
||
|
||
def setup(): | ||
from glue_astronomy import translators # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
def pytest_configure(config): | ||
from glue_astronomy import setup | ||
setup() | ||
from glue_astronomy.translators import setup_ccddata, setup_regions, setup_spectral_cube, setup_spectrum1d | ||
|
||
setup_ccddata() | ||
setup_regions() | ||
setup_spectral_cube() | ||
setup_spectrum1d() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
from . import ccddata # noqa | ||
from . import regions # noqa | ||
from . import spectral_cube # noqa | ||
from . import spectrum1d # noqa | ||
from . import trace # noqa | ||
def setup_ccddata(): | ||
from . import ccddata # noqa | ||
|
||
def setup_regions(): | ||
from . import regions # noqa | ||
|
||
def setup_spectral_cube(): | ||
from . import spectral_cube # noqa | ||
|
||
def setup_spectrum1d(): | ||
from . import spectrum1d # noqa | ||
|
||
def setup_trace(): | ||
from . import trace # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters