-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
src/stpipe/extern
as configobj
now comes from astropy
- Loading branch information
1 parent
8ca1565
commit 2df22bb
Showing
6 changed files
with
19 additions
and
3,958 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
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,8 +0,0 @@ | ||
""" | ||
This package contains python package(s) that are bundled with jwst but are | ||
external to jwst, and hence are developed in a separate source tree. | ||
Currently the bundled external dependencies are: | ||
.. _ConfigObj: https://github.com/DiffSK/configobj | ||
""" | ||
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import inspect | ||
import sys | ||
import warnings | ||
|
||
from astropy.extern import configobj | ||
|
||
# Add submodules to system modules so they are available under the same path | ||
for mod in inspect.getmembers(configobj, inspect.ismodule): | ||
# add as a local variable | ||
locals()[mod[0]] = mod[1] | ||
# Add the submodule to the system modules so it can be imported | ||
sys.modules[f"stpipe.extern.configobj.{mod[0]}"] = mod[1] | ||
|
||
|
||
warnings.warn( | ||
"stpipe.extern.configobj is deprecated in favor of astropy.extern.configobj, " | ||
"please use that instead.", | ||
DeprecationWarning, | ||
) |
Empty file.
Oops, something went wrong.