-
Notifications
You must be signed in to change notification settings - Fork 13
/
pyproject.toml
87 lines (77 loc) · 2.58 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[tool.black]
line-length = 110
target-version = ["py39"]
[tool.isort]
profile = "black"
line_length = 110
[tool.mypy]
python_version = "3.9"
warn_redundant_casts = true
warn_unused_ignores = true
ignore_missing_imports = true
strict = true
[tool.poetry]
name = "jsonschema-gentypes"
version = "0.0.0"
description = "Tool to generate Python types based on TypedDict from a JSON Schema"
readme = "README.md"
authors = ["Camptocamp <[email protected]>"]
repository = "https://github.com/camptocamp/jsonschema-gentypes"
license = "BSD-2-Clause"
keywords = ["jsonschema", "types"]
packages = [{ include = "jsonschema_gentypes" }]
include = ["jsonschema_gentypes/py.typed", "jsonschema_gentypes/*.json"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Topic :: Software Development :: Code Generators",
"Typing :: Typed",
]
[tool.poetry.scripts]
jsonschema-gentypes = "jsonschema_gentypes.cli:main"
[tool.poetry.dependencies]
# Minimal version should also be set in the jsonschema-gentypes.yaml file
python = ">=3.9,<4"
jsonschema = "4.23.0"
typing-extensions = "4.12.2"
requests = "2.32.3"
"PyYAML" = "6.0.2"
pinyin = { version = "0.4.0", optional = true }
romkan = { version = "0.2.1", optional = true }
romanize = { version = "1.0.2", optional = true }
pre-commit = { version = "4.0.1", optional = true }
referencing = "0.35.1"
[tool.poetry.extras]
generate = []
tools = ["pre-commit"]
extra = ['pinyin', 'romkan', 'romanize']
[tool.poetry.group.dev.dependencies]
prospector = { extras = ["with_mypy", "with_bandit", "with_pyroma"], version = "1.12.1" }
prospector-profile-duplicated = "1.6.0"
prospector-profile-utils = "1.9.1"
pytest = "8.3.3"
pytest-cov = "6.0.0"
types-requests = "2.32.0.20241016"
types-pyyaml = "6.0.12.20240917"
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning", "poetry-plugin-tweak-dependencies-version", "poetry-plugin-drop-python-upper-constraint"]
build-backend = "poetry.core.masonry.api"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
pattern = "^(?P<base>\\d+(\\.\\d+)*)"
format-jinja = """
{%- if env.get("VERSION_TYPE") == "version_branch" -%}
{{serialize_pep440(bump_version(base, 1 if env.get("IS_MASTER") == "TRUE" else 2), dev=distance)}}
{%- elif distance == 0 -%}
{{serialize_pep440(base)}}
{%- else -%}
{{serialize_pep440(bump_version(base), dev=distance)}}
{%- endif -%}
"""
[tool.poetry-plugin-tweak-dependencies-version]
default = "present"