[arch-commits] Commit in python-fs/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Mon Dec 20 11:55:42 UTC 2021


    Date: Monday, December 20, 2021 @ 11:55:42
  Author: felixonmars
Revision: 1080130

archrelease: copy trunk to community-testing-any

Added:
  python-fs/repos/community-testing-any/
  python-fs/repos/community-testing-any/PKGBUILD
    (from rev 1080129, python-fs/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: python-fs/repos/community-testing-any/PKGBUILD (from rev 1080129, python-fs/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-12-20 11:55:42 UTC (rev 1080130)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-fs
+pkgver=2.4.14
+pkgrel=1
+pkgdesc="Filesystem abstraction layer"
+arch=('any')
+license=('BSD')
+url="https://pypi.python.org/pypi/fs/"
+depends=('python-appdirs' 'python-pytz' 'python-setuptools' 'python-six')
+checkdepends=('python-pytest-runner' 'fuse2' 'python-pyftpdlib' 'python-psutil' 'python-pysendfile'
+              'python-parameterized')
+source=("https://github.com/PyFilesystem/pyfilesystem2/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('7bc69e23e6477a68fdf87d18403ba0bff2ff4eb2d0cf3cd9c7b0078885ed9d718e3f4f5f22bd77c6bcca6ebfa990045104a2d5abcf473a9d77a28aa94884650b')
+
+build() {
+  cd pyfilesystem2-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pyfilesystem2-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" python setup.py pytest
+}
+
+package() {
+  cd pyfilesystem2-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list