-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (82 loc) · 2.23 KB
/
Copy pathpyproject.toml
File metadata and controls
94 lines (82 loc) · 2.23 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
[build-system]
requires = ["setuptools>=59", "wheel"]
build-backend = "setuptools.build_meta"
# NOTE on metadata duplication
# ----------------------------
# The [project] table below is the PEP 621 representation of this package.
# It is the documented source of truth for tooling that supports PEP 621
# (setuptools >= 61, build, hatch, modern IDEs).
#
# Some downstream RPM builds use older setuptools (59.x) which silently
# ignores [project]. To make sure those builds still produce a correctly-
# tagged wheel, the same metadata is mirrored in setup.py. When you change
# anything below, change it in setup.py too.
[project]
name = "supportinfo"
version = "1.0.0"
description = "Python library for parsing and querying Amazon Linux package support information"
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT" }
authors = [{ name = "Amazon.com, Inc. or its affiliates" }]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Operating System :: POSIX :: Linux",
"Topic :: System :: Software Distribution",
"Topic :: System :: Systems Administration",
]
dependencies = [
"lxml",
"xmlschema",
]
[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
]
dev = [
"black",
"isort",
"mypy",
"flake8",
"pep8-naming",
]
[project.urls]
Homepage = "https://github.com/amazonlinux/amazon-linux-supportinfo"
Issues = "https://github.com/amazonlinux/amazon-linux-supportinfo/issues"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
supportinfo = ["py.typed", "schemas/*.xsd"]
[tool.black]
line-length = 100
[tool.isort]
known_first_party = ["supportinfo"]
profile = "black"
line_length = 100
[tool.mypy]
check_untyped_defs = true
show_error_codes = true
pretty = true
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["test"]
addopts = [
"--verbose",
"--cov=supportinfo",
"--cov-report=term-missing",
"--durations=5",
"--color=yes",
]
xfail_strict = true
[tool.coverage.run]
branch = true
parallel = true
source = ["supportinfo"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@(abc\\.)?abstractmethod",
]