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 ]
66name = " isimip-client"
@@ -13,10 +13,10 @@ maintainers = [
1313description = " A thin client library to use the API of the ISIMIP repository using Python."
1414readme = " README.md"
1515requires-python = " >=3.8"
16- license = { file = " LICENSE" }
16+ license = " MIT"
17+ license-files = [" LICENSE" ]
1718classifiers = [
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 ]
5454isimip-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 ]
6363target-version = " py38"
6464line-length = 120
65+
66+ [tool .ruff .lint ]
6567select = [
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 ]
8284known-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 ]
9597isimip_utils = [" isimip_utils" ]
0 commit comments