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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 11:16:38 UTC 2021


    Date: Wednesday, December 1, 2021 @ 11:16:37
  Author: felixonmars
Revision: 1059129

archrelease: copy trunk to community-staging-any

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

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

Copied: python-cookiecutter/repos/community-staging-any/PKGBUILD (from rev 1059128, python-cookiecutter/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 11:16:37 UTC (rev 1059129)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=cookiecutter
+pkgname=python-cookiecutter
+pkgver=1.7.3
+pkgrel=2
+pkgdesc="A command-line utility that creates projects from project templates"
+arch=('any')
+url="https://github.com/cookiecutter/cookiecutter"
+license=('BSD')
+depends=('python-binaryornot' 'python-click' 'python-jinja' 'python-jinja-time'
+'python-poyo' 'python-requests' 'python-six' 'python-slugify')
+makedepends=('python-setuptools')
+checkdepends=('git' 'python-freezegun' 'python-pytest' 'python-pytest-mock')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('231cff1fc51c8159918728a3ca3f21607c9fb236ebf55e2fe2d620345e14451b175e56c3714a7b4c5736cc5e93f47d732691e789184e4140a7889a9e2f9a89a8')
+b2sums=('3f0630d99e784250cf39c3f9c2e28907abc2c208aefffcc52ef78f987591ee76712d858288736bd4553393385a31ceaa509ac566630fb509fa11a088da01693e')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  # we do not care about code coverage in pytest runs
+  sed -e '/addopts/d' -i setup.cfg
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list