mirror of
https://github.com/containers/ramalama.git
synced 2026-02-05 06:46:39 +01:00
Included ramalama.conf in wheel
Currently other data files such as shortnames.conf, man pages, and shell completions are included in the Python wheel. Including ramalama.conf as well means we can avoid several calls to make in the RPM spec file, instead relying on the wheel mechanisms to put these files in place. As long as `make docs` is run before the wheel generation, all the necessary files are included. Signed-off-by: Carl George <carlwgeorge@gmail.com>
This commit is contained in:
@@ -110,7 +110,7 @@ log_cli_date_format = "%Y-%m-%d %H:%M:%S"
|
||||
include = ["ramalama", "ramalama.*"]
|
||||
|
||||
[tool.setuptools.data-files]
|
||||
"share/ramalama" = ["shortnames/shortnames.conf"]
|
||||
"share/ramalama" = ["shortnames/shortnames.conf", "docs/ramalama.conf"]
|
||||
"share/man/man1" = ["docs/*.1"]
|
||||
"share/man/man5" = ["docs/*.5"]
|
||||
"share/man/man7" = ["docs/*.7"]
|
||||
|
||||
@@ -56,14 +56,12 @@ will run the AI Models within a container based on the OCI image.
|
||||
%forgeautosetup -p1
|
||||
|
||||
%build
|
||||
make docs
|
||||
%pyproject_wheel
|
||||
%{__make} docs
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files -l %{pypi_name}
|
||||
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install-docs install-shortnames
|
||||
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install-completions
|
||||
|
||||
%check
|
||||
%pytest -v test/unit
|
||||
|
||||
Reference in New Issue
Block a user