[arch-commits] Commit in python-tomlkit/repos (2 files)

Eli Schwartz eschwartz at archlinux.org
Mon Oct 28 22:04:40 UTC 2019


    Date: Monday, October 28, 2019 @ 22:04:38
  Author: eschwartz
Revision: 520870

archrelease: copy trunk to community-staging-any

Added:
  python-tomlkit/repos/community-staging-any/
  python-tomlkit/repos/community-staging-any/PKGBUILD
    (from rev 520869, python-tomlkit/trunk/PKGBUILD)

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

Copied: python-tomlkit/repos/community-staging-any/PKGBUILD (from rev 520869, python-tomlkit/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-28 22:04:38 UTC (rev 520870)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=tomlkit
+pkgname=python-tomlkit
+pkgver=0.5.8
+pkgrel=2
+pkgdesc="Style-preserving TOML library for Python"
+url="https://github.com/sdispater/tomlkit"
+license=('MIT')
+arch=('any')
+depends=('python')
+#makedepends=('python-dephell')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha512sums=('e224ad4522279ea94977eb60739d2a43ddbb2d60bac5d00eaa0a93e06cded14eb030c3438ec4be982437c75cc317d89c674fc9e00239e12f41a4ac57285be3e1')
+
+prepare() {
+  cd tomlkit-$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 tomlkit-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd tomlkit-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd tomlkit-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list