[arch-commits] Commit in python-path/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Jun 16 22:04:26 UTC 2021
Date: Wednesday, June 16, 2021 @ 22:04:26
Author: felixonmars
Revision: 964348
archrelease: copy trunk to community-testing-any
Added:
python-path/repos/community-testing-any/
python-path/repos/community-testing-any/PKGBUILD
(from rev 964347, python-path/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-path/repos/community-testing-any/PKGBUILD (from rev 964347, python-path/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2021-06-16 22:04:26 UTC (rev 964348)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-path
+pkgver=16.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')
+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=("https://github.com/jaraco/path/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('db0e400bb02980c21697ceb6eb7baaf0601c532d87b112f3962c36dc412c4337a71085762565345e0ab369000432293be2e482ceb9fd1a356182f26e4dde6d16')
+
+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