-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
77 lines (69 loc) · 2.85 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "secureli"
version = "0.42.1"
description = "Secure Project Manager"
authors = ["Caleb Tonn <[email protected]>"] # disable-pii-scan
license = "Apache-2.0"
readme = "README.md"
[tool.poetry.scripts]
secureli = "secureli.main:app"
[tool.poe.tasks]
coverage = ["test", "coverage_report"]
coverage_report = "coverage report"
coverage_run = "coverage run -m pytest"
coverage_html = "coverage html"
docker-build-app = "docker build -t secureli . -f Dockerfile_secureli --progress=plain --no-cache"
docker-build-homebrew = "docker build -t homebrew . -f Dockerfile_homebrew --no-cache --progress=plain"
docker-build-pypi = "docker build -t pypi . -f Dockerfile_pypi --no-cache --progress=plain"
init = ["install", "secureli_init"]
secureli_init = "secureli init -y"
install = "poetry install"
lint = "black --check ."
precommit = "pre-commit run --config .secureli/.pre-commit-config.yaml --all-files"
test = ["init", "lint", "coverage_run", "coverage_report"]
e2e = "bats --verbose-run tests/end-to-end"
lang-test = "bats --verbose-run tests/end-to-end/test-language-detect.bats"
[tool.poetry.dependencies]
# Until `python-dependency-injector` supports python 3.12, restrict to python 3.11 and lower
python = ">= 3.9, < 3.12"
typer = {version = ">=0.6.1,<0.13.0", extras = ["all"]}
pygments = "^2.13.0"
# Uncomment the following line to enable python 3.12 support prior to dependency-injector officially supporting it
# Remove once this PR is merged: https://github.com/ets-labs/python-dependency-injector/pull/765
# dependency-injector = { git = "https://github.com/ets-labs/python-dependency-injector.git", branch = "feature/python-3.12" , extras = ["yaml"]}
dependency-injector = {version = "^4.40.0", extras = ["yaml"]}
pydantic = "^1.10.2"
jinja2 = "^3.1.2"
pathspec = ">=0.10.1,<0.13.0"
cfgv = "^3.3.1"
pre-commit = ">=2.20,<4.0"
requests = "^2.31.0"
pyyaml = ">=6.0.1"
chardet = "^5.2.0"
gitpython = "^3.1.43"
[tool.pytest.ini_options]
addopts = "-p no:cacheprovider"
[tool.poetry.group.dev.dependencies]
pytest = ">=7.1.3,<9.0.0"
pytest-mock = "^3.10.0"
coverage = ">=6.5,<8.0"
black = ">=22.10,<25.0"
identify = "^2.5.7"
poethepoet = ">=0.16.4,<0.26.0"
python-semantic-release = ">=8.0.0"
[tool.semantic_release]
# Documentation for these options: https://python-semantic-release.readthedocs.io/en/latest/configuration.html
version_toml = ["pyproject.toml:tool.poetry.version"]
major_on_zero = true
branch = "main"
upload_to_vcs_release = true
patch_tags = ["fix", "perf", "chore(release)"]
build_command = "pip install poetry && poetry build"
commit_message = "chore(release): Tag v{version} [skip ci]"
tag_format = "v{version}"
[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease = false # Toggle to append `-rc.<N>` (e.g. `-rc.1`). Set `prerelease_token` to change suffix