Skip to content

Commit

Permalink
fixup pydantic dep, tweak codegen
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw committed Oct 4, 2023
1 parent 9f022a6 commit d7bae47
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 137 deletions.
2 changes: 2 additions & 0 deletions codegen/codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ datamodel-codegen \
--snake-case-field \
--capitalize-enum-members \
--field-constraints \
--use-schema-description \
--disable-timestamp \
--strict-types str bytes int float bool \
--output-model-type pydantic_v2.BaseModel \
--output "${pkg_dir}/_internal.py"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
]
dependencies = ["pydantic >=2,<3"]
dependencies = ["pydantic[email] >=2,<3"]
requires-python = ">=3.8"

[project.optional-dependencies]
Expand Down
Loading

0 comments on commit d7bae47

Please sign in to comment.