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

Antonio Rojas arojas at gemini.archlinux.org
Mon Nov 29 19:08:45 UTC 2021


    Date: Monday, November 29, 2021 @ 19:08:44
  Author: arojas
Revision: 429466

Update to 0.12.0, drop python2

Modified:
  python-pep517/trunk/PKGBUILD

----------+
 PKGBUILD |   29 +++++++----------------------
 1 file changed, 7 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-29 19:08:28 UTC (rev 429465)
+++ PKGBUILD	2021-11-29 19:08:44 UTC (rev 429466)
@@ -1,18 +1,17 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-pep517
-pkgname=('python-pep517' 'python2-pep517')
-pkgver=0.11.0
+pkgname=python-pep517
+pkgver=0.12.0
 pkgrel=1
 pkgdesc="Wrappers to build Python packages using PEP 517 hooks"
 arch=('any')
 license=('MIT')
 url="https://github.com/takluyver/pep517"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-tomli' 'python2-toml'
-             'python2-importlib-metadata' 'python2-zipp')
-checkdepends=('python-mock' 'python-pytest-flake8' 'python-testpath' 'python-pip')
+depends=('python-tomli')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-pytest-flake8' 'python-testpath' 'python-pip' 'python-flit-core')
 source=("https://pypi.io/packages/source/p/pep517/pep517-$pkgver.tar.gz")
-sha512sums=('4981aacef2b7bf86205a93753699c1af557a1af6e33214d8ecc99922ba48988a0cedd0e3194839f790c37b751d6caf3c85fd7538f0e33d15a7c97cf20174e4fd')
+sha512sums=('5af1fd2e35414d2a91104c967c48e554c9f838d598e14bc55f9a824c16ba484c817a90065b6734568fc77660bd85b309347392774fb4d54dd969dab8680768e7')
 
 prepare() {
   # Copied from openSUSE: 
@@ -21,15 +20,11 @@
   # and the test suites of any dependencies. Tracking at:
   # https://github.com/pypa/pep517/issues/101
   sed -i "s/ '--ignore-installed',//" pep517-$pkgver/pep517/envbuild.py
-  cp -a pep517-$pkgver{,-py2}
 }
 
 build() {
   cd "$srcdir"/pep517-$pkgver
   python setup.py build
-
-  cd "$srcdir"/pep517-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
@@ -39,18 +34,8 @@
   pytest --deselect setup.py --deselect tests/test_meta.py::test_classic_package
 }
 
-package_python-pep517() {
-  depends=('python-tomli')
-
+package() {
   cd pep517-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-pep517() {
-  depends=('python2-toml' 'python2-importlib-metadata' 'python2-zipp')
-
-  cd pep517-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}



More information about the arch-commits mailing list