]> git.otsuka.systems Git - python-llm/commitdiff
v0.19.1
authorCameron Otsuka <cameron@otsuka.haus>
Tue, 24 Dec 2024 07:01:13 +0000 (23:01 -0800)
committerCameron Otsuka <cameron@otsuka.haus>
Tue, 24 Dec 2024 07:01:13 +0000 (23:01 -0800)
.SRCINFO
PKGBUILD

index 28189b0ca68f6673431fef40d9ebef676c1f22d7..c1fff18378fbd68f1807fe537681cd77d4aef7b7 100644 (file)
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,27 @@
 pkgbase = python-llm
-       pkgdesc = A CLI utility and Python library for interacting with Large Language Models, both via remote APIs and models that can be installed and run on your own machine.
-       pkgver = 0.15
+       pkgdesc = Access large language models from the command-line
+       pkgver = 0.19.1
        pkgrel = 1
        url = https://github.com/simonw/llm
        arch = any
        license = Apache-2.0
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-wheel
        depends = python
+       depends = python-click
+       depends = python-openai
+       depends = python-click-default-group
+       depends = sqlite-utils
+       depends = python-sqlite-migrate
+       depends = python-pydantic
+       depends = python-pyyaml
+       depends = python-pluggy
+       depends = python-ulid
        depends = python-setuptools
-       source = 0.15.tar.gz::https://github.com/simonw/llm/archive/0.15.tar.gz
-       sha256sums = 8efcf3704fd587ed865c2b8518d2d9fb9cf997487dbc75411ed75723a573b803
+       depends = python-pip
+       depends = python-puremagic
+       source = python-llm-0.19.1.tar.gz::https://github.com/simonw/llm/archive/refs/tags/0.19.1.tar.gz
+       sha256sums = SKIP
 
 pkgname = python-llm
index 98a97ad1acb940cd64f750d6c2d308805a36f9c4..31d8b16faedc928e242196260ec9f6e424f4cb6f 100644 (file)
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,25 @@
-# Maintainer: Martin Harrigan <martinharrigan at gmail.com>
-pkgname='python-llm'
-pkgdesc='A CLI utility and Python library for interacting with Large Language Models, both via remote APIs and models that can be installed and run on your own machine.'
-url='https://github.com/simonw/llm'
-pkgver='0.15'
-pkgrel='1'
-arch=('any')
-license=('Apache-2.0')
-depends=('python' 'python-setuptools')
-source=("${pkgver}.tar.gz::https://github.com/simonw/llm/archive/${pkgver}.tar.gz")
-sha256sums=('8efcf3704fd587ed865c2b8518d2d9fb9cf997487dbc75411ed75723a573b803')
+# Maintainer: Cameron Otsuka <cameron@otsuka.haus>
+# Contributor: Cameron Otsuka <cameron@otsuka.haus>
+# Contributor: Martin Harrigan <martinharrigan at gmail.com>
+pkgname="python-llm"
+_name=${pkgname#python-}
+pkgver="0.19.1"
+pkgrel=1
+pkgdesc="Access large language models from the command-line"
+arch=("any")
+url="https://github.com/simonw/llm"
+license=("Apache-2.0")
+depends=("python" "python-click" "python-openai" "python-click-default-group" "sqlite-utils" "python-sqlite-migrate" "python-pydantic" "python-pyyaml" "python-pluggy" "python-ulid" "python-setuptools" "python-pip" "python-puremagic")
+makedepends=("python-build" "python-installer" "python-wheel")
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/simonw/llm/archive/refs/tags/${pkgver}.tar.gz")
+sha256sums=("SKIP")
 
 build() {
-    cd "${srcdir}/llm-${pkgver}"
-    python setup.py build
+       cd "${_name}-${pkgver}"
+       python -m build --wheel --no-isolation
 }
 
 package() {
-    cd "${srcdir}/llm-${pkgver}"
-    python setup.py install --skip-build -O1 --root="${pkgdir}"
-    install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+       cd "${_name}-${pkgver}"
+       python -m installer --destdir="$pkgdir" dist/*.whl
 }