From 347c5f2325738dfb8d9033069bfeb43d05d80ddf Mon Sep 17 00:00:00 2001 From: tomvothecoder Date: Tue, 12 Nov 2024 15:02:51 -0800 Subject: [PATCH] Fix pyproject.toml build --- pyproject.toml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5b731e9a5..d68046a0d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,6 @@ build-backend = "setuptools.build_meta" [project] name = "e3sm_diags" dynamic = ["version"] -version = "2.12.0" description = "E3SM Diagnostics" authors = [ { name = "Chengzhu (Jill) Zhang", email = "zhang40@llnl.gov" }, @@ -31,13 +30,15 @@ classifiers = [ dependencies = [ "beautifulsoup4", "cartopy >=0.17.0", - "cartopy_offlinedata", + # This package is not available on PyPI. + # "cartopy_offlinedata", "cf-units", "dask", "esmpy >=8.4.0", "lxml", "mache >=0.15.0", - "matplotlib-base", + # This package is not available on PyPI. + # "matplotlib-base", "netcdf4", "output_viewer >=1.3.0", "numpy >=2.0.0,<3.0.0", @@ -69,9 +70,8 @@ Documentation = "https://docs.e3sm.org/e3sm_diags/_build/html/main/index.html" e3sm_diags = "e3sm_diags.e3sm_diags_driver:main" e3sm_diags_vars = "e3sm_diags.e3sm_diags_vars:main" -[tool.setuptools] -packages = ["e3sm_diags", "e3sm_diags.*"] -scripts = ["e3sm_diags/e3sm_diags_driver.py"] +[tool.setuptools.packages.find] +include = ["e3sm_diags", "e3sm_diags.*"] [tool.setuptools.dynamic] version = { attr = "e3sm_diags.__version__" } @@ -84,6 +84,9 @@ version = { attr = "e3sm_diags.__version__" } ] [tool.setuptools.data-files] +"share/e3sm_diags/acme_ne30_ocean_land_mask.nc" = [ + "e3sm_diags/driver/acme_ne30_ocean_land_mask.nc", +] "share/e3sm_diags/zonal_mean_xy" = [ "e3sm_diags/driver/default_diags/zonal_mean_xy*", "e3sm_diags/driver/default_diags/legacy_diags/zonal_mean_xy*", @@ -173,7 +176,7 @@ exclude = ''' | config | conda | analysis_data_preprocess - )/ +)/ ''' [tool.isort]