-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
50 lines (44 loc) · 1.14 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
[tool.poetry]
name = "pyfecto"
description = "A simple yet powerful library for handling effects and errors in Python"
authors = ["fernanluyano"]
license = "MIT"
readme = "README.md"
packages = [
{ include = "pyfecto", from = "src" }
]
version = "0.0.0" # dynamically overwritten
[tool.poetry.dependencies]
python = "^3.11"
gitpython = "^3.1.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.0"
pytest-cov = "^6.0.0"
black = "^25.1.0"
isort = "^6.0.0"
flake8 = "^7.1.2"
mypy = "^1.15.0"
[build-system]
requires = [
"poetry-core>=2.0.0,<3.0.0",
"poetry-dynamic-versioning>=1.0.0,<2.0.0"
]
build-backend = "poetry_dynamic_versioning.backend"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "pep440"
format-jinja = """
{%- if branch == "main" -%}
{{ env.get("VERSION", "0.0.0") }}
{%- elif branch.startswith("release/") -%}
{{ branch.split("/")[1] }}
{%- else -%}
0.0.0.dev{{ branch.split("/")[1].split("-")[1] }}
{%- endif -%}
"""
[tool.poetry.requires-plugins]
poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }