makedeb


python3-huggingface-hub 0.22.2-0


All the open source things related to the Hugging Face Hub

Click here to go back to the commit logs for python3-huggingface-hub.

Commit:


Hash: 5fa695f117bbc19832c2c9e6d7085e66d7594371

Message: Initial mpr release

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 3c92a32..d4fe060 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,19 @@
-pkgbase = python-huggingface-hub
-	pkgdesc = All the open source things related to the Hugging Face Hub
-	pkgver = 0.19.4
-	pkgrel = 1
-	epoch = 1
-	url = https://github.com/huggingface/huggingface_hub
-	arch = any
-	license = Apache
-	makedepends = python-setuptools
-	depends = python-filelock
-	depends = python-requests
-	depends = python-tqdm
-	depends = python-yaml
-	depends = python-typing_extensions
-	depends = python-packaging
-	source = huggingface_hub-0.19.4.tar.gz::https://github.com/huggingface/huggingface_hub/archive/refs/tags/v0.19.4.tar.gz
-	sha512sums = f522ac7ba46eb38e4ed4a63b578c5077a3ff908a3d9b529f562c5bded7dda59d4b27ff07771b8bffaf7a638cfcf56a963da6acbc36864ba7017747345190dc66
-
-pkgname = python-huggingface-hub
+generated-by = makedeb
+pkgname = python3-huggingface-hub
+pkgbase = python3-huggingface-hub
+pkgdesc = All the open source things related to the Hugging Face Hub
+pkgrel = 0
+pkgver = 0.19.4
+url = https://github.com/huggingface/huggingface_hub
+arch = all
+depends = python3-filelock
+depends = python3-requests
+depends = python3-tqdm
+depends = python3-yaml
+depends = python3-typing-extensions
+depends = python3-packaging
+license = Apache2
+makedepends = python3-setuptools
+source = huggingface_hub-0.19.4.tar.gz::https://github.com/huggingface/huggingface_hub/archive/refs/tags/v0.19.4.tar.gz
+b2sums = a43c8542c4a55709c9fb6d69eff20870dc33a7210004f3efcc72e72f97346ca0bf7a9e2cb42cd8cb7dd5e4a819de22a79f0de42a6e553ea8b523d5caeec2ee74
+makedepends = python3-setuptools
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..03fc4df
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+huggingface*
+python3-huggingface*
+src
+pkg
diff --git a/PKGBUILD b/PKGBUILD
index 2fe5ed6..a3d411e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,36 +1,39 @@
-# Maintainer: Butui Hu <hot123tea123@gmail.com>
-
+# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
+# Contributor: Butui Hu (AUR) <hot123tea123@gmail.com>
 _pkgname=huggingface_hub
-pkgname=python-huggingface-hub
+pkgname=python3-huggingface-hub
 pkgver=0.19.4
-pkgrel=1
-epoch=1
+pkgrel=0
 pkgdesc='All the open source things related to the Hugging Face Hub'
-arch=('any')
+arch=('all')
 url='https://github.com/huggingface/huggingface_hub'
-license=('Apache')
+license=('Apache2')
 depends=(
-  python-filelock
-  python-requests
-  python-tqdm
-  python-yaml
-  python-typing_extensions
-  python-packaging
+  python3-filelock
+  python3-requests
+  python3-tqdm
+  python3-yaml
+  python3-typing-extensions
+  python3-packaging
 )
 makedepends=(
-  python-setuptools
+  python3-setuptools
 )
 
 source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/huggingface/huggingface_hub/archive/refs/tags/v${pkgver}.tar.gz")
-sha512sums=('f522ac7ba46eb38e4ed4a63b578c5077a3ff908a3d9b529f562c5bded7dda59d4b27ff07771b8bffaf7a638cfcf56a963da6acbc36864ba7017747345190dc66')
+b2sums=('a43c8542c4a55709c9fb6d69eff20870dc33a7210004f3efcc72e72f97346ca0bf7a9e2cb42cd8cb7dd5e4a819de22a79f0de42a6e553ea8b523d5caeec2ee74')
 
 build() {
   cd "${_pkgname}-${pkgver}"
-  python setup.py build
+  python3 setup.py build
 }
 
 package() {
   cd "${_pkgname}-${pkgver}"
-  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build --install-layout deb
+
+  install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/readme"
+  ln -s "/usr/share/common-licenses/Apache-2.0" "${pkgdir}/usr/share/doc/$pkgname/"
 }
+
 # vim:set ts=2 sw=2 et: