[arch-commits] Commit in python-py/trunk (PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Wed Dec 15 09:00:08 UTC 2021


    Date: Wednesday, December 15, 2021 @ 09:00:07
  Author: arojas
Revision: 1072954

Drop python2

Modified:
  python-py/trunk/PKGBUILD

----------+
 PKGBUILD |   32 ++++++++------------------------
 1 file changed, 8 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-15 08:54:05 UTC (rev 1072953)
+++ PKGBUILD	2021-12-15 09:00:07 UTC (rev 1072954)
@@ -5,27 +5,24 @@
 # Contributor: Hervé Cauwelier <herve ¤ oursours.net>
 # Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
 
-pkgbase=python-py
-pkgname=('python-py' 'python2-py')
-pkgver=1.10.0
-pkgrel=4
+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/"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-setuptools-scm'
-             'python2-setuptools-scm' 'python-iniconfig' 'python2-iniconfig'
-             'python-apipkg' 'python2-apipkg')
+depends=('python-iniconfig' 'python-apipkg')
+makedepends=('python-setuptools' 'python-setuptools-scm')
 checkdepends=('python-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/py/archive/$pkgver.tar.gz"
+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=('570f37744c95eadeebd279a6b7d5da0899d3a5ea9f4746a5d0b0d986aa3ab64c1ba3c14e8d5ad08747353270ed1ba009465e5162e6fecd7c7c7c21c69400ca4d'
+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
-  cp -a py-$pkgver{,-py2}
 
   export LC_CTYPE=en_US.UTF-8
   export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
@@ -34,9 +31,6 @@
 build() {
   cd "$srcdir"/py-$pkgver
   python setup.py build
-
-  cd "$srcdir"/py-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
@@ -46,18 +40,8 @@
   python setup.py pytest || echo "Tests failed"
 }
 
-package_python-py() {
-  depends=('python-iniconfig' 'python-apipkg')
-
+package() {
   cd py-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-py() {
-  depends=('python2-iniconfig' 'python2-apipkg')
-
-  cd py-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}



More information about the arch-commits mailing list