Date: Tuesday, January 31, 2023 @ 20:06:34
Author: felixonmars
Revision: 1391515
archrelease: copy trunk to community-any
Added:
python-py/repos/community-any/PKGBUILD
(from rev 1391514, python-py/trunk/PKGBUILD)
Deleted:
python-py/repos/community-any/PKGBUILD
----------+
PKGBUILD | 91 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 44 insertions(+), 47 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-31 20:06:22 UTC (rev 1391514)
+++ PKGBUILD 2023-01-31 20:06:34 UTC (rev 1391515)
@@ -1,47 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-# Contributor: Sebastian Wiesner <lunaryorn googlemail com>
-# Contributor: Igor Ramos Tiburcio <[email protected]>
-# Contributor: Wieland Hoffmann <[email protected]>
-# Contributor: Hervé Cauwelier <herve ¤ oursours.net>
-# Contributor: Felix Kaiser <[email protected]>
-
-pkgname=python-py
-pkgver=1.11.0
-pkgrel=1
-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')
-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')
-
-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
-}
-
-build() {
- cd "$srcdir"/py-$pkgver
- python setup.py build
-}
-
-check() {
- # Known failure: https://github.com/pytest-dev/py/issues/104
-
- cd "$srcdir"/py-$pkgver
- python setup.py pytest || echo "Tests failed"
-}
-
-package() {
- cd py-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-py/repos/community-any/PKGBUILD (from rev 1391514,
python-py/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-01-31 20:06:34 UTC (rev 1391515)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Sebastian Wiesner <lunaryorn googlemail com>
+# Contributor: Igor Ramos Tiburcio <[email protected]>
+# Contributor: Wieland Hoffmann <[email protected]>
+# Contributor: Hervé Cauwelier <herve ¤ oursours.net>
+# Contributor: Felix Kaiser <[email protected]>
+
+pkgname=python-py
+pkgver=1.11.0
+_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=('git' 'python-setuptools' 'python-setuptools-scm')
+checkdepends=('python-pytest-runner')
+source=("git+https://github.com/pytest-dev/py.git#commit=$_commit")
+sha512sums=('SKIP')
+
+prepare() {
+ cd py
+ # pytest 4
+ git show f4ed62ad39f289d09b3efdfed7305f935ce60bfc -- testing | git apply -
+ rm -r py/_vendored_packages
+}
+
+build() {
+ cd py
+ python setup.py build
+}
+
+check() {
+ # Known failure: https://github.com/pytest-dev/py/issues/104
+ cd py
+ python setup.py pytest || echo "Tests failed"
+}
+
+package() {
+ cd py
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}