From 4b663a411e29b01c1e9ac9cdf330e862b36d1a7f Mon Sep 17 00:00:00 2001 From: Iman Shafiei Date: Tue, 11 Feb 2025 13:13:52 -0800 Subject: [PATCH] refactor: rename project from EarthDataStore to EarthDaily and update references throughout the codebase --- .gitignore | 2 +- CONTRIBUTING.md | 6 ++--- README.md | 2 +- earthdaily/__init__.py | 25 +++++++++++++++++++ .../_api_requester.py | 4 +-- .../_auth_client.py | 0 {earthdatastore => earthdaily}/_downloader.py | 4 +-- {earthdatastore => earthdaily}/_eds_client.py | 10 ++++---- {earthdatastore => earthdaily}/_eds_config.py | 0 .../_eds_logging.py | 0 {earthdatastore => earthdaily}/_eds_models.py | 0 .../_http_client.py | 0 {earthdatastore => earthdaily}/_uploader.py | 4 +-- {earthdatastore => earthdaily}/_zipper.py | 0 .../agriculture/__init__.py | 0 .../agriculture/accessor/__init__.py | 0 .../accessor/whittaker/__init__.py | 0 .../accessor/whittaker/_pywapor_core.py | 0 .../agriculture/datasets/__init__.py | 0 .../agriculture/earthdatastore/__init__.py | 0 .../earthdatastore/_scales_collections.py | 0 .../earthdatastore/cube_utils/__init__.py | 0 .../earthdatastore/cube_utils/_zonal.py | 0 .../cube_utils/asset_mapper/__init__.py | 0 .../__update_asset_mapper_config_json.py | 0 .../asset_mapper/asset_mapper_config.json | 0 .../cube_utils/geometry_manager.py | 0 .../cube_utils/harmonizer/__init__.py | 0 .../cube_utils/preprocessing.py | 0 .../earthdatastore/mask/__init__.py | 2 +- .../earthdatastore/parallel_search.py | 0 .../agriculture/utils/__init__.py | 0 .../utils/copy_credentials_template.py | 0 {earthdatastore => earthdaily}/exceptions.py | 0 .../platform/__init__.py | 2 +- .../platform/models.py | 0 earthdatastore/__init__.py | 25 ------------------- pyproject.toml | 4 +-- tests/test_auth.py | 6 ++--- tests/test_client.py | 8 +++--- tests/test_config.py | 2 +- tests/test_http.py | 6 ++--- tests/test_uploader.py | 4 +-- tests/test_zipper.py | 2 +- tox.ini | 4 +-- 45 files changed, 61 insertions(+), 61 deletions(-) create mode 100644 earthdaily/__init__.py rename {earthdatastore => earthdaily}/_api_requester.py (94%) rename {earthdatastore => earthdaily}/_auth_client.py (100%) rename {earthdatastore => earthdaily}/_downloader.py (97%) rename {earthdatastore => earthdaily}/_eds_client.py (91%) rename {earthdatastore => earthdaily}/_eds_config.py (100%) rename {earthdatastore => earthdaily}/_eds_logging.py (100%) rename {earthdatastore => earthdaily}/_eds_models.py (100%) rename {earthdatastore => earthdaily}/_http_client.py (100%) rename {earthdatastore => earthdaily}/_uploader.py (97%) rename {earthdatastore => earthdaily}/_zipper.py (100%) rename {earthdatastore => earthdaily}/agriculture/__init__.py (100%) rename {earthdatastore => earthdaily}/agriculture/accessor/__init__.py (100%) rename {earthdatastore => earthdaily}/agriculture/accessor/whittaker/__init__.py (100%) rename {earthdatastore => earthdaily}/agriculture/accessor/whittaker/_pywapor_core.py (100%) rename {earthdatastore => earthdaily}/agriculture/datasets/__init__.py (100%) rename {earthdatastore => earthdaily}/agriculture/earthdatastore/__init__.py (100%) rename {earthdatastore => earthdaily}/agriculture/earthdatastore/_scales_collections.py (100%) rename {earthdatastore => earthdaily}/agriculture/earthdatastore/cube_utils/__init__.py (100%) rename {earthdatastore => earthdaily}/agriculture/earthdatastore/cube_utils/_zonal.py (100%) rename {earthdatastore => earthdaily}/agriculture/earthdatastore/cube_utils/asset_mapper/__init__.py (100%) rename {earthdatastore => earthdaily}/agriculture/earthdatastore/cube_utils/asset_mapper/__update_asset_mapper_config_json.py (100%) rename {earthdatastore => earthdaily}/agriculture/earthdatastore/cube_utils/asset_mapper/asset_mapper_config.json (100%) rename {earthdatastore => earthdaily}/agriculture/earthdatastore/cube_utils/geometry_manager.py (100%) rename {earthdatastore => earthdaily}/agriculture/earthdatastore/cube_utils/harmonizer/__init__.py (100%) rename {earthdatastore => earthdaily}/agriculture/earthdatastore/cube_utils/preprocessing.py (100%) rename {earthdatastore => earthdaily}/agriculture/earthdatastore/mask/__init__.py (98%) rename {earthdatastore => earthdaily}/agriculture/earthdatastore/parallel_search.py (100%) rename {earthdatastore => earthdaily}/agriculture/utils/__init__.py (100%) rename {earthdatastore => earthdaily}/agriculture/utils/copy_credentials_template.py (100%) rename {earthdatastore => earthdaily}/exceptions.py (100%) rename {earthdatastore => earthdaily}/platform/__init__.py (95%) rename {earthdatastore => earthdaily}/platform/models.py (100%) delete mode 100644 earthdatastore/__init__.py diff --git a/.gitignore b/.gitignore index 88d404a8..29a14049 100644 --- a/.gitignore +++ b/.gitignore @@ -161,5 +161,5 @@ cython_debug/ # asv environments .asv -# EarthDataStore +# EarthDaily examples/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 235f4b25..88b0c2e0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,4 @@ -# Contributing to EarthDataStore +# Contributing to EarthDaily Python Client This document will guide you through the steps required to set up your development environment, develop, test, and contribute to the project. @@ -15,7 +15,7 @@ Ensure you have the following installed on your machine: 1. **Clone the repository**: ```bash git clone git@github.com:earthdaily/earthdaily-python-client.git - cd earthdatastore + cd earthdaily-python-client ``` 2. **Install dependencies using Poetry**: @@ -129,4 +129,4 @@ If you encounter any bugs or have feature requests, please create an issue in ou Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. -Thank you for contributing to EarthDataStore Python Client! +Thank you for contributing to EarthDaily Python Client! diff --git a/README.md b/README.md index 1f134f7c..b41ec61f 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ The Earth Data Store (EDS) Client is a Python library for interacting with the E You can install the EDS Client using pip: ```bash -pip install earthdatastore +pip install earthdaily ``` ## Environment Variables diff --git a/earthdaily/__init__.py b/earthdaily/__init__.py new file mode 100644 index 00000000..be7f2cd1 --- /dev/null +++ b/earthdaily/__init__.py @@ -0,0 +1,25 @@ +# Authentication-related imports +from earthdaily._api_requester import APIRequester +from earthdaily._auth_client import Authentication, CognitoAuth + +# Client and config-related imports +from earthdaily._eds_client import EDSClient +from earthdaily._eds_config import EDSConfig + +# HTTP-related imports +from earthdaily._http_client import HTTPClient, HTTPRequest, HTTPResponse + +# Platform-related imports +from earthdaily.platform import PlatformService + +__all__ = [ + "Authentication", + "CognitoAuth", + "APIRequester", + "HTTPClient", + "HTTPRequest", + "HTTPResponse", + "EDSClient", + "EDSConfig", + "PlatformService", +] diff --git a/earthdatastore/_api_requester.py b/earthdaily/_api_requester.py similarity index 94% rename from earthdatastore/_api_requester.py rename to earthdaily/_api_requester.py index 30cf396f..0332342a 100644 --- a/earthdatastore/_api_requester.py +++ b/earthdaily/_api_requester.py @@ -1,5 +1,5 @@ -from earthdatastore._auth_client import Authentication -from earthdatastore._http_client import HTTPClient, HTTPRequest, HTTPResponse +from earthdaily._auth_client import Authentication +from earthdaily._http_client import HTTPClient, HTTPRequest, HTTPResponse class APIRequester: diff --git a/earthdatastore/_auth_client.py b/earthdaily/_auth_client.py similarity index 100% rename from earthdatastore/_auth_client.py rename to earthdaily/_auth_client.py diff --git a/earthdatastore/_downloader.py b/earthdaily/_downloader.py similarity index 97% rename from earthdatastore/_downloader.py rename to earthdaily/_downloader.py index 120f66a6..7add4df0 100644 --- a/earthdatastore/_downloader.py +++ b/earthdaily/_downloader.py @@ -7,8 +7,8 @@ from requests.exceptions import ConnectionError, HTTPError, RequestException, Timeout from tqdm import tqdm -from earthdatastore._eds_logging import LoggerConfig -from earthdatastore.exceptions import UnsupportedAssetException +from earthdaily._eds_logging import LoggerConfig +from earthdaily.exceptions import UnsupportedAssetException logger = LoggerConfig(logger_name=__name__).get_logger() diff --git a/earthdatastore/_eds_client.py b/earthdaily/_eds_client.py similarity index 91% rename from earthdatastore/_eds_client.py rename to earthdaily/_eds_client.py index f97e3d6e..8a48798f 100644 --- a/earthdatastore/_eds_client.py +++ b/earthdaily/_eds_client.py @@ -1,8 +1,8 @@ -from earthdatastore._api_requester import APIRequester -from earthdatastore._auth_client import Authentication, CognitoAuth -from earthdatastore._eds_config import EDSConfig -from earthdatastore.agriculture import EarthDataStore -from earthdatastore.platform import PlatformService +from earthdaily._api_requester import APIRequester +from earthdaily._auth_client import Authentication, CognitoAuth +from earthdaily._eds_config import EDSConfig +from earthdaily.agriculture import EarthDataStore +from earthdaily.platform import PlatformService class EDSClient: diff --git a/earthdatastore/_eds_config.py b/earthdaily/_eds_config.py similarity index 100% rename from earthdatastore/_eds_config.py rename to earthdaily/_eds_config.py diff --git a/earthdatastore/_eds_logging.py b/earthdaily/_eds_logging.py similarity index 100% rename from earthdatastore/_eds_logging.py rename to earthdaily/_eds_logging.py diff --git a/earthdatastore/_eds_models.py b/earthdaily/_eds_models.py similarity index 100% rename from earthdatastore/_eds_models.py rename to earthdaily/_eds_models.py diff --git a/earthdatastore/_http_client.py b/earthdaily/_http_client.py similarity index 100% rename from earthdatastore/_http_client.py rename to earthdaily/_http_client.py diff --git a/earthdatastore/_uploader.py b/earthdaily/_uploader.py similarity index 97% rename from earthdatastore/_uploader.py rename to earthdaily/_uploader.py index a7c2f211..93773a5f 100644 --- a/earthdatastore/_uploader.py +++ b/earthdaily/_uploader.py @@ -7,8 +7,8 @@ from requests.exceptions import RequestException from tqdm import tqdm -from earthdatastore._eds_logging import LoggerConfig -from earthdatastore.exceptions import UnsupportedAssetException +from earthdaily._eds_logging import LoggerConfig +from earthdaily.exceptions import UnsupportedAssetException logger = LoggerConfig(logger_name=__name__).get_logger() diff --git a/earthdatastore/_zipper.py b/earthdaily/_zipper.py similarity index 100% rename from earthdatastore/_zipper.py rename to earthdaily/_zipper.py diff --git a/earthdatastore/agriculture/__init__.py b/earthdaily/agriculture/__init__.py similarity index 100% rename from earthdatastore/agriculture/__init__.py rename to earthdaily/agriculture/__init__.py diff --git a/earthdatastore/agriculture/accessor/__init__.py b/earthdaily/agriculture/accessor/__init__.py similarity index 100% rename from earthdatastore/agriculture/accessor/__init__.py rename to earthdaily/agriculture/accessor/__init__.py diff --git a/earthdatastore/agriculture/accessor/whittaker/__init__.py b/earthdaily/agriculture/accessor/whittaker/__init__.py similarity index 100% rename from earthdatastore/agriculture/accessor/whittaker/__init__.py rename to earthdaily/agriculture/accessor/whittaker/__init__.py diff --git a/earthdatastore/agriculture/accessor/whittaker/_pywapor_core.py b/earthdaily/agriculture/accessor/whittaker/_pywapor_core.py similarity index 100% rename from earthdatastore/agriculture/accessor/whittaker/_pywapor_core.py rename to earthdaily/agriculture/accessor/whittaker/_pywapor_core.py diff --git a/earthdatastore/agriculture/datasets/__init__.py b/earthdaily/agriculture/datasets/__init__.py similarity index 100% rename from earthdatastore/agriculture/datasets/__init__.py rename to earthdaily/agriculture/datasets/__init__.py diff --git a/earthdatastore/agriculture/earthdatastore/__init__.py b/earthdaily/agriculture/earthdatastore/__init__.py similarity index 100% rename from earthdatastore/agriculture/earthdatastore/__init__.py rename to earthdaily/agriculture/earthdatastore/__init__.py diff --git a/earthdatastore/agriculture/earthdatastore/_scales_collections.py b/earthdaily/agriculture/earthdatastore/_scales_collections.py similarity index 100% rename from earthdatastore/agriculture/earthdatastore/_scales_collections.py rename to earthdaily/agriculture/earthdatastore/_scales_collections.py diff --git a/earthdatastore/agriculture/earthdatastore/cube_utils/__init__.py b/earthdaily/agriculture/earthdatastore/cube_utils/__init__.py similarity index 100% rename from earthdatastore/agriculture/earthdatastore/cube_utils/__init__.py rename to earthdaily/agriculture/earthdatastore/cube_utils/__init__.py diff --git a/earthdatastore/agriculture/earthdatastore/cube_utils/_zonal.py b/earthdaily/agriculture/earthdatastore/cube_utils/_zonal.py similarity index 100% rename from earthdatastore/agriculture/earthdatastore/cube_utils/_zonal.py rename to earthdaily/agriculture/earthdatastore/cube_utils/_zonal.py diff --git a/earthdatastore/agriculture/earthdatastore/cube_utils/asset_mapper/__init__.py b/earthdaily/agriculture/earthdatastore/cube_utils/asset_mapper/__init__.py similarity index 100% rename from earthdatastore/agriculture/earthdatastore/cube_utils/asset_mapper/__init__.py rename to earthdaily/agriculture/earthdatastore/cube_utils/asset_mapper/__init__.py diff --git a/earthdatastore/agriculture/earthdatastore/cube_utils/asset_mapper/__update_asset_mapper_config_json.py b/earthdaily/agriculture/earthdatastore/cube_utils/asset_mapper/__update_asset_mapper_config_json.py similarity index 100% rename from earthdatastore/agriculture/earthdatastore/cube_utils/asset_mapper/__update_asset_mapper_config_json.py rename to earthdaily/agriculture/earthdatastore/cube_utils/asset_mapper/__update_asset_mapper_config_json.py diff --git a/earthdatastore/agriculture/earthdatastore/cube_utils/asset_mapper/asset_mapper_config.json b/earthdaily/agriculture/earthdatastore/cube_utils/asset_mapper/asset_mapper_config.json similarity index 100% rename from earthdatastore/agriculture/earthdatastore/cube_utils/asset_mapper/asset_mapper_config.json rename to earthdaily/agriculture/earthdatastore/cube_utils/asset_mapper/asset_mapper_config.json diff --git a/earthdatastore/agriculture/earthdatastore/cube_utils/geometry_manager.py b/earthdaily/agriculture/earthdatastore/cube_utils/geometry_manager.py similarity index 100% rename from earthdatastore/agriculture/earthdatastore/cube_utils/geometry_manager.py rename to earthdaily/agriculture/earthdatastore/cube_utils/geometry_manager.py diff --git a/earthdatastore/agriculture/earthdatastore/cube_utils/harmonizer/__init__.py b/earthdaily/agriculture/earthdatastore/cube_utils/harmonizer/__init__.py similarity index 100% rename from earthdatastore/agriculture/earthdatastore/cube_utils/harmonizer/__init__.py rename to earthdaily/agriculture/earthdatastore/cube_utils/harmonizer/__init__.py diff --git a/earthdatastore/agriculture/earthdatastore/cube_utils/preprocessing.py b/earthdaily/agriculture/earthdatastore/cube_utils/preprocessing.py similarity index 100% rename from earthdatastore/agriculture/earthdatastore/cube_utils/preprocessing.py rename to earthdaily/agriculture/earthdatastore/cube_utils/preprocessing.py diff --git a/earthdatastore/agriculture/earthdatastore/mask/__init__.py b/earthdaily/agriculture/earthdatastore/mask/__init__.py similarity index 98% rename from earthdatastore/agriculture/earthdatastore/mask/__init__.py rename to earthdaily/agriculture/earthdatastore/mask/__init__.py index 244f2890..46e48513 100644 --- a/earthdatastore/agriculture/earthdatastore/mask/__init__.py +++ b/earthdaily/agriculture/earthdatastore/mask/__init__.py @@ -5,7 +5,7 @@ import xarray as xr from rasterio.features import geometry_mask -from earthdatastore.agriculture.earthdatastore.cube_utils import _bbox_to_intersects +from earthdaily.agriculture.earthdatastore.cube_utils import _bbox_to_intersects dask.config.set(**{"array.slicing.split_large_chunks": True}) diff --git a/earthdatastore/agriculture/earthdatastore/parallel_search.py b/earthdaily/agriculture/earthdatastore/parallel_search.py similarity index 100% rename from earthdatastore/agriculture/earthdatastore/parallel_search.py rename to earthdaily/agriculture/earthdatastore/parallel_search.py diff --git a/earthdatastore/agriculture/utils/__init__.py b/earthdaily/agriculture/utils/__init__.py similarity index 100% rename from earthdatastore/agriculture/utils/__init__.py rename to earthdaily/agriculture/utils/__init__.py diff --git a/earthdatastore/agriculture/utils/copy_credentials_template.py b/earthdaily/agriculture/utils/copy_credentials_template.py similarity index 100% rename from earthdatastore/agriculture/utils/copy_credentials_template.py rename to earthdaily/agriculture/utils/copy_credentials_template.py diff --git a/earthdatastore/exceptions.py b/earthdaily/exceptions.py similarity index 100% rename from earthdatastore/exceptions.py rename to earthdaily/exceptions.py diff --git a/earthdatastore/platform/__init__.py b/earthdaily/platform/__init__.py similarity index 95% rename from earthdatastore/platform/__init__.py rename to earthdaily/platform/__init__.py index 6b1e6067..a7f38e57 100644 --- a/earthdatastore/platform/__init__.py +++ b/earthdaily/platform/__init__.py @@ -1,7 +1,7 @@ from pystac_client import Client from pystac_client.stac_api_io import StacApiIO -from earthdatastore._api_requester import APIRequester +from earthdaily._api_requester import APIRequester class PlatformService: diff --git a/earthdatastore/platform/models.py b/earthdaily/platform/models.py similarity index 100% rename from earthdatastore/platform/models.py rename to earthdaily/platform/models.py diff --git a/earthdatastore/__init__.py b/earthdatastore/__init__.py deleted file mode 100644 index b2cea87a..00000000 --- a/earthdatastore/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# Authentication-related imports -from earthdatastore._api_requester import APIRequester -from earthdatastore._auth_client import Authentication, CognitoAuth - -# Client and config-related imports -from earthdatastore._eds_client import EDSClient -from earthdatastore._eds_config import EDSConfig - -# HTTP-related imports -from earthdatastore._http_client import HTTPClient, HTTPRequest, HTTPResponse - -# Platform-related imports -from earthdatastore.platform import PlatformService - -__all__ = [ - "Authentication", - "CognitoAuth", - "APIRequester", - "HTTPClient", - "HTTPRequest", - "HTTPResponse", - "EDSClient", - "EDSConfig", - "PlatformService", -] diff --git a/pyproject.toml b/pyproject.toml index aaad579f..37be580f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.poetry] -name = "earthdatastore" +name = "earthdaily" version = "1.0.0b1" description = "EarthDaily Python Client" authors = ["EarthDaily "] @@ -53,5 +53,5 @@ lint.ignore = [] line-length = 120 [tool.pytest.ini_options] -addopts = "--cov=earthdatastore --cov-report=term-missing" +addopts = "--cov=earthdaily --cov-report=term-missing" testpaths = ["tests"] diff --git a/tests/test_auth.py b/tests/test_auth.py index bb0ef046..51be1b52 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -1,14 +1,14 @@ import unittest from unittest.mock import Mock, patch -from earthdatastore._auth_client import CognitoAuth +from earthdaily._auth_client import CognitoAuth class TestCognitoAuth(unittest.TestCase): def setUp(self): self.auth = CognitoAuth("client_id", "client_secret", "token_url") - @patch("earthdatastore._auth_client.requests.Session.post") + @patch("earthdaily._auth_client.requests.Session.post") def test_authenticate_success(self, mock_post): # Prepare mock response mock_response = Mock() @@ -21,7 +21,7 @@ def test_authenticate_success(self, mock_post): self.assertEqual(token, "test_token") mock_post.assert_called_once() - @patch("earthdatastore._auth_client.requests.Session.post") + @patch("earthdaily._auth_client.requests.Session.post") def test_authenticate_failure(self, mock_post): # Prepare mock response mock_response = Mock() diff --git a/tests/test_client.py b/tests/test_client.py index d1c649d5..4678f566 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -1,13 +1,13 @@ import unittest from unittest.mock import patch -from earthdatastore._auth_client import CognitoAuth -from earthdatastore._eds_client import EDSClient -from earthdatastore._eds_config import EDSConfig +from earthdaily._auth_client import CognitoAuth +from earthdaily._eds_client import EDSClient +from earthdaily._eds_config import EDSConfig class TestEDSClient(unittest.TestCase): - @patch("earthdatastore._auth_client.CognitoAuth.get_token", return_value="test_token") + @patch("earthdaily._auth_client.CognitoAuth.get_token", return_value="test_token") def test_create_auth_cognito(self, mock_auth): config = EDSConfig( auth_method="cognito", diff --git a/tests/test_config.py b/tests/test_config.py index 0949aa9b..3a5361a7 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,7 +1,7 @@ import os import unittest -from earthdatastore import EDSConfig +from earthdaily import EDSConfig class TestEDSConfig(unittest.TestCase): diff --git a/tests/test_http.py b/tests/test_http.py index cee683d7..57cd3d22 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -1,14 +1,14 @@ import unittest from unittest.mock import Mock, patch -from earthdatastore._http_client import HTTPClient, HTTPRequest +from earthdaily._http_client import HTTPClient, HTTPRequest class TestHTTPClient(unittest.TestCase): def setUp(self): self.client = HTTPClient() - @patch("earthdatastore._http_client.requests.request") + @patch("earthdaily._http_client.requests.request") def test_send_success(self, mock_request): # Prepare mock response mock_response = Mock() @@ -32,7 +32,7 @@ def test_send_success(self, mock_request): self.assertEqual(response.body, {"result": "success"}) self.assertEqual(response.headers, {"Content-Type": "application/json"}) - @patch("earthdatastore._http_client.requests.request") + @patch("earthdaily._http_client.requests.request") def test_send_failure(self, mock_request): # Prepare mock response mock_response = Mock() diff --git a/tests/test_uploader.py b/tests/test_uploader.py index 07f96cd5..c542cd13 100644 --- a/tests/test_uploader.py +++ b/tests/test_uploader.py @@ -5,8 +5,8 @@ import requests -from earthdatastore._uploader import HttpUploader -from earthdatastore.exceptions import UnsupportedAssetException +from earthdaily._uploader import HttpUploader +from earthdaily.exceptions import UnsupportedAssetException class TestHttpUploader(unittest.TestCase): diff --git a/tests/test_zipper.py b/tests/test_zipper.py index 4c5af484..f4b73cc3 100644 --- a/tests/test_zipper.py +++ b/tests/test_zipper.py @@ -4,7 +4,7 @@ import zipfile from pathlib import Path -from earthdatastore._zipper import Zipper +from earthdaily._zipper import Zipper class TestZipper(unittest.TestCase): diff --git a/tox.ini b/tox.ini index dccc7fc5..aead50f1 100644 --- a/tox.ini +++ b/tox.ini @@ -23,14 +23,14 @@ commands = ruff format . --diff [testenv:mypy] description = Run mypy for type checking deps = mypy -commands = mypy --install-types --non-interactive earthdatastore +commands = mypy --install-types --non-interactive earthdaily [testenv:coverage] deps = pytest pytest-cov commands = - pytest --cov=earthdatastore --cov-report=xml + pytest --cov=earthdaily --cov-report=xml [gh-actions] python =