Skip to content

Commit 469680d

Browse files
committed
Use hatchling and update pyproject.toml
1 parent 61879be commit 469680d

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

pyproject.toml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
build-backend = "setuptools.build_meta"
3-
requires = ["setuptools", "setuptools_scm"]
2+
requires = ["hatchling", "hatch-vcs"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "isimip-client"
@@ -13,10 +13,10 @@ maintainers = [
1313
description = "A thin client library to use the API of the ISIMIP repository using Python."
1414
readme = "README.md"
1515
requires-python = ">=3.8"
16-
license = { file = "LICENSE" }
16+
license = "MIT"
17+
license-files = ["LICENSE"]
1718
classifiers = [
1819
"Operating System :: OS Independent",
19-
"License :: OSI Approved :: MIT License",
2020
"Programming Language :: Python :: 3.8",
2121
"Programming Language :: Python :: 3.9",
2222
"Programming Language :: Python :: 3.10",
@@ -53,15 +53,17 @@ Repository = "https://github.com/ISI-MIP/isimip-client"
5353
[project.scripts]
5454
isimip-client = "isimip_client.cli:main"
5555

56-
[tool.setuptools]
57-
packages = ["isimip_client"]
56+
[tool.hatch.version]
57+
source = "vcs"
5858

59-
[tool.setuptools_scm]
60-
version_scheme = "release-branch-semver"
59+
[tool.hatch.build.targets.wheel]
60+
packages = ["isimip_client"]
6161

6262
[tool.ruff]
6363
target-version = "py38"
6464
line-length = 120
65+
66+
[tool.ruff.lint]
6567
select = [
6668
"B", # flake8-bugbear
6769
"C4", # flake8-comprehensions
@@ -78,7 +80,7 @@ ignore = [
7880
"RUF012", # mutable-class-default
7981
]
8082

81-
[tool.ruff.isort]
83+
[tool.ruff.lint.isort]
8284
known-first-party = [
8385
"isimip_client"
8486
]
@@ -91,5 +93,5 @@ section-order = [
9193
"local-folder"
9294
]
9395

94-
[tool.ruff.isort.sections]
96+
[tool.ruff.lint.isort.sections]
9597
isimip_utils = ["isimip_utils"]

0 commit comments

Comments
 (0)