pyproject.toml 1.39 KB
Newer Older
David Runge's avatar
David Runge committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[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 = [
  {include = 'repo_management'},
  {include = 'tests', format = 'sdist'},
]

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

[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
28
mock = "^4.0.3"
David Runge's avatar
David Runge committed
29

30
31
[tool.poetry.scripts]
db2json = "repo_management.cli:db2json"
32
json2db = "repo_management.cli:json2db"
33

David Runge's avatar
David Runge committed
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
[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"