[arch-commits] Commit in python-path/repos/community-staging-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Nov 12 06:22:43 UTC 2020
Date: Thursday, November 12, 2020 @ 06:22:42
Author: felixonmars
Revision: 751313
archrelease: copy trunk to community-staging-any
Added:
python-path/repos/community-staging-any/PKGBUILD
(from rev 751312, python-path/trunk/PKGBUILD)
Deleted:
python-path/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 78 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 43 insertions(+), 35 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-12 06:22:31 UTC (rev 751312)
+++ PKGBUILD 2020-11-12 06:22:42 UTC (rev 751313)
@@ -1,35 +0,0 @@
-# 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/
-}
Copied: python-path/repos/community-staging-any/PKGBUILD (from rev 751312, python-path/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-12 06:22:42 UTC (rev 751313)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-path
+pkgver=15.0.0
+pkgrel=3
+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"
+ $pkgname-fix-pytest.patch::https://github.com/jaraco/path/commit/8117892ea5da.patch)
+sha512sums=('3d499cf9a02381bd4f1aa4c515b91163881b928a2cdd19c6644239061c104bed22244f39a3a19d8376c296488bd6155d61308d33ddbc8a5a98e1d0d66d2515b5'
+ 'bfed90a657aa2a85eb03f88ae1bfb28a0322bcb30a87431ce30b31849ce938eb0bb98565d49aa07c8ccddb100e8d7dadd81e730da546649a87449508768aca9c')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+ cd path-$pkgver
+ sed -n '/--- a\/pytest.ini/,/junit_family/p' ../$pkgname-fix-pytest.patch |
+ patch -Np1
+}
+
+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