@@ -118,10 +118,6 @@ private static void writePyproject(
118
118
writers .useFileWriter ("pyproject.toml" , "" , writer -> {
119
119
writer .pushState (new PyprojectSection (dependencies ));
120
120
writer .write ("""
121
- [build-system]
122
- requires = ["setuptools", "setuptools-scm", "wheel"]
123
- build-backend = "setuptools.build_meta"
124
-
125
121
[project]
126
122
name = $1S
127
123
version = $2S
@@ -145,7 +141,7 @@ private static void writePyproject(
145
141
""" , settings .moduleName (), settings .moduleVersion (), settings .moduleDescription ());
146
142
147
143
Optional .ofNullable (dependencies .get (PythonDependency .Type .DEPENDENCY .getType ())).ifPresent (deps -> {
148
- writer .openBlock ("dependencies = [" , "]" , () -> writeDependencyList (writer , deps .values ()));
144
+ writer .openBlock ("dependencies = [" , "]\n " , () -> writeDependencyList (writer , deps .values ()));
149
145
});
150
146
151
147
Optional <Collection <SymbolDependency >> testDeps =
@@ -161,17 +157,23 @@ private static void writePyproject(
161
157
}
162
158
163
159
testDeps .ifPresent (deps -> {
164
- writer .openBlock ("tests = [" , "]" , () -> writeDependencyList (writer , deps ));
160
+ writer .openBlock ("tests = [" , "]\n " , () -> writeDependencyList (writer , deps ));
165
161
});
166
162
167
163
docsDeps .ifPresent (deps -> {
168
- writer .openBlock ("docs = [" , "]" , () -> writeDependencyList (writer , deps ));
164
+ writer .openBlock ("docs = [" , "]\n " , () -> writeDependencyList (writer , deps ));
169
165
});
170
166
171
167
// TODO: remove the pyright global suppressions after the serde redo is done
172
168
writer .write ("""
173
- [tool.setuptools.packages.find]
174
- exclude=["tests*"]
169
+ [build-system]
170
+ requires = ["hatchling"]
171
+ build-backend = "hatchling.build"
172
+
173
+ [tool.hatch.build]
174
+ exclude = [
175
+ "tests",
176
+ ]
175
177
176
178
[tool.pyright]
177
179
typeCheckingMode = "strict"
0 commit comments