Date: Monday, April 10, 2023 @ 15:51:18
  Author: foutrelis
Revision: 1444456

archrelease: copy trunk to community-staging-any

Added:
  python-jinja/repos/community-staging-any/PKGBUILD
    (from rev 1444455, python-jinja/trunk/PKGBUILD)
  python-jinja/repos/community-staging-any/pytest-7.2.patch
    (from rev 1444455, python-jinja/trunk/pytest-7.2.patch)
Deleted:
  python-jinja/repos/community-staging-any/PKGBUILD

------------------+
 PKGBUILD         |   96 ++++++++++++++++++++++++++++-------------------------
 pytest-7.2.patch |   38 ++++++++++++++++++++
 2 files changed, 90 insertions(+), 44 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-10 15:50:50 UTC (rev 1444455)
+++ PKGBUILD    2023-04-10 15:51:18 UTC (rev 1444456)
@@ -1,44 +0,0 @@
-# Maintainer: Evangelos Foutras <[email protected]>
-# Contributor: David Runge <[email protected]>
-# Contributor: Peter Baldwin <[email protected]>
-
-pkgname=python-jinja
-pkgver=3.1.2
-pkgrel=3
-epoch=1
-pkgdesc="A simple pythonic template language written in Python"
-arch=('any')
-url="https://palletsprojects.com/p/jinja/";
-license=('BSD')
-depends=('python-markupsafe')
-makedepends=('python-setuptools')
-optdepends=('python-babel: for i18n support')
-checkdepends=('python-pytest')
-source=(https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-$pkgver.tar.gz)
-sha256sums=('31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852')
-
-build() {
-  cd Jinja2-$pkgver
-  python3 setup.py build
-}
-
-check() {
-  cd Jinja2-$pkgver
-  # https://github.com/pypa/setuptools/issues/2466
-  PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=build/lib pytest \
-    --deselect tests/test_loader.py::test_package_dir_list \
-    --deselect tests/test_loader.py::test_package_dir_source \
-    --deselect tests/test_loader.py::test_package_file_list \
-    --deselect tests/test_loader.py::test_package_file_source \
-    --deselect tests/test_loader.py::test_package_zip_list \
-    --deselect tests/test_loader.py::test_package_zip_omit_curdir \
-    --deselect tests/test_loader.py::test_package_zip_source
-}
-
-package() {
-  cd Jinja2-$pkgver
-  python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 LICENSE.rst -t "$pkgdir/usr/share/licenses/$pkgname"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-jinja/repos/community-staging-any/PKGBUILD (from rev 1444455, 
python-jinja/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-04-10 15:51:18 UTC (rev 1444456)
@@ -0,0 +1,52 @@
+# Maintainer: Evangelos Foutras <[email protected]>
+# Contributor: David Runge <[email protected]>
+# Contributor: Peter Baldwin <[email protected]>
+
+pkgname=python-jinja
+pkgver=3.1.2
+pkgrel=4
+epoch=1
+pkgdesc="A simple pythonic template language written in Python"
+arch=('any')
+url="https://palletsprojects.com/p/jinja/";
+license=('BSD')
+depends=('python-markupsafe')
+makedepends=('python-setuptools')
+optdepends=('python-babel: for i18n support')
+checkdepends=('python-pytest')
+source=(https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-$pkgver.tar.gz
+        pytest-7.2.patch)
+sha256sums=('31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852'
+            'fe9f7ca84fdeb06d10fdfc22a7cc66efe927ebd98e4cbb2e270850af32fbb6ce')
+
+prepare() {
+  cd Jinja2-$pkgver
+  # https://github.com/pallets/jinja/issues/1758
+  patch -Np1 -i ../pytest-7.2.patch
+}
+
+build() {
+  cd Jinja2-$pkgver
+  python3 setup.py build
+}
+
+check() {
+  cd Jinja2-$pkgver
+  # https://github.com/pypa/setuptools/issues/2466
+  PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=build/lib pytest \
+    --deselect tests/test_loader.py::test_package_dir_list \
+    --deselect tests/test_loader.py::test_package_dir_source \
+    --deselect tests/test_loader.py::test_package_file_list \
+    --deselect tests/test_loader.py::test_package_file_source \
+    --deselect tests/test_loader.py::test_package_zip_list \
+    --deselect tests/test_loader.py::test_package_zip_omit_curdir \
+    --deselect tests/test_loader.py::test_package_zip_source
+}
+
+package() {
+  cd Jinja2-$pkgver
+  python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE.rst -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: python-jinja/repos/community-staging-any/pytest-7.2.patch (from rev 
1444455, python-jinja/trunk/pytest-7.2.patch)
===================================================================
--- pytest-7.2.patch                            (rev 0)
+++ pytest-7.2.patch    2023-04-10 15:51:18 UTC (rev 1444456)
@@ -0,0 +1,38 @@
+From 3fadee01b712580d811bdd2cb06cd8a1b5ee0821 Mon Sep 17 00:00:00 2001
+From: David Lord <[email protected]>
+Date: Thu, 29 Dec 2022 10:39:00 -0800
+Subject: [PATCH] update dependencies
+
+---
+ tests/test_loader.py | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/tests/test_loader.py b/tests/test_loader.py
+index 04c921d..77d686e 100644
+--- a/tests/test_loader.py
++++ b/tests/test_loader.py
+@@ -183,6 +183,7 @@ class TestFileSystemLoader:
+ 
+ class TestModuleLoader:
+     archive = None
++    mod_env = None
+ 
+     def compile_down(self, prefix_loader, zip="deflated"):
+         log = []
+@@ -196,13 +197,14 @@ class TestModuleLoader:
+         self.mod_env = Environment(loader=loaders.ModuleLoader(self.archive))
+         return "".join(log)
+ 
+-    def teardown(self):
+-        if hasattr(self, "mod_env"):
++    def teardown_method(self):
++        if self.archive is not None:
+             if os.path.isfile(self.archive):
+                 os.remove(self.archive)
+             else:
+                 shutil.rmtree(self.archive)
+             self.archive = None
++            self.mod_env = None
+ 
+     def test_log(self, prefix_loader):
+         log = self.compile_down(prefix_loader)

Reply via email to