-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
115 lines (104 loc) · 3.06 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "bitwarden_to_keepass"
version = "1.0.0"
description = "A simple little script that backs up a Bitwarden vault to a local KeePass file."
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
authors = [
{name = "Douglas Thor"}, # so that package core metadata "Author" field gets populated.
{name = "Douglas Thor", email = "[email protected]"},
]
maintainers = []
keywords = []
classifiers = []
dependencies = [
"click>=8.1,<9.0",
"pykeepass>=4.0,<5.0",
]
[project.optional-dependencies]
dev = [
"appdirs==1.4.3",
"argon2-cffi==23.1.0",
"argon2-cffi-bindings==21.2.0",
"attrs==19.3.0",
"cffi==1.16.0",
"cfgv==3.1.0",
"construct==2.10.68",
"coverage==7.3.2",
"distlib==0.3.6",
"exceptiongroup==1.1.3",
"filelock==3.8.0",
"future==0.18.3",
"identify==2.5.6",
"importlib-metadata==1.5.0",
"importlib-resources==1.0.2",
"iniconfig==2.0.0",
"lxml==4.9.3",
"more-itertools==8.2.0",
"nodeenv==1.3.5",
"packaging==20.1",
"platformdirs==2.5.2",
"pluggy==0.13.1",
"pre-commit==3.4.0",
"pycparser==2.21",
"pycryptodomex==3.19.0",
"pykeepass==4.0.3",
"pyparsing==2.4.6",
"pytest==7.4.2",
"pytest-cov==4.1.0",
"python-dateutil==2.8.2",
"PyYAML==6.0.1",
"six==1.14.0",
"toml==0.10.0",
"virtualenv==20.16.5",
"wcwidth==0.1.8",
"zipp==3.0.0",
]
build = [
"build==0.10.0",
"setuptools==65.5.0",
"wheel==0.37.1",
]
[project.scripts]
"bitwarden_to_keepass" = "bitwarden_to_keepass.cli:run"
[project.urls]
"Source Code" = "https://github.com/dougthor42/bitwarden_to_keepass"
"Changelog" = "https://github.com/dougthor42/bitwarden_to_keepass/blob/master/CHANGELOG.md"
"Bug Tracker" = "https://github.com/dougthor42/bitwarden_to_keepass/issues"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.mypy]
show_error_codes = true
[tool.pytest.ini_options]
# Note: We use the pytest-cov option "--cov-context test" here instead of the
# coverage option "dynamic_context = test_function" in [tool.coverage.run] because
# then the contexts will include the full pytest name and account for
# parametrized fuctions.
# Basically the difference between this (`pytest-cov`)
# tests/test_cli.py::TestCli::test_cli[test_args0]|run
# tests/test_cli.py::TestCli::test_cli[test_args1]|run
# tests/test_cli.py::TestCli::test_cli_invalid_args[invalid_args2]|run
# tests/test_cli.py::TestCli::test_cli_invalid_args[invalid_args3]|run
# and this (just plain `coverage`)
# tests.test_cli.TestCli.test_cli_invalid_args
# tests.test_cli.TestCli.test_cli_prompts_for_days
# The full pytest name shows us that the first two parametrized tests of
# test_cli_invalid_args do NOT test the line.
addopts = """\
-ra \
--cov bitwarden_to_keepass \
--cov-report html \
--cov-context test \
"""
[tool.coverage.html]
show_contexts = true
[tool.coverage.run]
branch = true
[tool.ruff]
target-version = "py38"