-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (80 loc) · 2.82 KB
/
pyproject.toml
File metadata and controls
89 lines (80 loc) · 2.82 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
[project]
name = "command-line-assistant"
version = "0.5.1"
description = " With the command-line assistant powered by RHEL Lightspeed, you can get guidance and assistance with managing RHEL right from your command line, all by using natural language. The generative AI that powers the command-line assistant incorporates information from the RHEL product documentation and Red Hat Knowledgebase, and can help you understand, configure, and troubleshoot your RHEL systems. "
authors = [
{ name = "RHEL Lightspeed Team", email = "rhel-sst-lightspeed@redhat.com" },
]
maintainers = [
{ name = "Rodolfo Olivieri", email = "rolivier@redhat.com" },
{ name = "Major Hayden", email = "mhayden@redhat.com" },
]
dependencies = [
# tomli is only required below 3.11 as it is native after that version.
'tomli; python_version<"3.11"',
"requests==2.25.1",
"dasbus~=1.4;python_version<='3.9'",
"dasbus~=1.7;python_version>='3.12'",
"sqlalchemy==1.4.45",
"pygobject~=3.40.1;python_version<='3.9'",
"pygobject~=3.46;python_version>='3.12'",
"markdown<3.4",
]
requires-python = ">=3.9,<4.0" # RHEL 9 and 10
readme = "README.md"
license = { file = "LICENSE" }
classifiers = ["Programming Language :: Python :: 3"]
urls = { Repository = "https://github.com/rhel-lightspeed/command-line-assistant.git", Issues = "https://github.com/rhel-lightspeed/command-line-assistant/issues" }
scripts = { c = "command_line_assistant.client:main", clad = "command_line_assistant.daemon.clad:daemonize" }
[build-system]
# uv build is not available in rhel baseos repositories
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pytest-randomly",
"coverage",
"pytest-sugar",
"pytest-clarity",
"tox",
"responses",
"types-markdown<3.4",
]
docs = [
"sphinx",
"sphinx-autodoc-typehints",
"sphinx-rtd-theme",
"sphinx-argparse-cli",
]
db = ["psycopg2_binary", "mysqlclient"]
[tool.setuptools.packages.find]
include = ["command_line_assistant*"]
namespaces = false
[tool.ruff]
# Enable ruff rules to act like flake8
# https://docs.astral.sh/ruff/rules/#rules
lint.select = [
"E", # pycodestyle (formerly part of flake8)
"F", # pyflakes (formerly part of flake8)
"I", # import order (like isort)
"B", # flake8-bugbear
"C90", # flake8-comprehensions
"G", # flak8-logging-format
]
# Exclude specific rules if needed
lint.ignore = [
"E501", # Ignore line length (similar to flake8's max-line-length)
]
[tool.pytest.init_options]
testpaths = ["tests"]
[tool.coverage.report]
skip_empty = true
exclude_also = ["if __name__ == \"__main__\":"]
[tool.coverage.run]
branch = true
source = ["command_line_assistant"]
[tool.codespell]
skip = 'data/release/man/*,data/release/selinux/Makefile'
count = true