[arch-commits] Commit in python-packaging/repos (testing-any testing-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat Jan 30 23:59:32 UTC 2021


    Date: Saturday, January 30, 2021 @ 23:59:32
  Author: felixonmars
Revision: 406955

archrelease: copy trunk to testing-any

Added:
  python-packaging/repos/testing-any/
  python-packaging/repos/testing-any/PKGBUILD
    (from rev 406954, python-packaging/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: python-packaging/repos/testing-any/PKGBUILD (from rev 406954, python-packaging/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2021-01-30 23:59:32 UTC (rev 406955)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-packaging
+pkgname=(python-packaging python2-packaging)
+pkgver=20.9
+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' 'python2-pytest' 'python-pretend' 'python2-pretend'
+              'python-coverage' 'python2-coverage')
+source=("https://github.com/pypa/packaging/archive/$pkgver/$pkgbase-$pkgver.tar.gz")
+sha512sums=('fb71f1036cfaacbe94fdee663af31d6ad1960f73ecc95cba87b461c2d7d2ea90085853bb4682b146492d8c48f784b60ef082e3b1259269857166b143cd9a920b')
+
+build() {
+  cd packaging-$pkgver
+  python setup.py build
+  python2 setup.py build
+}
+
+check() {
+  cd packaging-$pkgver
+  python -m pytest
+  python2 -m pytest
+}
+
+package_python-packaging() {
+  depends=('python-pyparsing' 'python-six')
+
+  cd packaging-$pkgver
+  python setup.py install --root "$pkgdir"
+}
+
+package_python2-packaging() {
+  depends=('python2-pyparsing' 'python2-six')
+
+  cd packaging-$pkgver
+  python2 setup.py install --root "$pkgdir"
+}



More information about the arch-commits mailing list