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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 16:56:41 UTC 2020


    Date: Monday, November 9, 2020 @ 16:56:41
  Author: felixonmars
Revision: 747725

archrelease: copy trunk to community-staging-any

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

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

Copied: python-path/repos/community-staging-any/PKGBUILD (from rev 747722, python-path/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:56:41 UTC (rev 747725)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-path
+pkgver=15.0.0
+pkgrel=2
+pkgdesc='A module wrapper for os.path'
+arch=('any')
+license=('MIT')
+url='https://github.com/jaraco/path'
+depends=('python')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pytest-black' 'python-pytest-cov' 'python-pytest-flake8' 'python-pytest-mypy')
+replaces=('python-path.py')
+conflicts=('python-path.py')
+provides=('python-path.py')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jaraco/path/archive/v$pkgver.tar.gz")
+sha512sums=('3d499cf9a02381bd4f1aa4c515b91163881b928a2cdd19c6644239061c104bed22244f39a3a19d8376c296488bd6155d61308d33ddbc8a5a98e1d0d66d2515b5')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd path-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd path-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd path-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list