-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (97 loc) · 2.71 KB
/
pyproject.toml
File metadata and controls
114 lines (97 loc) · 2.71 KB
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
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0", "poetry-dynamic-versioning>=1.0.1"]
build-backend = "poetry_dynamic_versioning.backend"
[project]
dynamic = ["dependencies", "version"]
name = "etpproto"
description = "ETP protocol implementation"
authors = [
{name = "Lionel Untereiner", email = "lionel.untereiner@geosiris.com"} ,
{name = "Valentin Gauthier", email = "valentin.gauthier@geosiris.com"}
]
maintainers = [
{name = "Valentin Gauthier", email = "valentin.gauthier@geosiris.com"}
]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/geosiris-technologies/etpproto-python"
homepage = "http://www.geosiris.com"
keywords = ["ETP"]
requires-python = ">=3.9, <4.0"
[tool.poetry]
version = "0.0.0"
[[tool.poetry.source]]
name = "test-pypi"
url = "https://test.pypi.org/simple/"
priority = "explicit"
[tool.poetry.dependencies]
fastavro = "^1.6.1"
etptypes = "^1.0.12"
# etptypes = {version = "^1.0.4", allow-prereleases = true, source = "test-pypi"}
# etptypes = { file = "D:/Geosiris/Github/etp/etptypes-python/tmp/etptypes/dist/etptypes-1.0.11.dev5-py3-none-any.whl" }
# etptypes = { file = "D:/Geosiris/Github/etp/avro-to-python/tmp/etptypes/dist/etptypes-1.0.11-py3-none-any.whl" }
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.5"
coverage = {extras = ["toml"], version = "7.6.10"}
flake8 = "^7.1.0"
black = "^24.10.0"
pytest-cov = "^6.0.0"
pre-commit = "^2.11.1"
pylint = "^3.3.3"
pytest-asyncio = "^0.25.2"
mypy = "^1.14.0"
click = ">=8.1.3, <=8.1.3" # upper version than 8.0.2 fail with black
isort = "^5.10.1"
poetry-dynamic-versioning = "^1.8.1"
jinja2 = "^3.1.6"
pydantic-core = "^2.33.0"
typeguard = "^4.4.2"
[tool.black]
line-length = 79
target-version = ["py39"]
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.pytest_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| htmlcov
)/
'''
[tool.pytest.ini_options]
addopts = ""
console_output_style = "count"
python_classes = "Test"
python_files = "test_*.py"
python_functions = "test*"
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.coverage.run]
branch = true
source = ["etpproto"]
[tool.pylint.format]
max-line-length = "88"
[project.entry-points."poetry.plugin"]
"dynamic-versioning" = "poetry_dynamic_versioning.plugin"
[tool.dunamai]
version_strategy = "post-release"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "pep440"
format-jinja = """
{%- if distance == 0 -%}
{{ serialize_pep440(base, stage, revision) }}
{%- elif revision is not none -%}
{{ serialize_pep440(base, stage, revision + 1, dev=distance) }}
{%- else -%}
{{ serialize_pep440(bump_version(base), stage, revision, dev=distance) }}
{%- endif -%}
"""