Date: Saturday, January 11, 2020 @ 18:32:36
  Author: dvzrv
Revision: 552012

archrelease: copy trunk to community-any

Added:
  python-inflect/repos/community-any/
  python-inflect/repos/community-any/PKGBUILD
    (from rev 552011, python-inflect/trunk/PKGBUILD)

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

Copied: python-inflect/repos/community-any/PKGBUILD (from rev 552011, 
python-inflect/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD                              (rev 0)
+++ community-any/PKGBUILD      2020-01-11 18:32:36 UTC (rev 552012)
@@ -0,0 +1,44 @@
+# Maintainer: David Runge <dv...@archlinux.org>
+
+_name=inflect
+pkgname=python-inflect
+pkgver=4.0.0
+pkgrel=1
+pkgdesc="Correctly generate plurals, singular nouns, ordinals, indefinite 
articles"
+arch=('any')
+url="https://github.com/jazzband/inflect";
+license=('MIT')
+depends=('python')
+makedepends=('python-dephell' 'python-setuptools')
+checkdepends=('flake8' 'python-black' 'python-coverage' 'python-pytest'
+'python-pytest-black' 'python-pytest-cov' 'python-pytest-flake8')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz";)
+sha512sums=('7d9ef9389b9301e596165fcb1774467ddeb421636094a0f0cebbcaa11558b4529ccb90644e1097f91cff3316911c98f4bb1df92180193a5313ca7da91a282e5c')
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v --ignore setup.py
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 {{CHANGES,README}.rst,CONTRIBUTING.md} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}

Reply via email to