From 5126838067b5c71dc18d9013e66f35871659d99e Mon Sep 17 00:00:00 2001 From: David Hoese Date: Mon, 13 Jan 2025 14:49:42 -0600 Subject: [PATCH] Update package build system to hatchling --- .gitignore | 35 ++++++----------------------------- MANIFEST.in | 9 --------- pyproject.toml | 16 ++++++++++------ 3 files changed, 16 insertions(+), 44 deletions(-) delete mode 100644 MANIFEST.in diff --git a/.gitignore b/.gitignore index dc5eeaac..0bb66df6 100644 --- a/.gitignore +++ b/.gitignore @@ -52,39 +52,16 @@ nosetests.xml *.out *.app -# various built ms2gt files -ms2gt/src/fornav/fornav -ms2gt/src/grid_convert/grid_convert -ms2gt/src/gridsize/gridsize -ms2gt/src/ll2cr/ll2cr -ms2gt/src/ll2xy/ll2xy -ms2gt/src/lle2cre/lle2cre -ms2gt/src/mapx/trunk/cdb_edit -ms2gt/src/mapx/trunk/cdb_list -ms2gt/src/mapx/trunk/crtest -ms2gt/src/mapx/trunk/gacct -ms2gt/src/mapx/trunk/gridloc -ms2gt/src/mapx/trunk/gtest -ms2gt/src/mapx/trunk/irregrid -ms2gt/src/mapx/trunk/macct -ms2gt/src/mapx/trunk/mapenum -ms2gt/src/mapx/trunk/mtest -ms2gt/src/mapx/trunk/regrid -ms2gt/src/mapx/trunk/resamp -ms2gt/src/mapx/trunk/ungrid -ms2gt/src/mapx/trunk/wdbtocdb -ms2gt/src/mapx/trunk/xytest -ms2gt/src/projection/projection -ms2gt/src/utils/apply_mask -ms2gt/src/utils/extract_region -ms2gt/src/utils/insert_region -ms2gt/src/utils/make_mask -ms2gt/src/xy2ll/xy2ll - # PyCharm configs .idea +# Image Editing Tools +*.xcf + # Example images should not be added to the repository doc/source/_static/example_images doc/source/dev_guide/api/*.rst doc/source/grids_list.rst + +# Polar2Grid Bundles being compared against +polar2grid-swbundle-* diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 8c1fd4a2..00000000 --- a/MANIFEST.in +++ /dev/null @@ -1,9 +0,0 @@ -recursive-include doc/source * -recursive-include polar2grid/tests/etc * -include polar2grid/grids/grids.yaml -recursive-include polar2grid/fonts * -recursive-include polar2grid/etc * -include LICENSE.txt -include README.rst -recursive-exclude doc/source/_static/example_images *.png *.jpg -recursive-exclude doc/source/_static *.psd *.xcf diff --git a/pyproject.toml b/pyproject.toml index 25935577..505cd1bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=45"] -build-backend = "setuptools.build_meta" +requires = ["hatchling"] +build-backend = "hatchling.build" [project] name = "polar2grid" @@ -50,11 +50,15 @@ Project-URL = "https://github.com/ssec/polar2grid/" polar2grid = "polar2grid.__main__:p2g_main" geo2grid = "polar2grid.__main__:g2g_main" -[tool.setuptools] -include-package-data = true +[tool.hatch.build.targets.sdist] +only-include = [ + "polar2grid", + "NEWS.rst", + "NEWS_GEO2GRID.rst", +] -[tool.setuptools.packages] -find = {} +[tool.hatch.build.targets.wheel] +packages = ["polar2grid"] [tool.pytest.ini_options] minversion = 6.0