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

Felix Yan felixonmars at archlinux.org
Sun Nov 29 13:02:40 UTC 2020


    Date: Sunday, November 29, 2020 @ 13:02:39
  Author: felixonmars
Revision: 402395

upgpkg: python-packaging 20.5-1

Modified:
  python-packaging/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-29 12:28:47 UTC (rev 402394)
+++ PKGBUILD	2020-11-29 13:02:39 UTC (rev 402395)
@@ -2,18 +2,28 @@
 
 pkgbase=python-packaging
 pkgname=(python-packaging python2-packaging)
-pkgver=20.4
-pkgrel=4
+pkgver=20.5
+pkgrel=1
 pkgdesc="Core utilities for Python packages"
 arch=('any')
 url="https://github.com/pypa/packaging"
 license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pyparsing' 'python2-pyparsing')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pretend' 'python2-pretend'
+makedepends=('python-dephell' 'python-setuptools' 'python2-setuptools' 'python-pyparsing'
+             'python2-pyparsing')
+checkdepends=('python-pytest' 'python2-pytest' 'python-pretend' 'python2-pretend'
               'python-coverage' 'python2-coverage')
-source=("https://pypi.io/packages/source/p/packaging/packaging-$pkgver.tar.gz")
-sha512sums=('d53912041a9950efb5d221fc968adc328c2ef1e54ec9806d2158fd6db1b170e37afb05213f5750b10c59927504083ca3781c958caa0c802b1c7c0fe1ac1682a4')
+source=("https://github.com/pypa/packaging/archive/$pkgver/$pkgbase-$pkgver.tar.gz")
+sha512sums=('ef3c4853c30d9635b9372d6861cc0df8f7fc5a1d784e5f3effe3f315da0f24662ac939e70f55c6e9bb8864da95b9f75bc0df093f12c0f5c2af654b5354a5f081')
 
+prepare() {
+  cd packaging-$pkgver
+
+  # poetry-generated setup.py is badly broken in several ways, including
+  # distribution of tests in the built package as well as using distutils for
+  # bad metadata. See https://github.com/sdispater/poetry/issues/866
+  dephell deps convert --from pyproject.toml --to setup.py
+}
+
 build() {
   cd packaging-$pkgver
   python setup.py build
@@ -22,8 +32,8 @@
 
 check() {
   cd packaging-$pkgver
-  python setup.py pytest
-  python2 setup.py pytest
+  python -m pytest
+  python2 -m pytest
 }
 
 package_python-packaging() {



More information about the arch-commits mailing list