Skip to content

Commit c0e7a40

Browse files
authored
Merge pull request #191 from jedie/dev
Replace setuptools with hatchling
2 parents c0367d5 + 7ecbedd commit c0e7a40

File tree

4 files changed

+55
-30
lines changed

4 files changed

+55
-30
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ To make a new release, do this:
166166

167167
[comment]: <> (✂✂✂ auto generated history start ✂✂✂)
168168

169-
* [**dev**](https://github.com/jedie/PyInventory/compare/v0.21.0...main)
169+
* [v0.21.1](https://github.com/jedie/PyInventory/compare/v0.21.0...v0.21.1)
170+
* 2025-05-01 - Replace setuptools with hatchling
170171
* 2025-04-30 - Update requirements and some small code parts
171172
* [v0.21.0](https://github.com/jedie/PyInventory/compare/v0.20.1...v0.21.0)
172173
* 2025-03-23 - Bugfix publish: setuptools missing

inventory/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"""
99

1010
# See https://packaging.python.org/en/latest/specifications/version-specifiers/
11-
__version__ = '0.21.0'
11+
__version__ = '0.21.1'
1212
__author__ = 'Jens Diemer <[email protected]>'

pyproject.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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'
9391
test_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"
181180
applied_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]

uv.lock

Lines changed: 38 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)