[arch-commits] Commit in python-cookiecutter/repos/community-any (3 files)

Evangelos Foutras foutrelis at archlinux.org
Wed May 12 18:47:10 UTC 2021


    Date: Wednesday, May 12, 2021 @ 18:47:10
  Author: foutrelis
Revision: 932598

archrelease: copy trunk to community-any

Added:
  python-cookiecutter/repos/community-any/PKGBUILD
    (from rev 932597, python-cookiecutter/trunk/PKGBUILD)
  python-cookiecutter/repos/community-any/allow-jinja-3.0.0.patch
    (from rev 932597, python-cookiecutter/trunk/allow-jinja-3.0.0.patch)
Deleted:
  python-cookiecutter/repos/community-any/PKGBUILD

-------------------------+
 PKGBUILD                |   89 +++++++++++++++++++++++-----------------------
 allow-jinja-3.0.0.patch |   22 +++++++++++
 2 files changed, 68 insertions(+), 43 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-12 18:47:05 UTC (rev 932597)
+++ PKGBUILD	2021-05-12 18:47:10 UTC (rev 932598)
@@ -1,43 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=cookiecutter
-pkgname=python-cookiecutter
-pkgver=1.7.2
-pkgrel=3
-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-future' 'python-jinja'
-'python-jinja-time' 'python-poyo' 'python-requests' 'python-slugify'
-'python-whichcraft')
-makedepends=('python-setuptools')
-checkdepends=('git' 'python-freezegun' 'python-pytest' 'python-pytest-cov'
-'python-pytest-mock')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('8fb6db75703a2c6276d275817b81c0e5d5f15226236e8c5442fbda6198aaec19c3fd68c030f79f6bca55258c0c248660b32d1344f7d6b06ecf5563b43474d877')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
-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}"
-}

Copied: python-cookiecutter/repos/community-any/PKGBUILD (from rev 932597, python-cookiecutter/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-12 18:47:10 UTC (rev 932598)
@@ -0,0 +1,46 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=cookiecutter
+pkgname=python-cookiecutter
+pkgver=1.7.2
+pkgrel=4
+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-future' 'python-jinja'
+'python-jinja-time' 'python-poyo' 'python-requests' 'python-slugify'
+'python-whichcraft')
+makedepends=('python-setuptools')
+checkdepends=('git' 'python-freezegun' 'python-pytest' 'python-pytest-cov'
+'python-pytest-mock')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
+        allow-jinja-3.0.0.patch)
+sha512sums=('8fb6db75703a2c6276d275817b81c0e5d5f15226236e8c5442fbda6198aaec19c3fd68c030f79f6bca55258c0c248660b32d1344f7d6b06ecf5563b43474d877'
+            'd83168b30cdec8d3cff6db05ea1e1cd27046d6e296be056571f5ddbcf7dc4574280444ca30dad224a1aee6dfa13e2fa81331f209f8940f71470e99808149c45e')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+  patch -Np1 -d "$pkgname-$pkgver" <allow-jinja-3.0.0.patch
+}
+
+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}"
+}

Copied: python-cookiecutter/repos/community-any/allow-jinja-3.0.0.patch (from rev 932597, python-cookiecutter/trunk/allow-jinja-3.0.0.patch)
===================================================================
--- allow-jinja-3.0.0.patch	                        (rev 0)
+++ allow-jinja-3.0.0.patch	2021-05-12 18:47:10 UTC (rev 932598)
@@ -0,0 +1,22 @@
+From c48119dd015274cc645f27396e645dcc1edb9dca Mon Sep 17 00:00:00 2001
+From: Wouter De Borger <wouter.deborger at inmanta.com>
+Date: Wed, 12 May 2021 15:24:42 +0200
+Subject: [PATCH] allow jinja 3.0.0 (#1548)
+
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index fca2a82..f36f57b 100644
+--- a/setup.py
++++ b/setup.py
+@@ -9,7 +9,7 @@ with open('README.md', encoding='utf-8') as readme_file:
+ 
+ requirements = [
+     'binaryornot>=0.4.4',
+-    'Jinja2<3.0.0',
++    'Jinja2<4.0.0',
+     'click>=7.0',
+     'pyyaml>=5.3.1',
+     'jinja2-time>=0.2.0',



More information about the arch-commits mailing list