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

Eli Schwartz eschwartz at archlinux.org
Thu Nov 1 03:22:27 UTC 2018


    Date: Thursday, November 1, 2018 @ 03:22:26
  Author: eschwartz
Revision: 400915

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  108 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 60 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-01 03:22:07 UTC (rev 400914)
+++ PKGBUILD	2018-11-01 03:22:26 UTC (rev 400915)
@@ -1,48 +0,0 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-# Contributor: Caleb Maclennan <caleb at alerque.com>
-# Contributor: Artem Vorotnikov <artem at vorotnikov.me>
-# Contributor: Andy Weidenbaum <archbaum at gmail.com>
-
-_pkgname=pytoml
-pkgbase=python-pytoml
-pkgname=('python-pytoml' 'python2-pytoml')
-pkgver=0.1.19
-pkgrel=1
-pkgdesc="A TOML-0.4.0 parser/writer for Python."
-arch=('any')
-url="https://github.com/avakar/${_pkgname}"
-license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest' 'python2-pytest')
-source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
-sha512sums=('c7f1c8f95e1578efbbaaa22c9a1f92c58ac0f6ac6d771eb97c8aeb144ef6aed141555e1d45bda73e5712e4cbe375c72061d02a83ceb13e4fd0e0921a967bf50b')
-
-build() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python setup.py build
-    python2 setup.py build
-}
-
-check() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python -m pytest
-    python2 -m pytest
-}
-
-package_python-pytoml() {
-    depends=('python')
-
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}
-
-package_python2-pytoml() {
-    depends=('python2')
-
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-    python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: python-pytoml/repos/community-any/PKGBUILD (from rev 400914, python-pytoml/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-11-01 03:22:26 UTC (rev 400915)
@@ -0,0 +1,60 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Artem Vorotnikov <artem at vorotnikov.me>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+
+_pkgname=pytoml
+pkgbase=python-pytoml
+pkgname=('python-pytoml' 'python2-pytoml')
+pkgver=0.1.20
+_test_commit=b212790a6b7367489f389411bda009e5ff765f20
+pkgrel=1
+pkgdesc="A TOML-0.4.0 parser/writer for Python."
+arch=('any')
+url="https://github.com/avakar/${_pkgname}"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
+        "https://github.com/avakar/toml-test/archive/${_test_commit}.tar.gz")
+sha512sums=('9b913219e65e2329302455a1457a39cf5eb37e04c03025dfdbb81db4ffe60b547fb7e64fc961608004900365ccfddb4225042105fa2db8bd2e393fa2797fc24f'
+            '94dc6ddadac2c75095b1a9ef7c4f68e38908bfadba53203b75c29c7aa8d3c387c1f05cf9915c2c63eeee869f4290cdcef4b8768cb36dcd4031168b5af549bb54')
+
+prepare() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    rm -rf test/toml-test
+    ln -sf "${srcdir}"/toml-test-${_test_commit} test/toml-test
+}
+
+build() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py build
+    python2 setup.py build
+}
+
+check() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python -m pytest
+    PYTHONPATH=$PWD python test/test.py
+    python2 -m pytest
+    PYTHONPATH=$PWD python2 test/test.py
+}
+
+package_python-pytoml() {
+    depends=('python')
+
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-pytoml() {
+    depends=('python2')
+
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+    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