Skip to content

Commit

Permalink
Update package build system to hatchling
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Jan 13, 2025
1 parent 5147e84 commit 5126838
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 44 deletions.
35 changes: 6 additions & 29 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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-*
9 changes: 0 additions & 9 deletions MANIFEST.in

This file was deleted.

16 changes: 10 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools>=45"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "polar2grid"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5126838

Please sign in to comment.