Skip to content

Commit d78dcdc

Browse files
authored
Merge pull request #3 from rhel-lightspeed/include-warning-message
[RSPEED-901] Include warning message when program is executed
2 parents ef2b1b1 + dcebc2e commit d78dcdc

2 files changed

Lines changed: 22 additions & 7 deletions

File tree

command_line_assistant/__main__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import sys
2+
3+
NOTICE_MESSAGE: str = """\
4+
If you have installed command-line-assistant by using pypi, uninstall it from your system, and install the command line assistant tool by using RHEL repositories.
5+
6+
1. Uninstall the command line assistant installed with `pypi`:
7+
$ pip uninstall command-line-assistant
8+
9+
2. Install command lina assistant by using RHEL repositories
10+
$ sudo dnf install command-line-assistant"""
11+
12+
13+
def main() -> int:
14+
print(NOTICE_MESSAGE, file=sys.stderr)
15+
return 1
16+
17+
if __name__ == "__main__":
18+
sys.exit(main())

pyproject.toml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "command-line-assistant"
3-
version = "0.1.1"
4-
description = "A simple wrapper to interact with RAG"
3+
version = "0.1.2"
4+
description = "The command line assistant provides a natural language interface, and can incorporate information from resources such as the RHEL documentation."
55
authors = [
66
{ name = "RHEL Lightspeed team", email = "rhel-sst-lightspeed@redhat.com" },
77
]
@@ -13,20 +13,17 @@ requires-python = ">=3.9" # RHEL 9 and 10
1313
readme = "README.md"
1414
license = { file = "LICENSE" }
1515
classifiers = ["Programming Language :: Python :: 3"]
16+
scripts = { c = "command_line_assistant.__main__:main" }
1617

1718
[project.urls]
1819
Repository = "https://github.com/rhel-lightspeed/command-line-assistant.git"
1920
Issues = "https://github.com/rhel-lightspeed/command-line-assistant/issues"
2021

2122
[build-system]
22-
# pdm build is not available in rhel baseos repositories
2323
requires = ["setuptools", "wheel"]
2424
build-backend = "setuptools.build_meta"
2525

2626
# ----- Tooling specifics
2727

2828
[tool.setuptools]
29-
packages = ["command_line_assistant"]
30-
31-
[tool.pdm]
32-
distribution = true
29+
packages = ["command_line_assistant"]

0 commit comments

Comments
 (0)