| 1 |
[build-system] |
| 2 |
requires = [ |
| 3 |
"setuptools >= 46.4.0", |
| 4 |
] |
| 5 |
build-backend = "setuptools.build_meta" |
| 6 |
|
| 7 |
[project] |
| 8 |
name = "con-duct" |
| 9 |
description = "A helper to run a command, capture stdout/stderr and details about running" |
| 10 |
readme = { file = "README.md", content-type = "text/markdown" } |
| 11 |
requires-python = ">=3.10" |
| 12 |
license = "MIT" |
| 13 |
authors = [ |
| 14 |
{ name = "Austin Macdonald", email = "[email protected]" }, |
| 15 |
] |
| 16 |
keywords = [ |
| 17 |
"command-line", |
| 18 |
"cpu", |
| 19 |
"memory", |
| 20 |
"metrics", |
| 21 |
"output-capture", |
| 22 |
"provenance", |
| 23 |
"time", |
| 24 |
"usage", |
| 25 |
] |
| 26 |
classifiers = [ |
| 27 |
"Development Status :: 3 - Alpha", |
| 28 |
"Programming Language :: Python :: 3 :: Only", |
| 29 |
"Programming Language :: Python :: 3", |
| 30 |
"Programming Language :: Python :: 3.10", |
| 31 |
"Programming Language :: Python :: 3.11", |
| 32 |
"Programming Language :: Python :: 3.12", |
| 33 |
"Programming Language :: Python :: 3.13", |
| 34 |
"Programming Language :: Python :: 3.14", |
| 35 |
"Programming Language :: Python :: Implementation :: CPython", |
| 36 |
"Programming Language :: Python :: Implementation :: PyPy", |
| 37 |
"Environment :: Console", |
| 38 |
"Intended Audience :: Developers", |
| 39 |
"Intended Audience :: Information Technology", |
| 40 |
"Intended Audience :: Science/Research", |
| 41 |
"Intended Audience :: System Administrators", |
| 42 |
"Topic :: System :: Systems Administration", |
| 43 |
"Operating System :: Unix", |
| 44 |
"Operating System :: MacOS", |
| 45 |
] |
| 46 |
|
| 47 |
|
| 48 |
dynamic = ["version"] |
| 49 |
|
| 50 |
[project.optional-dependencies] |
| 51 |
all = [ |
| 52 |
"matplotlib>=3.5", |
| 53 |
"PyYAML>=6.0", |
| 54 |
"pyout>=0.8", |
| 55 |
|
| 56 |
"rpds-py<0.28.0; implementation_name == 'pypy'", |
| 57 |
"python-dotenv>=0.19", |
| 58 |
] |
| 59 |
|
| 60 |
[project.urls] |
| 61 |
source = "https://github.com/con/duct/" |
| 62 |
issues = "https://github.com/con/duct/issues" |
| 63 |
|
| 64 |
[project.scripts] |
| 65 |
duct = "con_duct.cli:duct_entrypoint" |
| 66 |
con-duct = "con_duct.cli:main" |
| 67 |
|
| 68 |
|
| 69 |
[tool.setuptools.dynamic] |
| 70 |
version = {attr = "con_duct._version.__version__"} |
| 71 |
|
| 72 |
[tool.pytest.ini_options] |
| 73 |
addopts = "--cov=con_duct --no-cov-on-fail" |
| 74 |
filterwarnings = [ |
| 75 |
"error", |
| 76 |
|
| 77 |
"ignore:'enablePackrat' deprecated:DeprecationWarning:matplotlib._mathtext", |
| 78 |
] |
| 79 |
markers = [ |
| 80 |
"flaky: mark a test as being unreliable", |
| 81 |
] |
| 82 |
norecursedirs = ["test/data"] |
| 83 |
|
| 84 |
[tool.setuptools.packages.find] |
| 85 |
where = ["src"] |
| 86 |
|
| 87 |
[tool.setuptools.package-data] |
| 88 |
"*" = ["py.typed"] |
| 89 |
|
| 90 |
[tool.mypy] |
| 91 |
allow_incomplete_defs = false |
| 92 |
allow_untyped_defs = false |
| 93 |
ignore_missing_imports = false |
| 94 |
|
| 95 |
no_implicit_optional = true |
| 96 |
implicit_reexport = false |
| 97 |
local_partial_types = true |
| 98 |
pretty = true |
| 99 |
show_error_codes = true |
| 100 |
show_traceback = true |
| 101 |
strict_equality = true |
| 102 |
warn_redundant_casts = true |
| 103 |
warn_return_any = true |
| 104 |
warn_unreachable = true |
| 105 |
|
| 106 |
[tool.isort] |
| 107 |
atomic = true |
| 108 |
force_sort_within_sections = true |
| 109 |
honor_noqa = true |
| 110 |
lines_between_sections = 0 |
| 111 |
profile = "black" |
| 112 |
reverse_relative = true |
| 113 |
sort_relative_in_force_sorted_sections = true |
| 114 |
src_paths = ["src"] |
| 115 |
|
| 116 |
[tool.coverage.run] |
| 117 |
branch = true |
| 118 |
parallel = true |
| 119 |
|
| 120 |
[tool.coverage.paths] |
| 121 |
source = [ |
| 122 |
"src", |
| 123 |
".tox/**/site-packages", |
| 124 |
] |
| 125 |
|
| 126 |
[tool.coverage.report] |
| 127 |
precision = 2 |
| 128 |
show_missing = true |