pyproject.toml 1.5 KB
Newer Older
David Runge's avatar
David Runge committed
1
2
3
4
5
6
7
[tool.poetry]
name = "arch-repo-management"
version = "0.1.0"
description = "Tools for package repository management"
authors = ["Arch Linux <arch-projects@lists.archlinux.org>"]
license = "GPL-3.0-or-later"
packages = [
8
9
10
11
  {include = 'repo_management'}
]
include = [
  {path = 'tests/*', format = 'sdist'}
David Runge's avatar
David Runge committed
12
13
14
15
16
]

[tool.poetry.dependencies]
python = "^3.9"
pyalpm = "^0.9.2"
David Runge's avatar
David Runge committed
17
pydantic = "^1.8.1"
David Runge's avatar
David Runge committed
18
orjson = "^3.5.1"
David Runge's avatar
David Runge committed
19
Jinja2 = "^2.11.3"
20
subprocess-tee = "^0.2.0"
David Runge's avatar
David Runge committed
21
aiofiles = "^0.6.0"
David Runge's avatar
David Runge committed
22
23
24
25
26
27
28
29
30

[tool.poetry.dev-dependencies]
tox = "^3.23.0"
pytest = "^6.2.2"
isort = "^5.7.0"
mypy = "^0.812"
flake8 = "^3.8.4"
black = "^20.8b1"
coverage = "^5.5"
David Runge's avatar
David Runge committed
31
mock = "^4.0.3"
David Runge's avatar
David Runge committed
32
pytest-asyncio = "^0.14.0"
David Runge's avatar
David Runge committed
33

34
35
[tool.poetry.scripts]
db2json = "repo_management.cli:db2json"
36
json2db = "repo_management.cli:json2db"
37

38
39
40
[tool.pytest.ini_options]
markers = ["integration"]

David Runge's avatar
David Runge committed
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
[tool.black]
line-length = 120
exclude = '''
/(
  \.direnv|
  |\.eggs
  |\.git
  |\.hg
  |\.mypy_cache
  |\.nox
  |\.tox
  |\.venv
  |\.svn
  |_build
  |buck-out
  |db-write
  |db2json
  |dbscripts
  |build
  |dist
)/
'''


[tool.coverage.path]
source = "repo_management"

[tool.coverage.report]
omit = ["tests/*", ".tox/*", "db-write/*", "db2json/*", "dbscripts/*"]
precision = 2
show_missing = true

[tool.coverage.run]
branch = true
command_line = "-m pytest -v tests/ -m 'not integration'"
omit = ["tests/*", ".tox/*", "db-write/*", "db2json/*", "dbscripts/*"]

[tool.isort]
profile = "black"
multi_line_output = 3

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"