forked from pytest-docker-compose/pytest-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
119 lines (107 loc) · 3.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
[project]
name = "pytest-docker-compose-v2"
dynamic = ["version"]
description = "Manages Docker containers during your integration tests"
authors = [
{name = "Radu Suciu"},
{name = "Thomas Meckel"},
{name = "Roald Storm"},
{name = "Phoenix Zerin"},
]
dependencies = [
"pytest>=7.2.2",
"python-on-whales>=0.69.0,<1"
]
requires-python = ">=3.9"
readme = "README.md"
license = {text = "Apache"}
keywords = [
"pytest",
"docker compose",
]
classifiers = [
"Topic :: Software Development :: Testing",
"Intended Audience :: Developers",
"Development Status :: 4 - Beta",
"Framework :: Pytest",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
[project.entry-points.pytest11]
docker_compose = "pytest_docker_compose.plugin:plugin"
[project.urls]
repository="https://github.com/radusuciu/pytest-docker-compose-v2"
[build-system]
requires = ["pdm-pep517>=1.0"]
build-backend = "pdm.pep517.api"
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"ruff>=0.0.259",
"bumpver>=2022.1120",
"git-cliff>=2.0.4",
"tox>=4.13.0",
"psycopg2-binary>=2.9.9",
"fastapi>=0.110.0",
"uvicorn>=0.27.1",
"pytest>=7.4.4",
"mypy>=1.8.0",
]
[tool.pdm.version]
source = "file"
path = "pytest_docker_compose/__init__.py"
[tool.pytest.ini_options]
addopts = "-m 'not (should_fail or multiple_compose_files)' '--docker-compose' './tests/pytest_docker_compose_tests/my_network' '--docker-compose-no-build'"
markers = [
"should_fail: marks a set of test that should throw an error when run",
"multiple_compose_files: marks a test that uses more than one compose file",
]
minversion = "7.2"
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.bumpver]
current_version = "0.1.2"
version_pattern = "MAJOR.MINOR.PATCH[GITHASH]"
commit_message = "bump version {old_version} -> {new_version}"
commit = true
tag = true
push = false
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'current_version = "{version}"',
]
"pytest_docker_compose/__init__.py" = [
'__version__ = "{version}"',
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{39,310,311,312}-pytest{7,8}
[testenv]
deps =
pytest7: pytest>=7,<8
pytest8: pytest>=8,<9
python_on_whales
ruff
mypy
whitelist_externals=
docker
commands=
ruff check pytest_docker_compose
mypy --namespace-packages --ignore-missing-imports pytest_docker_compose
pytest
pytest -m multiple_compose_files --docker-compose ./tests/pytest_docker_compose_tests/my_network,./tests/pytest_docker_compose_tests/my_network/extra-service.yml
docker compose -f tests/pytest_docker_compose_tests/my_network/docker-compose.yml up -d
pytest --use-running-containers
docker compose -f tests/pytest_docker_compose_tests/my_network/docker-compose.yml down -v
"""