Date: Tuesday, January 31, 2023 @ 20:06:22
  Author: felixonmars
Revision: 1391514

upgpkg: python-py 1.11.0-2

Modified:
  python-py/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++++---------------
 1 file changed, 12 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 20:03:23 UTC (rev 1391513)
+++ PKGBUILD    2023-01-31 20:06:22 UTC (rev 1391514)
@@ -7,41 +7,38 @@
 
 pkgname=python-py
 pkgver=1.11.0
-pkgrel=1
+_commit=447bac514febbb5433963582103d48bb27b3db17
+pkgrel=2
 pkgdesc="library with cross-python path, ini-parsing, io, code, log facilities"
 arch=('any')
 license=('MIT')
 url="https://py.readthedocs.io/";
 depends=('python-iniconfig' 'python-apipkg')
-makedepends=('python-setuptools' 'python-setuptools-scm')
+makedepends=('git' 'python-setuptools' 'python-setuptools-scm')
 checkdepends=('python-pytest-runner')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/py/archive/$pkgver.tar.gz";
-        py-pytest-4.patch::https://github.com/pytest-dev/py/pull/222.patch)
-sha512sums=('7307e41e0120b8d4cc9b77fd4b5fc93cb649e05c7bd41002edfead20cf027a32956faffd764dff9a95e97600604ae76b25c472a99b0a44a7842c862c8846717b'
-            
'cabfdb8cd2e229bfbd5e770a145dde60f9e649f683f8e3d57d2cf393a4d246fcb0eae4596cbbee010de97bfca26470a5dd4280d0f9e34d7f30df19b09f5ea8b6')
+source=("git+https://github.com/pytest-dev/py.git#commit=$_commit";)
+sha512sums=('SKIP')
 
 prepare() {
-  patch -d py-$pkgver -p1 -i ../py-pytest-4.patch || :  # Failures are doc only
-  rm -r py-$pkgver/py/_vendored_packages
-
-  export LC_CTYPE=en_US.UTF-8
-  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+  cd py
+  # pytest 4
+  git show f4ed62ad39f289d09b3efdfed7305f935ce60bfc -- testing | git apply -
+  rm -r py/_vendored_packages
 }
 
 build() {
-  cd "$srcdir"/py-$pkgver
+  cd py
   python setup.py build
 }
 
 check() {
   # Known failure: https://github.com/pytest-dev/py/issues/104
-
-  cd "$srcdir"/py-$pkgver
+  cd py
   python setup.py pytest || echo "Tests failed"
 }
 
 package() {
-  cd py-$pkgver
+  cd py
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }

Reply via email to