forked from openwallet-foundation/acapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
164 lines (142 loc) · 4.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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[tool.poetry]
name = "aries_cloudagent"
version = "0.12.1"
description = "Hyperledger Aries Cloud Agent Python (ACA-Py) is a foundation for building decentralized identity applications and services running in non-mobile environments. "
authors = ["Hyperledger Aries <aries@lists.hyperledger.org>"]
license = "Apache-2.0"
readme = "README.md"
packages = [{include = "aries_cloudagent"}]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
repository = "https://github.com/hyperledger/aries-cloudagent-python"
[tool.poetry.dependencies]
python = "^3.9"
aiohttp="~3.9.4"
aiohttp-apispec="~2.2.1"
aiohttp-cors="~0.7.0"
apispec="~3.3.0"
async-timeout="~4.0.2"
base58="~2.1.0"
ConfigArgParse="~1.5.3"
deepmerge="~0.3.0"
ecdsa="~0.19.0"
jsonpath-ng="1.6.1"
Markdown="~3.5.2"
markupsafe="2.0.1"
marshmallow="~3.20.1"
nest_asyncio="~1.5.5"
packaging="~23.1"
portalocker="~2.7.0"
prompt_toolkit=">=2.0.9,<2.1.0"
pydid="^0.5.0"
pyjwt="~2.8.0"
pyld="^2.0.4"
pynacl="~1.5.0"
python-dateutil="~2.8.1"
python-json-logger="~2.0.7"
pytz="~2021.1"
pyyaml="~6.0.1"
qrcode = {version = ">=6.1,<7.0", extras = ["pil"]}
requests="~2.31.0"
rlp="4.0.0"
unflatten="~0.1"
sd-jwt = "^0.10.3"
did-peer-2 = "^0.1.2"
did-peer-4 = "^0.1.4"
# askar
aries-askar= { version = "~0.3.0", optional = true }
indy-credx= { version = "~1.1.1", optional = true }
indy-vdr= { version = "~0.4.0", optional = true }
anoncreds= { version = "0.2.0", optional = true }
# bbs
ursa-bbs-signatures= { version = "~1.0.1", optional = true }
[tool.poetry.group.dev.dependencies]
pre-commit = "~3.7.0"
# Sync with version in .pre-commit-config.yaml
ruff = "0.4.4"
# Sync with version in .github/workflows/blackformat.yml
# Sync with version in .pre-commit-config.yaml
black = "24.4.2"
sphinx="1.8.4"
sphinx-rtd-theme=">=0.4.3"
ptvsd="4.3.2"
pydevd="1.5.1"
pydevd-pycharm="~193.6015.39"
# testing
pytest = "^8.2.0"
pytest-asyncio = "^0.23.6"
pytest-cov = "^5.0.0"
pytest-ruff = "^0.3.2"
[tool.poetry.extras]
askar = [
"aries-askar",
"indy-credx",
"indy-vdr",
"anoncreds"
]
bbs = [
"ursa-bbs-signatures"
]
[tool.poetry.scripts]
aca-py = "aries_cloudagent.__main__:script_main"
[tool.ruff]
lint.select = ["B006", "C", "D", "E", "F"]
lint.ignore = [
# Google Python Doc Style
"D203", "D204", "D213", "D215", "D400", "D401", "D404", "D406", "D407",
"D408", "D409", "D413",
"D202", # Allow blank line after docstring
"D104", # Don't require docstring in public package
# Things that we should fix, but are too much work right now
"D417", "C901",
]
include = ["aries_cloudagent/**/*.py"]
line-length = 90
[tool.ruff.lint.per-file-ignores]
"**/{tests}/*" = ["B006", "D", "E501", "F841"]
[tool.pytest.ini_options]
testpaths = "aries_cloudagent"
addopts = """
--quiet --junitxml=./test-reports/junit.xml
--cov-config .coveragerc --cov=aries_cloudagent --cov-report term --cov-report xml
--ruff
"""
markers = [
"anoncreds: Tests specifically relating to AnonCreds support",
"askar: Tests specifically relating to Aries-Askar support",
"indy: Tests specifically relating to Hyperledger Indy SDK support",
"indy_credx: Tests specifically relating to Indy-Credx support",
"indy_vdr: Tests specifically relating to Indy-VDR support",
"ursa_bbs_signatures: Tests specificaly relating to BBS Signatures support",
"postgres: Tests relating to the postgres storage plugin for Indy",
]
junit_family = "xunit1"
asyncio_mode = "auto"
filterwarnings = [
'ignore:distutils Version classes are deprecated. Use packaging.version instead.:DeprecationWarning', # Ignore specific DeprecationWarning for old packages using distutils version class
]
[tool.coverage.run]
omit = [
"*/tests/*",
"demo/*",
"docker/*",
"docs/*",
"scripts/*",
]
data_file = "test-reports/.coverage"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstract"
]
precision = 2
skip_covered = true
show_missing = true
[tool.coverage.xml]
output = "test-reports/coverage.xml"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"