Skip to content

Commit 14bf2cc

Browse files
committed
Include build-system in generated clients so they are pip-installable (#120)
1 parent b16ed73 commit 14bf2cc

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
### Additions
1414
- The generator can now handle many more errors gracefully, skipping the things it can't generate and continuing
1515
with the pieces it can.
16-
- Support for Enums declared in "components/schemas" and references to them. (#120)
16+
- Support for Enums declared in "components/schemas" and references to them (#102).
17+
- Generated clients can now be installed via pip (#120).
1718

1819
### Internal Changes
1920
- Switched OpenAPI document parsing to use Pydantic based on a vendored version of

end_to_end_tests/golden-master/pyproject.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ exclude = '''
3232
[tool.isort]
3333
line_length = 120
3434
multi_line_output = 3
35-
include_trailing_comma = true
35+
include_trailing_comma = true
36+
37+
[build-system]
38+
requires = ["poetry>=1.0"]
39+
build-backend = "poetry.masonry.api"

openapi_python_client/templates/pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ exclude = '''
3333
line_length = 120
3434
multi_line_output = 3
3535
include_trailing_comma = true
36+
37+
[build-system]
38+
requires = ["poetry>=1.0"]
39+
build-backend = "poetry.masonry.api"

0 commit comments

Comments
 (0)