[arch-commits] Commit in python-pyaml/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Dec 11 11:40:09 UTC 2019
Date: Wednesday, December 11, 2019 @ 11:40:09
Author: felixonmars
Revision: 536878
archrelease: copy trunk to community-testing-any
Added:
python-pyaml/repos/community-testing-any/
python-pyaml/repos/community-testing-any/PKGBUILD
(from rev 536877, python-pyaml/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-pyaml/repos/community-testing-any/PKGBUILD (from rev 536877, python-pyaml/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2019-12-11 11:40:09 UTC (rev 536878)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pyaml
+pkgname=(python-pyaml python2-pyaml)
+pkgver=19.12.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=('c8d5c77b1cd62b15b469468a472bd615960bdb0465c205bc9ca445c39a56c4de6c20a529e75cec60b4dfea54782966cc861ff627e74c1de37771928d1e551b98')
+
+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
+}
More information about the arch-commits
mailing list