Skip to content

Commit 8e06de6

Browse files
authored
bypass pyproject setting like license (#11025)
bypassing the pyproject setting will prevent from undefined getting set on the pyproject toml entries
1 parent 388eecc commit 8e06de6

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: internal
3+
packages:
4+
- "@typespec/http-client-python"
5+
---
6+
7+
Preserve transformed `keep-pyproject-fields` emitter options when building Python generator command arguments.

packages/http-client-python/emitter/src/emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ async function onEmitMain(context: EmitContext<PythonEmitterOptions>) {
220220
}
221221

222222
for (const [key, value] of Object.entries(resolvedOptions)) {
223-
if (key === "license") continue; // skip license since it is passed in codeModel
223+
if (key === "license" || key === "keep-pyproject-fields") continue; // skip license + keep-pyproject-fields since it is passed in codeModel
224224
commandArgs[key] = value;
225225
}
226226
if (resolvedOptions["generate-packaging-files"]) {

0 commit comments

Comments
 (0)