Date: Friday, April 7, 2023 @ 11:42:47
  Author: felixonmars
Revision: 1441103

archrelease: copy trunk to community-staging-any

Added:
  python-libvcs/repos/community-staging-any/
  python-libvcs/repos/community-staging-any/PKGBUILD
    (from rev 1441102, python-libvcs/trunk/PKGBUILD)

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

Copied: python-libvcs/repos/community-staging-any/PKGBUILD (from rev 1441102, 
python-libvcs/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-07 11:42:47 UTC (rev 1441103)
@@ -0,0 +1,51 @@
+# Maintainer: Andreas 'Segaja' Schleifer <segaja at archlinux dot org>
+
+_name='libvcs'
+pkgname="python-${_name}"
+pkgver=0.21.1
+pkgrel=2
+pkgdesc='Lite, typed, pythonic utilities for git, svn, mercurial, etc'
+arch=('any')
+url='https://libvcs.git-pull.com/'
+license=('MIT')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-poetry-core' 
'python-typing_extensions')
+checkdepends=('git' 'mercurial' 'python-pytest' 'python-pytest-mock' 
'subversion')
+optdepends=(
+  'git: for git repository support'
+  'mercurial: for mercurial repository support'
+  'subversion: for subversion repository support'
+  'python-pytest: for pytest plugin'
+)
+source=("https://github.com/vcs-python/libvcs/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz";)
+sha512sums=('8df80aa066eeebfdd64fb49b71167171a0194c023bd262422468052599a30e4374c8bedcf54d82fd32b5d06d7d5206e89a88bcd89d4e598a0191dbe823f399d5')
+b2sums=('edbb9c58446f8566d3d26159eee454a2c201dededaa68a697078347b7524971b7f6b85e33b3b362e97b3ceeea98c79e8e869356f8e1cc8437b7138a7e58e47f6')
+
+build() {
+  cd  "${_name}-${pkgver}"
+
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd  "${_name}-${pkgver}"
+
+  local _site_packages="$(python -c "import site; 
print(site.getsitepackages()[0])")"
+
+  python -m installer --destdir=test_dir dist/*.whl
+
+  export PYTHONPATH="test_dir${_site_packages}:${PYTHONPATH}"
+
+  pytest -vv tests
+}
+
+package() {
+  cd  "${_name}-${pkgver}"
+
+  python -m installer --destdir="${pkgdir}" dist/*.whl
+
+  install --verbose -D --mode=0644 LICENSE --target-directory 
"${pkgdir}/usr/share/licenses/${pkgname}"
+  install --verbose -D --mode=0644 *.md CHANGES MIGRATION --target-directory 
"${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: tabstop=2 shiftwidth=2 expandtab:

Reply via email to