-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (98 loc) · 3.18 KB
/
Copy pathpyproject.toml
File metadata and controls
106 lines (98 loc) · 3.18 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "polyswarm_api"
version = "4.7.0"
description = "Client library to simplify interacting with the PolySwarm consumer API"
readme = "README.md"
requires-python = ">=3.10,<4"
authors = [{ name = "PolySwarm Developers", email = "info@polyswarm.io" }]
license = { text = "MIT" }
urls = { Homepage = "https://github.com/polyswarm/polyswarm-api" }
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"httpx>=0.27",
"python-dateutil>=2.9",
"jmespath>=1.0",
]
[project.optional-dependencies]
# Retained for backward compatibility; ``httpx`` is now a core dependency
# so the ``[async]`` extra is a no-op. Downstream consumers can keep
# pinning ``polyswarm-api[async]`` without change.
async = []
tests = [
"bump-my-version~=1.2",
"pytest~=7.4",
"jsonschema~=3.0.2",
"python-dateutil~=2.9.0",
'vcrpy~=7.0',
"pytest-asyncio>=0.23",
"pytest-timeout~=2.3",
"pytest-xdist~=3.6",
"respx>=0.21",
"httpx>=0.27",
]
dev = [
"unasync>=0.6",
"ruff>=0.6",
]
[tool.setuptools]
include-package-data = true
package-dir = { "" = "src" }
[tool.setuptools.packages.find]
where = ["src"]
[tool.bumpversion]
current_version = "4.7.0"
commit = true
tag = false
sign_tags = true
tag_name = "{new_version}"
parse = '^(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?:\.dev(?P<dev>\d+))?(?:\+(?P<local>[a-z0-9]+(?:\.[a-z0-9]+)*))?$'
serialize = [
"{major}.{minor}.{patch}.dev{dev}+{short_commit_sha}",
"{major}.{minor}.{patch}"
]
[tool.bumpversion.parts.dev]
first_value = "0"
optional_value = "0"
[[tool.bumpversion.files]]
filename = "src/polyswarm_api/__init__.py"
search = "__version__ = '{current_version}'"
replace = "__version__ = '{new_version}'"
[tool.pytest.ini_options]
# Live logging OFF by default. When on, pytest streams log records as the run goes
# AND forces every test onto its own nodeid line (verbose-style) — ~130 lines of
# pure noise on a green xdist run. With it off the run prints dots + an end
# summary, and a FAILING test still shows its captured logs (at log_level, below)
# plus the traceback. Opt back into live streaming with TESTS_LOG_CLI=1 (or an
# explicit --log-cli-level) when debugging a live run; see test/conftest.py.
log_cli = false
# Level used for live logging when it's opted into (TESTS_LOG_CLI=1). INFO keeps
# the useful app request/response lines while dropping the DEBUG firehose (VCR
# per-request match trace, parse traces) that otherwise bloats logs ~1000x.
# TESTS_LOG_LEVEL overrides both this and the captured-log level (conftest.py).
log_cli_level = "INFO"
log_format = "%(asctime)s %(levelname)-2s [%(name)s:%(filename)s:%(lineno)d:%(funcName)1s()] %(message)s"
python_files = ["test_*.py", "*_test.py"]
testpaths = ["test"]
norecursedirs = [
".git",
".idea",
]
filterwarnings = [
"ignore::DeprecationWarning",
]
asyncio_mode = "auto"
addopts = [
"--continue-on-collection-errors",
"-s",
"-ra",
]