From 561d753d10c00af57f12479aaf4b18d6ff81dea2 Mon Sep 17 00:00:00 2001 From: Anderson Banihirwe <13301940+andersy005@users.noreply.github.com> Date: Wed, 8 May 2024 18:39:10 -0700 Subject: [PATCH] Remove imports from root `__init__.py` (#37) --- .github/workflows/catalog-ci.yaml | 2 +- ci/environment-catalog.yaml | 19 +++++++++++++++++++ leap_data_management_utils/__init__.py | 11 +---------- pyproject.toml | 5 ----- 4 files changed, 21 insertions(+), 16 deletions(-) create mode 100644 ci/environment-catalog.yaml diff --git a/.github/workflows/catalog-ci.yaml b/.github/workflows/catalog-ci.yaml index fe99703..5d099a4 100644 --- a/.github/workflows/catalog-ci.yaml +++ b/.github/workflows/catalog-ci.yaml @@ -19,7 +19,7 @@ jobs: - name: set up conda environment uses: mamba-org/setup-micromamba@v1 with: - environment-file: ci/environment.yaml + environment-file: ci/environment-catalog.yaml init-shell: >- bash cache-environment: true diff --git a/ci/environment-catalog.yaml b/ci/environment-catalog.yaml new file mode 100644 index 0000000..daa3dde --- /dev/null +++ b/ci/environment-catalog.yaml @@ -0,0 +1,19 @@ +name: leap-data-management +channels: + - conda-forge + - nodefaults +dependencies: + - python=3.10 + - aiohttp + - cf_xarray + - cftime + - dask + - fsspec >= 2023.2 + - gcsfs + - pip + - pydantic-core + - pydantic>=2 + - pyyaml + - s3fs + - universal_pathlib + - zarr diff --git a/leap_data_management_utils/__init__.py b/leap_data_management_utils/__init__.py index d87c9dc..fb08d4a 100644 --- a/leap_data_management_utils/__init__.py +++ b/leap_data_management_utils/__init__.py @@ -1,13 +1,4 @@ -from .cmip_transforms import CMIPBQInterface, IIDEntry, LogCMIPToBigQuery -from .data_management_transforms import BQInterface, RegisterDatasetToCatalog - -__all__ = ( - 'BQInterface', - 'RegisterDatasetToCatalog', - 'IIDEntry', - 'CMIPBQInterface', - 'LogCMIPToBigQuery', -) +__all__ = () try: from ._version import __version__ diff --git a/pyproject.toml b/pyproject.toml index c43ad03..b9af63c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,22 +42,17 @@ pangeo-forge=[ "dynamic-chunks", "dask" ] - catalog = [ "pydantic>=2", "universal-pathlib", "pydantic-core", "cf_xarray", ] - - - complete = ["leap-data-management-utils[pangeo-forge,catalog]"] test = [ "pytest", "leap-data-management-utils[complete]", ] - dev = [ "leap-data-management-utils[test]", "pre-commit",