[arch-commits] Commit in python-path/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 28 06:48:32 UTC 2020
Date: Tuesday, July 28, 2020 @ 06:48:31
Author: felixonmars
Revision: 665623
archrelease: copy trunk to community-testing-any
Added:
python-path/repos/community-testing-any/
python-path/repos/community-testing-any/PKGBUILD
(from rev 665622, python-path/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-path/repos/community-testing-any/PKGBUILD (from rev 665622, python-path/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2020-07-28 06:48:31 UTC (rev 665623)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-path
+pkgver=15.0.0
+pkgrel=1
+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