Skip to content

Commit f992e14

Browse files
Merge pull request #370 from neutrinoceros/bld/flit-core-311
BLD: switch build backend to `flit-core`
2 parents 7785346 + 04bdc2d commit f992e14

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

pyproject.toml

+4-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["hatchling>=1.25"]
3-
build-backend = "hatchling.build"
2+
requires = ["flit_core >=3.11,<4"]
3+
build-backend = "flit_core.buildapi"
44

55
[project]
66
name = "yt_idefix"
@@ -9,12 +9,13 @@ description = "An extension module for yt, adding a frontend for Idefix and Plut
99
authors = [
1010
{ name = "C.M.T. Robert" },
1111
]
12+
license = "GPL-3.0-only"
13+
license-files = ["LICENSE"]
1214
classifiers = [
1315
"Development Status :: 5 - Production/Stable",
1416
"Environment :: Console",
1517
"Framework :: Matplotlib",
1618
"Intended Audience :: Science/Research",
17-
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
1819
"Operating System :: MacOS :: MacOS X",
1920
"Operating System :: POSIX :: AIX",
2021
"Operating System :: POSIX :: Linux",
@@ -44,9 +45,6 @@ IdefixVtkDataset = "yt_idefix.api:IdefixVtkDataset"
4445
PlutoVtkDataset = "yt_idefix.api:PlutoVtkDataset"
4546
PlutoXdmfDataset = "yt_idefix.api:PlutoXdmfDataset"
4647

47-
[project.license]
48-
text = "GPL-3.0"
49-
5048
[project.readme]
5149
file = "README.md"
5250
content-type = "text/markdown"
@@ -68,12 +66,6 @@ typecheck = [
6866
"mypy>=1.13.0",
6967
]
7068

71-
[tool.hatch.build.targets.sdist]
72-
exclude = [".*"] # exclude dot files (.gitignore is still included)
73-
74-
[tool.hatch.build]
75-
exclude = ["tests"]
76-
7769
[tool.ruff.lint]
7870
preview = true # needed for RUF031
7971
explicit-preview-rules = true

0 commit comments

Comments
 (0)