Skip to content

Commit

Permalink
chore: replace setuptools with hatchling (#187)
Browse files Browse the repository at this point in the history
This PR changes the build backend from setuptools to hatchling. See background in modflowpy/flopy#2446

Other minor changes is to remove an unused .flake8 configuration file and unused tool.setuptools_scm option.
  • Loading branch information
mwtoews authored Feb 12, 2025
1 parent 5aad311 commit 198b78b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 47 deletions.
29 changes: 0 additions & 29 deletions .flake8

This file was deleted.

5 changes: 0 additions & 5 deletions MANIFEST.in

This file was deleted.

21 changes: 8 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[build-system]
# Minimum requirements for the build system to execute
requires = [
"setuptools>=61",
]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "modflow-devtools"
Expand Down Expand Up @@ -127,16 +124,14 @@ dev = [
"Bug Tracker" = "https://github.com/MODFLOW-USGS/modflow-devtools/issues"
"Source Code" = "https://github.com/MODFLOW-USGS/modflow-devtools"

[tool.setuptools]
packages = ["modflow_devtools"]
include-package-data = true
zip-safe = false
[tool.hatch.build.targets.sdist]
only-include = ["modflow_devtools"]

[tool.setuptools.dynamic]
version = {file = "version.txt"}
[tool.hatch.build.targets.wheel]
packages = ["modflow_devtools"]

[tool.setuptools_scm]
fallback_version = "999"
[tool.hatch.version]
path = "modflow_devtools/__init__.py"

[tool.codespell]
skip = "cliff.toml"
Expand Down

0 comments on commit 198b78b

Please sign in to comment.