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

David Runge dvzrv at archlinux.org
Fri May 14 17:45:10 UTC 2021


    Date: Friday, May 14, 2021 @ 17:45:10
  Author: dvzrv
Revision: 934276

archrelease: copy trunk to community-any

Added:
  python-cookiecutter/repos/community-any/PKGBUILD
    (from rev 934275, python-cookiecutter/trunk/PKGBUILD)
  python-cookiecutter/repos/community-any/allow-jinja-3.0.0.patch
    (from rev 934275, python-cookiecutter/trunk/allow-jinja-3.0.0.patch)
  python-cookiecutter/repos/community-any/drop-unneeded-markupsafe-constraints.patch
    (from rev 934275, python-cookiecutter/trunk/drop-unneeded-markupsafe-constraints.patch)
Deleted:
  python-cookiecutter/repos/community-any/PKGBUILD
  python-cookiecutter/repos/community-any/allow-jinja-3.0.0.patch
  python-cookiecutter/repos/community-any/drop-unneeded-markupsafe-constraints.patch

--------------------------------------------+
 PKGBUILD                                   |   94 ++++++++++++---------------
 allow-jinja-3.0.0.patch                    |   44 ++++++------
 drop-unneeded-markupsafe-constraints.patch |   46 ++++++-------
 3 files changed, 90 insertions(+), 94 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-14 17:44:56 UTC (rev 934275)
+++ PKGBUILD	2021-05-14 17:45:10 UTC (rev 934276)
@@ -1,49 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=cookiecutter
-pkgname=python-cookiecutter
-pkgver=1.7.2
-pkgrel=5
-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
-        drop-unneeded-markupsafe-constraints.patch)
-sha512sums=('8fb6db75703a2c6276d275817b81c0e5d5f15226236e8c5442fbda6198aaec19c3fd68c030f79f6bca55258c0c248660b32d1344f7d6b06ecf5563b43474d877'
-            'd83168b30cdec8d3cff6db05ea1e1cd27046d6e296be056571f5ddbcf7dc4574280444ca30dad224a1aee6dfa13e2fa81331f209f8940f71470e99808149c45e'
-            'ec7ff08abed877afd163703dbc362c0cb47bb97539ac464daeaef9b63445a03340a1f35b541977ab4b39f832c13c3846e81890a24b19a624266917abb92a21ee')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-  patch -Np1 -d "$pkgname-$pkgver" <allow-jinja-3.0.0.patch
-  patch -Np1 -d "$pkgname-$pkgver" <drop-unneeded-markupsafe-constraints.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/PKGBUILD (from rev 934275, python-cookiecutter/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-14 17:45:10 UTC (rev 934276)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=cookiecutter
+pkgname=python-cookiecutter
+pkgver=1.7.3
+pkgrel=1
+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}"
+}

Deleted: allow-jinja-3.0.0.patch
===================================================================
--- allow-jinja-3.0.0.patch	2021-05-14 17:44:56 UTC (rev 934275)
+++ allow-jinja-3.0.0.patch	2021-05-14 17:45:10 UTC (rev 934276)
@@ -1,22 +0,0 @@
-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',

Copied: python-cookiecutter/repos/community-any/allow-jinja-3.0.0.patch (from rev 934275, 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-14 17:45:10 UTC (rev 934276)
@@ -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',

Deleted: drop-unneeded-markupsafe-constraints.patch
===================================================================
--- drop-unneeded-markupsafe-constraints.patch	2021-05-14 17:44:56 UTC (rev 934275)
+++ drop-unneeded-markupsafe-constraints.patch	2021-05-14 17:45:10 UTC (rev 934276)
@@ -1,23 +0,0 @@
-From cf0495159a12ca5aa146b625b0083681e9636932 Mon Sep 17 00:00:00 2001
-From: Sorin Sbarnea <ssbarnea at redhat.com>
-Date: Wed, 12 May 2021 14:31:25 +0100
-Subject: [PATCH] Remove direct dependency on markupsafe
-
-This sorts potential dependency conflicts with jinja2 which is the
-only place where markupsafe is used (since version 2.7)
----
- setup.py | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/setup.py b/setup.py
-index f36f57be..124dc40c 100644
---- a/setup.py
-+++ b/setup.py
-@@ -16,7 +16,6 @@
-     'python-slugify>=4.0.0',
-     'requests>=2.23.0',
-     'six>=1.10',
--    'MarkupSafe<2.0.0',
- ]
- 
- setup(

Copied: python-cookiecutter/repos/community-any/drop-unneeded-markupsafe-constraints.patch (from rev 934275, python-cookiecutter/trunk/drop-unneeded-markupsafe-constraints.patch)
===================================================================
--- drop-unneeded-markupsafe-constraints.patch	                        (rev 0)
+++ drop-unneeded-markupsafe-constraints.patch	2021-05-14 17:45:10 UTC (rev 934276)
@@ -0,0 +1,23 @@
+From cf0495159a12ca5aa146b625b0083681e9636932 Mon Sep 17 00:00:00 2001
+From: Sorin Sbarnea <ssbarnea at redhat.com>
+Date: Wed, 12 May 2021 14:31:25 +0100
+Subject: [PATCH] Remove direct dependency on markupsafe
+
+This sorts potential dependency conflicts with jinja2 which is the
+only place where markupsafe is used (since version 2.7)
+---
+ setup.py | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index f36f57be..124dc40c 100644
+--- a/setup.py
++++ b/setup.py
+@@ -16,7 +16,6 @@
+     'python-slugify>=4.0.0',
+     'requests>=2.23.0',
+     'six>=1.10',
+-    'MarkupSafe<2.0.0',
+ ]
+ 
+ setup(



More information about the arch-commits mailing list