[arch-commits] Commit in python-pyaml/repos/community-any (PKGBUILD PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Tue May 12 18:57:12 UTC 2020


    Date: Tuesday, May 12, 2020 @ 18:57:12
  Author: jelle
Revision: 627135

archrelease: copy trunk to community-any

Added:
  python-pyaml/repos/community-any/PKGBUILD
    (from rev 627134, python-pyaml/trunk/PKGBUILD)
Deleted:
  python-pyaml/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   83 ++++++++++++++++++++++---------------------------------------
 1 file changed, 31 insertions(+), 52 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-12 18:57:02 UTC (rev 627134)
+++ PKGBUILD	2020-05-12 18:57:12 UTC (rev 627135)
@@ -1,52 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-pyaml
-pkgname=(python-pyaml python2-pyaml)
-pkgver=20.4.0
-pkgrel=1
-pkgdesc="PyYAML-based module to produce pretty and readable YAML-serialized data"
-url="https://pypi.python.org/pypi/pyaml"
-license=('BSD')
-arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-yaml' 'python2-yaml')
-checkdepends=('python-unidecode' 'python2-unidecode')
-source=("https://pypi.io/packages/source/p/pyaml/pyaml-$pkgver.tar.gz")
-sha512sums=('432fd215e034beafc07270a6aa8b726d5a16ef8946a95c1db9a34b4f492bbe2089dffbb1ce856d3e8153ec18ac943973a23e3aa9283d53ee0b2e7ba5dcd3d317')
-
-prepare() {
-  cp -a pyaml-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir"/pyaml-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/pyaml-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir"/pyaml-$pkgver
-  python setup.py test
-
-  cd "$srcdir"/pyaml-$pkgver-py2
-  python2 -m unittest pyaml.tests.dump
-}
-
-package_python-pyaml() {
-  depends=('python-yaml')
-  optdepends=('python-unidecode: Needed if same-id objects or recursion is used within serialized data')
-
-  cd pyaml-$pkgver
-  python3 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
-}
-
-package_python2-pyaml() {
-  depends=('python2-yaml')
-  optdepends=('python2-unidecode: Needed if same-id objects or recursion is used within serialized data')
-
-  cd pyaml-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
-}

Copied: python-pyaml/repos/community-any/PKGBUILD (from rev 627134, python-pyaml/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-12 18:57:12 UTC (rev 627135)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pyaml
+pkgver=20.4.0
+pkgrel=2
+pkgdesc="PyYAML-based module to produce pretty and readable YAML-serialized data"
+url="https://pypi.python.org/pypi/pyaml"
+license=('BSD')
+arch=('any')
+depends=('python-yaml')
+makedepends=('python-setuptools' 'python-yaml')
+checkdepends=('python-unidecode')
+optdepends=('python-unidecode: Needed if same-id objects or recursion is used within serialized data')
+source=("https://pypi.io/packages/source/p/pyaml/pyaml-$pkgver.tar.gz")
+sha512sums=('432fd215e034beafc07270a6aa8b726d5a16ef8946a95c1db9a34b4f492bbe2089dffbb1ce856d3e8153ec18ac943973a23e3aa9283d53ee0b2e7ba5dcd3d317')
+
+build() {
+  cd "$srcdir"/pyaml-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/pyaml-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd pyaml-$pkgver
+  python3 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}


More information about the arch-commits mailing list