11[build-system ]
22requires = [
3- " setuptools>=64 " ,
4- " setuptools_scm>=7 " ,
3+ " hatchling>=1.8.0 " ,
4+ " hatch-vcs " ,
55]
6- build-backend = " setuptools.build_meta "
6+ build-backend = " hatchling.build "
77
88[project ]
9- requires-python = " >=3.7 "
9+ requires-python = " >=3.8 "
1010name = " anaflow"
1111authors = [{name = " Sebastian Mueller" , email = " sebastian.mueller@ufz.de" }]
1212readme = " README.md"
13- license = { text = " MIT" }
13+ license = " MIT"
1414dynamic = [" version" ]
1515description = " AnaFlow - analytical solutions for the groundwater-flow equation."
1616classifiers = [
@@ -29,10 +29,12 @@ classifiers = [
2929 " Programming Language :: Python" ,
3030 " Programming Language :: Python :: 3" ,
3131 " Programming Language :: Python :: 3 :: Only" ,
32- " Programming Language :: Python :: 3.6" ,
33- " Programming Language :: Python :: 3.7" ,
3432 " Programming Language :: Python :: 3.8" ,
3533 " Programming Language :: Python :: 3.9" ,
34+ " Programming Language :: Python :: 3.10" ,
35+ " Programming Language :: Python :: 3.11" ,
36+ " Programming Language :: Python :: 3.12" ,
37+ " Programming Language :: Python :: 3.13" ,
3638 " Topic :: Scientific/Engineering" ,
3739 " Topic :: Software Development" ,
3840 " Topic :: Utilities" ,
@@ -45,17 +47,17 @@ dependencies = [
4547
4648[project .optional-dependencies ]
4749doc = [
48- " m2r2>=0.2.8 " ,
49- " matplotlib>=3" ,
50+ " myst-parser " ,
51+ " matplotlib>=3.7 " ,
5052 " numpydoc>=1.1" ,
51- " sphinx>=4 " ,
53+ " sphinx>=7 " ,
5254 " sphinx-gallery>=0.8" ,
53- " sphinx-rtd-theme>=1,<1.1 " ,
55+ " sphinx-rtd-theme>=3 " ,
5456]
5557test = [" pytest-cov>=3" ]
5658check = [
57- " black>=24,< 25" ,
58- " isort[colors]<6 " ,
59+ " black>=25" ,
60+ " isort[colors]" ,
5961 " pylint" ,
6062]
6163
@@ -67,22 +69,39 @@ Tracker = "https://github.com/GeoStat-Framework/anaflow/issues"
6769Changelog = " https://github.com/GeoStat-Framework/anaflow/blob/main/CHANGELOG.md"
6870Conda-Forge = " https://anaconda.org/conda-forge/anaflow"
6971
70- [tool .setuptools ]
71- license-files = [" LICENSE" ]
72+ [tool .hatch .version ]
73+ source = " vcs"
74+ fallback_version = " 0.0.0.dev0"
7275
73- [tool .setuptools_scm ]
74- write_to = " src/anaflow/_version.py"
75- write_to_template = " __version__ = '{version}'"
76+ [tool .hatch .version .raw-options ]
7677local_scheme = " no-local-version"
77- fallback_version = " 0.0.0.dev0"
78+
79+ [tool .hatch .build .hooks .vcs ]
80+ version-file = " src/anaflow/_version.py"
81+ template = " __version__ = '{version}'"
82+
83+ [tool .hatch .build .targets .sdist ]
84+ include = [
85+ " /src" ,
86+ " /tests" ,
87+ ]
88+
89+ [tool .hatch .build .targets .wheel ]
90+ packages = [" src/anaflow" ]
7891
7992[tool .isort ]
8093profile = " black"
8194multi_line_output = 3
8295
8396[tool .black ]
84- exclude = " _version.py"
85- target-version = [" py37" ]
97+ target-version = [
98+ " py38" ,
99+ " py39" ,
100+ " py310" ,
101+ " py311" ,
102+ " py312" ,
103+ " py313" ,
104+ ]
86105
87106[tool .coverage ]
88107 [tool .coverage .run ]
0 commit comments