1
0
mirror of https://github.com/containers/ramalama.git synced 2026-02-05 06:46:39 +01:00

26 Commits

Author SHA1 Message Date
Stephen Smoogen
8ab242f820 Move rpms (#1693)
* Start adding rpm/ramalama.spec for Fedora

Add a ramalama.spec to sit next to python-ramalama.spec while we get
this reviewed. Change various configs so they are aware of
ramalama.spec

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>

* Add needed obsoletes/provides in base rpm to start process.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>

* Try to fix CI problems with initial mr

The initial MR puts two spec files in the same directory which was
causing problems with the CI. This splits them off into different
directories which should allow for the tooling to work.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>

* Finish move of Fedora rpm package to new name.

Put changes into various files needed to allow for new RPM package
`ramalama` to build in Fedora infrastructure versus python3-ramalama.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>

* Fix problem with path names lsm5 caught

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>

---------

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
Co-authored-by: Stephen Smoogen <ssmoogen@redhat.com>
2025-07-14 10:13:49 -04:00
Stephen Smoogen
8341ddcf7b Start process of moving python-ramalama to ramalama (#1498)
* Start adding rpm/ramalama.spec for Fedora

Add a ramalama.spec to sit next to python-ramalama.spec while we get
this reviewed. Change various configs so they are aware of
ramalama.spec

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>

* Add needed obsoletes/provides in base rpm to start process.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>

* Try to fix CI problems with initial mr

The initial MR puts two spec files in the same directory which was
causing problems with the CI. This splits them off into different
directories which should allow for the tooling to work.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>

---------

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
Co-authored-by: Stephen Smoogen <ssmoogen@redhat.com>
2025-06-30 14:51:29 +01:00
Eric Curtin
5988cdcfc2 Also hardcode version into version.py as fallback
This way we should always return the current version

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2025-04-15 13:07:48 +01:00
Eric Curtin
56aa228c56 Check all files are adding to packaging
We've missed this more than once.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2025-01-10 12:04:12 +00:00
Eric Curtin
22223ca04e Check versions match in CI
We added a check to rpm/python-ramalama.spec

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2024-11-07 13:38:26 +00:00
Eric Curtin
25d2dc245f Start an Asahi version
Asahi has a forked version of mesa while it upstream.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2024-11-06 13:27:22 +00:00
Eric Curtin
7d657f8759 Consistency changes
Ensure llama.cpp version is the same accross containers. Removing some duplicate
actions, etc.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2024-11-05 03:48:05 +00:00
Daniel J Walsh
98bb757ddc Verify pyproject.py and setup.py have same version
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-11-01 14:16:38 -04:00
Daniel J Walsh
66363f994f Replace install.py with install.sh and add rm.sh
Creating a hack/rm.sh script

Want to try and install via pipx and wrote a script to remove old
install. Also converted python install script back to shell, the
python experience in a new mac is just not nice in comparison to
bash.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-04 08:49:00 -04:00
Daniel J Walsh
7ff26ec1ce Convert to fully use setup.py for PyPi installation
Add pyproject.toml, setup.cfg
Add new target make pypi.
fix up requirements.txt

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>

Update

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-01 08:37:18 -04:00
Daniel J Walsh
1e3efe725b Add pull tests
As part of this test, I also removed the tests from ci.sh that
are now implemented in bats.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-09-13 06:20:26 -04:00
Eric Curtin
4537d22bd8 Implement rm in ramalama
We must delete the symlink and garbage collect any model that does not
have an associated symlink.

We do garbage collection of everything, because some old sha's etc. may
no longer have symlink references due to updates.

Co-Authored-By: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2024-09-10 16:36:22 +01:00
Eric Curtin
b586e6a82a Run container_build first
Things like xref-helpmsgs-manpages execute ramalama, so all the python
modules must be available at this point.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2024-09-06 13:39:12 +01:00
Daniel J Walsh
05f20cbde0 Fix installing of ramalama
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-09-05 10:07:13 -04:00
Daniel J Walsh
c89df3e8c3 Add codespell support
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-09-05 09:14:11 -04:00
Eric Curtin
bab3492af5 Temporarily disable branch setting
Doesn't work for forked repos

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2024-09-05 14:09:38 +01:00
Eric Curtin
fd5b5686b6 Add codespell and autopep via pip
We may want to hardcode to a version like:

pip install "codespell==some-version"
pip install "autopep8==some-version"

if builds start to become unstable by always using the latest version.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2024-09-04 17:02:46 +01:00
Eric Curtin
94d7e1d584 Fix installer to account for all files
The python script was split into multiple files, account for this in the
installer.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2024-09-03 22:11:21 +01:00
Eric Curtin
d58e9120dc Bug fixes and aliases
It should be self.pull(args).

Also added 'ls' alias for 'list'.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2024-09-03 16:13:01 +01:00
Daniel J Walsh
e9a09afecc Complete port to argparser
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-08-28 14:27:26 -04:00
Daniel J Walsh
584a949e3e Add --help, --json, --noheading support for ramalama list
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-08-27 08:26:08 -04:00
Daniel J Walsh
785713a916 Add version command
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-08-26 11:36:01 -04:00
Daniel J Walsh
258cbfbc90 Translate into class structure
Also changes default TRANSPORT to OCI rather then ollama

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-08-23 14:01:52 -04:00
Daniel J Walsh
29687aa89e Change ramalama to be used library
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-08-22 08:12:49 -04:00
tarilabs
c5bfdcdefd wire omlmd and push for oci://
Signed-off-by: tarilabs <matteo.mortari@gmail.com>
2024-08-22 10:39:09 +02:00
Daniel J Walsh
aabb35fc94 Rename ramalama to ramalama.py
Move ci.sh into test subdir.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-08-21 10:38:47 -04:00