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

Levente Polyak anthraxx at archlinux.org
Wed May 12 19:21:36 UTC 2021


    Date: Wednesday, May 12, 2021 @ 19:21:36
  Author: anthraxx
Revision: 932617

upgpkg: python-cookiecutter 1.7.2-5: drop unneeded markupsafe from egg info

Added:
  python-cookiecutter/trunk/drop-unneeded-markupsafe-constraints.patch
Modified:
  python-cookiecutter/trunk/PKGBUILD

--------------------------------------------+
 PKGBUILD                                   |    9 ++++++---
 drop-unneeded-markupsafe-constraints.patch |   23 +++++++++++++++++++++++
 2 files changed, 29 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-12 19:02:25 UTC (rev 932616)
+++ PKGBUILD	2021-05-12 19:21:36 UTC (rev 932617)
@@ -3,7 +3,7 @@
 _name=cookiecutter
 pkgname=python-cookiecutter
 pkgver=1.7.2
-pkgrel=4
+pkgrel=5
 pkgdesc="A command-line utility that creates projects from project templates"
 arch=('any')
 url="https://github.com/cookiecutter/cookiecutter"
@@ -15,13 +15,16 @@
 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)
+        allow-jinja-3.0.0.patch
+        drop-unneeded-markupsafe-constraints.patch)
 sha512sums=('8fb6db75703a2c6276d275817b81c0e5d5f15226236e8c5442fbda6198aaec19c3fd68c030f79f6bca55258c0c248660b32d1344f7d6b06ecf5563b43474d877'
-            'd83168b30cdec8d3cff6db05ea1e1cd27046d6e296be056571f5ddbcf7dc4574280444ca30dad224a1aee6dfa13e2fa81331f209f8940f71470e99808149c45e')
+            '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() {

Added: drop-unneeded-markupsafe-constraints.patch
===================================================================
--- drop-unneeded-markupsafe-constraints.patch	                        (rev 0)
+++ drop-unneeded-markupsafe-constraints.patch	2021-05-12 19:21:36 UTC (rev 932617)
@@ -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