diff options
author | crl | 2025-03-28 10:39:04 +0800 |
---|---|---|
committer | crl | 2025-03-28 10:39:04 +0800 |
commit | 1d1870cf65a4dcd81374d147044fe22cbe7f64ec (patch) | |
tree | 75549d0b68ae92752ea9bee0305f8cf96dec3898 | |
download | aur-python-lightning.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 40 |
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..99eaec46daaf --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = python-lightning + pkgdesc = The Deep Learning framework to train, deploy, and ship AI products Lightning fast. + pkgver = 2.5.1 + pkgrel = 1 + url = https://github.com/Lightning-AI/lightning + arch = any + license = Apache-2.0 + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + depends = python-fsspec + depends = python-lightning-utilities + depends = python-psutil + depends = python-pyaml + depends = python-torchmetrics + depends = python-pytorch-lightning + depends = python-typing_extensions + depends = python-packaging + depends = python-pytorch + depends = python-tqdm + source = https://github.com/Lightning-AI/pytorch-lightning/releases/download/2.5.1/lightning-2.5.1.tar.gz + sha512sums = ede7eb51d27f1fe9b1fc426316cb71421cc44db29030eea154492dfca0f1ac99814f12deb55e329a69e2fadccf6b4db902122d64b2d915ad31eabd18416da71d + +pkgname = python-lightning diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..36a6c1a86938 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +lightning-*.tar.gz +python-lightning-*-any.pkg.tar.zst +pkg/ +src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c49734238188 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: crl <crl18039102576@126.com> + +pkgname=python-lightning +_name=${pkgname#python-} +pkgver=2.5.1 +pkgrel=1 +pkgdesc="The Deep Learning framework to train, deploy, and ship AI products Lightning fast." +arch=('any') +url='https://github.com/Lightning-AI/lightning' +license=('Apache-2.0') +depends=( + python-fsspec + python-lightning-utilities + python-psutil + python-pyaml + python-torchmetrics + python-pytorch-lightning + python-typing_extensions + python-packaging + python-pytorch + python-tqdm +) +makedepends=( + python-build + python-installer + python-wheel +) +source=("https://github.com/Lightning-AI/pytorch-lightning/releases/download/${pkgver}/${_name}-${pkgver}.tar.gz") +sha512sums=('ede7eb51d27f1fe9b1fc426316cb71421cc44db29030eea154492dfca0f1ac99814f12deb55e329a69e2fadccf6b4db902122d64b2d915ad31eabd18416da71d') + +build() { + cd "${srcdir}/${_name}-${pkgver}" + python setup.py build +} + +package() { + cd "${srcdir}/${_name}-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build +} +# vim:set ts=2 sw=2 et: |