-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
99 lines (86 loc) · 3.03 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[project]
requires-python = ">=3.9"
[tool.poetry]
name = "rpmautospec"
version = "0.7.3"
description = "A package and CLI tool to generate RPM release fields and changelogs."
authors = [
"Pierre-Yves Chibon <[email protected]>",
"Nils Philippsen <[email protected]>",
"Adam Saleh <[email protected]>",
"Stephen Coady <[email protected]>",
"David Kirwan <[email protected]>",
"Elliott Sales de Andrade <[email protected]>",
"Zbigniew Jędrzejewski-Szmek <[email protected]>",
"Miro Hrončok <[email protected]>",
]
maintainers = ["Fedora Infrastructure <[email protected]>"]
license = "MIT"
readme = "README.rst"
repository = "https://github.com/fedora-infra/rpmautospec"
packages = [
{ include = "rpmautospec/**/*.py" },
]
include = [
{ path = "DCO.txt", format = "sdist" },
{ path = "rpm/macros.d/macros.rpmautospec", format = "sdist" },
{ path = "tests/**/*.py", format = "sdist" },
{ path = "tests/test-data/commitlogs/commit*.txt", format = "sdist" },
{ path = "tests/test-data/commitlogs/expected*.txt", format = "sdist" },
{ path = "tests/test-data/commitlogs/expected*.yaml", format = "sdist" },
{ path = "tests/test-data/repodata/dummy-test-package-gloster-git.tar.gz", format = "sdist" },
{ path = "tests/test-data/repodata/dummy-test-package-gloster.spec.expected", format = "sdist" },
{ path = "tests/test-data/test-specfiles/*.spec", format = "sdist" },
{ path = "tox.ini", format = "sdist" },
]
exclude = [
"**/.coverage",
]
[tool.poetry.dependencies]
python = "^3.9"
rpmautospec_core = "^0.1.4"
babel = "^2.8"
pygit2 = [
{ version = "^1.4.0,<1.16.0", python = ">=3.9.0,<3.10.0" },
{ version = "^1.4.0", python = "^3.10.0" }
]
rpm = "*"
click = "^8"
click-plugins = "^1.1.1"
[tool.poetry.group.dev.dependencies]
pyyaml = "^5.3.1 || ^6"
pytest = "^6.2.2 || ^7 || ^8.0.0"
pytest-cov = "^4.0.0 || ^5.0.0 || ^6.0.0"
pytest-xdist = [
{ version = "^2.5.0", python = ">=3.9.0,<3.12" },
{ version = "^2.5.0 || ^3", python = "^3.12" }
]
coverage = "^7.2.0"
ruff = "^0.2.0 || ^0.3.0 || ^0.4.0 || ^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0"
[tool.poetry.scripts]
rpmautospec = "rpmautospec.cli:cli"
[tool.poetry.plugins."rpmautospec.cli"]
"calculate-release" = "rpmautospec.subcommands.release:calculate_release"
"convert" = "rpmautospec.subcommands.convert:convert"
"generate-changelog" = "rpmautospec.subcommands.changelog:generate_changelog"
"process-distgit" = "rpmautospec.subcommands.process_distgit:process_distgit"
[tool.poetry.build]
generate-setup-file = true
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
allowed-confusables = ["’"]
[tool.ruff.lint.isort]
known-third-party = ["rpm"]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["F401"]
[tool.pytest.ini_options]
addopts = "--cov --cov-config .coveragerc --cov-report term --cov-report xml --cov-report html"
tmp_path_retention_policy = "failed"
[tool.black]
line_length = 100