-
Notifications
You must be signed in to change notification settings - Fork 56
/
pyproject.toml
183 lines (159 loc) · 4.13 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
[tool.poetry]
name = "port-ocean"
version = "0.12.8"
description = "Port Ocean is a CLI tool for managing your Port projects."
readme = "README.md"
homepage = "https://app.getport.io"
repository = "https://github.com/port-labs/Port-Ocean"
authors = ["Daniel Sinai <[email protected]>", "Yair Siman-Tov <[email protected]>", "Tom Tankilevitch <[email protected]>"]
packages = [
{ include = "port_ocean", from = "." }
]
keywords = ["ocean", "port-ocean", "port"]
classifiers = [
"Framework :: FastAPI",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
]
[tool.poetry.scripts]
ocean = "port_ocean.cli.cli:cli_start"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python = "^3.11"
pydantic = { version = "^1.10.8", extras = ["dotenv"] }
loguru = "^0.7.0"
pyyaml = "^6.0"
werkzeug = ">=2.3.4,<4.0.0"
fastapi = "^0.115.3"
uvicorn = ">=0.22,<0.31"
confluent-kafka = "^2.1.1"
httpx = ">=0.24.1,<0.28.0"
jq = "^1.8.0"
urllib3 = ">=1.26.16,<3.0.0"
six = "^1.16.0"
pyhumps = "^3.8.0"
pydispatcher = "^2.0.7"
tomli = "^2.0.1"
aiostream = ">=0.5.2,<0.7.0"
python-dateutil = "^2.9.0.post0"
# CLI
click = { version = "^8.1.3", optional = true }
rich = { version = "^13.4.1", optional = true }
cookiecutter = { version = "^2.1.1", optional = true }
jinja2-time = { version = "^0.2.0", optional = true }
[tool.poetry.extras]
cli = ["click", "rich", "cookiecutter", "jinja2-time"]
[tool.poetry.group.dev.dependencies]
black = ">=23.3,<25.0"
mypy = "^1.3.0"
pre-commit = "^3.7.1"
pylint = ">=2.17.4,<4.0.0"
pytest = ">=8.2,<9.0"
pytest-asyncio = ">=0.24.0"
pytest-httpx = ">=0.30.0"
pytest-xdist = "^3.6.1"
ruff = "^0.6.3"
towncrier = "^23.6.0"
types-python-dateutil = "^2.9.0.20240316"
types-pyyaml = "^6.0.12.10"
types-toml = "^0.10.8.6"
yamllint = "^1.32.0"
pytest-timeout = "^2.3.1"
cryptography = "^43.0.1"
[tool.towncrier]
directory = "changelog"
filename = "CHANGELOG.md"
title_format = "## {version} ({project_date})"
package_dir = "."
package = "port_ocean"
underlines = [""]
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecation"
name = "Deprecations"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "improvement"
name = "Improvements"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug Fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Improved Documentation"
showcontent = true
[tool.mypy]
exclude = [
'port_ocean/cli/cookiecutter',
'venv',
'.venv',
'integrations',
'docs',
'node_modules'
]
plugins = [
"pydantic.mypy"
]
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
# for strict mypy: (this is the tricky one :-))
disallow_untyped_defs = true
[tool.ruff]
# Never enforce `E501` (line length violations).
ignore = ["E501"]
exclude = ['venv', '.venv', 'integrations']
target-version = "py311"
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[tool.black]
line-length = 88
target-version = ['py311']
include = '\.pyi?$'
exclude = '''
/(
\scripts
\.toml
|\.sh
|\.git
|\.ini
|Dockerfile
|\.venv
|integrations
|docs
|node_modules
)/
'''
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
addopts = "-vv -n auto --durations=10 --color=yes --ignore-glob='./integrations/*' ./port_ocean/tests"
markers = [
"smoke: Smoke tests (deselect with '-m \"not smoke\"')"
]