forked from packit/packit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (131 loc) · 3.35 KB
/
pyproject.toml
File metadata and controls
141 lines (131 loc) · 3.35 KB
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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "packitos"
authors = [
{ name = "Red Hat", email = "packit@redhat.com" },
]
description = "A set of tools to integrate upstream open source projects into Fedora operating system."
readme = "README.md"
license = "MIT"
license-files = { paths = ["LICENSE"] }
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development",
"Topic :: Utilities",
]
dynamic = ["version"]
keywords = [
"git",
"packaging",
"fedora",
"rpm",
"dist-git",
]
dependencies = [
"GitPython",
"PyYAML",
"cccolutils",
"click",
"copr",
"fedora-distro-aliases",
"lazy_object_proxy",
"marshmallow",
"marshmallow-enum",
"munch",
"ogr",
"packaging",
"python-gnupg",
"requests",
"requests-kerberos",
"specfile",
"tabulate",
"bodhi-client >= 7.0.0",
"koji",
"rpkg",
"cachetools",
"python-bugzilla",
"backoff",
# osc 1.8.2 introduced a regression that was fixed via https://github.com/openSUSE/osc/pull/1595 in 1.8.3
"osc >= 1.6.2, != 1.8.2",
"opensuse-distro-aliases",
]
[project.urls]
Homepage = "https://github.com/packit/packit"
[project.optional-dependencies]
testing = [
"pytest",
"pytest-cov",
"pytest-timeout",
"flexmock",
"deepdiff",
"distro",
"setuptools", # Required for test_upstream.py/test_get_version_macro
"setuptools-scm", # Required for tests using python-ogr.spec
]
dev = [
"packitos[testing]",
"pre-commit",
]
[project.scripts]
packit = "packit.cli.packit_base:packit_base"
[tool.hatch.version]
source = "vcs"
# we can't use pre-release-based version scheme because it generates versions
# that are sorted higher than the last stable release by RPM
# for example:
# - pre-release (guess-next-dev):
# 0.20.1.dev1+g0abcdef.d20230921 > 0.20.1
# - post-release (no-guess-dev):
# 0.20.0.post1.dev1+g0abcdef < 0.20.1
raw-options.version_scheme = "no-guess-dev"
[tool.hatch.build.targets.wheel]
packages = ["packit"]
[tool.pytest.ini_options]
filterwarnings = "ignore::DeprecationWarning"
addopts = '-m "not slow"'
markers = [
"slow: Slow tests",
]
testpaths = [
"tests",
]
[tool.mypy]
python_version = "3.9"
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"COM", # flake8-commas
"E", # pycodestyle Error
"F", # Pyflakes
"I", # isort
"PERF",# Perflint
"PIE", # flake8-pie
# "PT", # flake8-pytest-style, would be nice to enable
"RET", # flake8-return
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle Warning
]
ignore = [
"B017", # assert-raises-exception
"B022", # useless-contextlib-suppress
"RUF001", # Comment contains ambiguous character
"RUF003", # Comment contains ambiguous character
]