@@ -44,6 +44,7 @@ dev = [
4444 ' lxml' , # https://github.com/lxml/lxml
4545
4646 " uv" , # https://github.com/astral-sh/uv
47+ " hatchling" , # https://github.com/pypa/hatch/tree/master/backend
4748 " playwright" , # https://github.com/microsoft/playwright-python
4849 " tblib" , # https://github.com/ionelmc/python-tblib
4950 " coverage" , # https://github.com/nedbat/coveragepy
@@ -60,9 +61,6 @@ dev = [
6061 " pre-commit" , # https://github.com/pre-commit/pre-commit
6162 " typeguard" , # https://github.com/agronholm/typeguard/
6263
63- # setuptools use by "publish" command:
64- " setuptools" , # https://github.com/pypa/setuptools
65-
6664 # https://github.com/akaihola/darker
6765 # https://github.com/ikamensh/flynt
6866 # https://github.com/pycqa/isort
@@ -93,8 +91,19 @@ local_settings='inventory_project.settings.local'
9391test_settings =' inventory_project.settings.tests'
9492
9593
94+ [build-system ]
95+ requires = [" hatchling" ]
96+ build-backend = " hatchling.build"
97+
98+ [tool .hatch .build .targets .wheel ]
99+ packages = [" inventory" , " inventory_project" ]
100+
101+ [tool .hatch .version ]
102+ path = " inventory/__init__.py"
103+
104+
96105[tool .cli_base ]
97- version_module_name = " inventory" # Used by update_readme_history()
106+ version_module_name = " inventory" # Used by "update-readme-history" pre-commit hook
98107
99108
100109[tool .cli_base .pip_audit ]
@@ -107,16 +116,6 @@ ignore-vuln=[
107116
108117
109118
110- [build-system ]
111- requires = [" setuptools>=61.0" , " setuptools_scm>=7.1" ]
112- build-backend = " setuptools.build_meta"
113-
114- [tool .setuptools .packages .find ]
115- where = [" ." ]
116- include = [" inventory*" , " inventory_project*" ]
117-
118- [tool .setuptools .dynamic ]
119- version = {attr = " inventory.__version__" }
120119
121120
122121[tool .darker ]
@@ -181,6 +180,7 @@ cookiecutter_directory = "managed-django-project"
181180applied_migrations = [
182181 " 141b3e4" , # 2024-09-05T17:53:31+02:00
183182 " a36dd75" , # 2025-03-23T11:39:23+01:00
183+ " b3e0624" , # 2025-05-01T00:07:45+02:00
184184]
185185
186186[manageprojects .cookiecutter_context .cookiecutter ]
0 commit comments