Skip to content

20 repo structure #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
autodoc_typehints = "none"

# autoapi configuration
autoapi_dirs = ["../earthkit/transforms"]
autoapi_dirs = ["../src/earthkit/transforms"]
autoapi_ignore = ["*/version.py", "*/aggregate/general.py"]
autoapi_options = [
"members",
Expand Down
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = ["setuptools>=64", "setuptools_scm>=8"]

[project]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
Expand Down Expand Up @@ -68,11 +68,12 @@ select = [
"D"
]

[tool.setuptools]
packages = ["earthkit.transforms"]
[tool.setuptools.packages.find]
include = ["earthkit.transforms"]
where = ["src/"]

[tool.setuptools_scm]
write_to = "earthkit/transforms/version.py"
write_to = "src/earthkit/transforms/version.py"
write_to_template = '''
# Do not change! Do not track in version control!
__version__ = "{version}"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import typing as T

import xarray as xr

from earthkit.transforms import tools
from earthkit.transforms.aggregate.general import reduce as _reduce
from earthkit.transforms.aggregate.general import resample
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import numpy as np
import xarray as xr

from earthkit.transforms import tools


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import numpy as np
import pandas as pd
import xarray as xr

from earthkit.transforms.tools import ensure_list, get_how, get_spatial_info, standard_weights

logger = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import numpy as np
import pandas as pd
import xarray as xr

from earthkit.transforms import tools
from earthkit.transforms.aggregate.general import how_label_rename, resample
from earthkit.transforms.aggregate.general import reduce as _reduce
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion tests/test_10_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import pandas as pd
import pytest
import xarray as xr

from earthkit.transforms.tools import (
get_dim_key,
get_how,
Expand Down
1 change: 0 additions & 1 deletion tests/test_20_general.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import numpy as np
import pytest
import xarray as xr

from earthkit.transforms.aggregate.general import (
_reduce_dataarray,
_rolling_reduce_dataarray,
Expand Down
1 change: 0 additions & 1 deletion tests/test_30_spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

# from earthkit.data.core.temporary import temp_directory
import xarray as xr

from earthkit import data as ek_data
from earthkit.data.testing import earthkit_remote_test_data_file
from earthkit.transforms.aggregate import spatial
Expand Down
1 change: 0 additions & 1 deletion tests/test_30_temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

# from earthkit.data.core.temporary import temp_directory
import xarray as xr

from earthkit import data as ek_data
from earthkit.data.testing import earthkit_remote_test_data_file
from earthkit.transforms.aggregate import temporal
Expand Down
1 change: 0 additions & 1 deletion tests/test_40_climatology.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# from earthkit.data.core.temporary import temp_directory
import xarray as xr

from earthkit import data as ek_data
from earthkit.data.testing import earthkit_remote_test_data_file
from earthkit.transforms.aggregate import climatology
Expand Down