-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #892 from lsst/tickets/DM-41043
DM-41043: internal package reorganization
- Loading branch information
Showing
158 changed files
with
704 additions
and
657 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Reorganize internal subpackages, rename modules, and adjust symbol lifting. | ||
|
||
This includes moving some symbols that we had always intended to be private (or | ||
public only to other middleware packages) that were not clearly marked as such | ||
(e.g. with leading underscores) before. |
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,20 +1,88 @@ | ||
# This file is part of daf_butler. | ||
# | ||
# Developed for the LSST Data Management System. | ||
# This product includes software developed by the LSST Project | ||
# (http://www.lsst.org). | ||
# See the COPYRIGHT file at the top-level directory of this distribution | ||
# for details of code ownership. | ||
# | ||
# This software is dual licensed under the GNU General Public License and also | ||
# under a 3-clause BSD license. Recipients may choose which of these licenses | ||
# to use; please see the files gpl-3.0.txt and/or bsd_license.txt, | ||
# respectively. If you choose the GPL option then the following text applies | ||
# (but note that there is still no warranty even if you opt for BSD instead): | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
""" | ||
Data Access Butler | ||
""" | ||
|
||
# Some components are not auto-imported since they can have additional runtime | ||
# dependencies. | ||
|
||
from . import logging # most symbols are helpers only | ||
from . import progress # most symbols are only used by handler implementors | ||
from . import ddl, time_utils | ||
from ._butler import * | ||
from ._butlerConfig import * | ||
from ._butlerRepoIndex import * | ||
from ._butler_config import * | ||
from ._butler_repo_index import * | ||
from ._column_categorization import * | ||
from ._column_tags import * | ||
from ._column_type_info import * | ||
from ._config import * | ||
from ._config_support import LookupKey | ||
from ._dataset_association import * | ||
from ._dataset_existence import * | ||
from ._dataset_ref import * | ||
from ._dataset_type import * | ||
from ._deferredDatasetHandle import * | ||
from ._exceptions import * | ||
from ._file_dataset import * | ||
from ._file_descriptor import * | ||
from ._formatter import * | ||
|
||
# Do not import 'instrument' or 'json' at all by default. | ||
from ._limited_butler import * | ||
from ._location import * | ||
from ._named import * | ||
from ._quantum import * | ||
from ._quantum_backed import * | ||
from .core import * | ||
from ._storage_class import * | ||
from ._storage_class_delegate import * | ||
from ._timespan import * | ||
from ._topology import * | ||
|
||
# Only lift 'Datastore' itself to this scope. | ||
from .datastore import Datastore | ||
from .dimensions import * | ||
|
||
# Only export 'ButlerLogRecords' from 'logging', import the module as-is for | ||
# other symbols. ButlerLogRecords is the fundamental type stored in datastores. | ||
from .logging import ButlerLogRecords | ||
|
||
# Do not import or lift symbols from mapping_factory and persistence_content, | ||
# as those are internal. | ||
# Only lift 'Progress' from 'progess'; the module is imported as-is above | ||
from .progress import Progress | ||
|
||
# Do not import or lift symbols from 'server' or 'server_models'. | ||
# Import the registry subpackage directly for other symbols. | ||
from .registry import CollectionSearch, CollectionType, Registry, RegistryConfig | ||
from .transfers import RepoExportContext, YamlRepoExportBackend, YamlRepoImportBackend | ||
from .version import * | ||
|
||
# Do not import or lift symbols from 'repo_relocation'. | ||
|
||
# Do not export the utility routines from utils. |
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
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
Oops, something went wrong.