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

David Runge dvzrv at archlinux.org
Fri Jan 24 16:49:00 UTC 2020


    Date: Friday, January 24, 2020 @ 16:48:59
  Author: dvzrv
Revision: 555341

upgpkg: python-django-sekizai 1.1.0-1: Upgrading to 1.1.0. Test files are still missing from pypi sdist. Adapting patch for pep8 removal.

Modified:
  python-django-sekizai/trunk/PKGBUILD
  python-django-sekizai/trunk/python-django-sekizai-1.0.0-disable_pep8.patch

------------------------------------------------+
 PKGBUILD                                       |   19 +++++++++----------
 python-django-sekizai-1.0.0-disable_pep8.patch |   17 +++++++++--------
 2 files changed, 18 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-24 16:07:51 UTC (rev 555340)
+++ PKGBUILD	2020-01-24 16:48:59 UTC (rev 555341)
@@ -2,7 +2,7 @@
 
 _name=django-sekizai
 pkgname=python-django-sekizai
-pkgver=1.0.0
+pkgver=1.1.0
 pkgrel=1
 pkgdesc="Django Template Blocks with extra functionality"
 arch=('any')
@@ -10,19 +10,18 @@
 license=('BSD')
 depends=('python-django' 'python-django-classy-tags')
 makedepends=('python-setuptools')
-# test files are missing from 1.0.0 release
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
-        "https://raw.githubusercontent.com/divio/django-sekizai/d4c382cdc7c53ad595aa4fa6fe48dd8a59ca675e/runtests.py"
+# test files are missing from 1.1.0 release
+# https://github.com/divio/django-sekizai/issues/87
+# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
+source=("${_name}-${pkgver}.tar.gz::https://github.com/divio/${_name}/archive/${pkgver}.tar.gz"
         "${pkgname}-1.0.0-disable_pep8.patch")
-sha512sums=('3ac3de68a020b030270ef10299be610c3a6934907aa003a4c1adf840f9740b7a42fa27bd605a510ffecc59140b7fdeb6bfafec8c64158cfb9e3896e87a13e889'
-            '6458f3b9d07810189d4688cc7096a00ba15d6aa4b3acac620c9b31b5af4c9f9aea9801676695d8e385499cb77b36f9a4dfd5fb18594fe219f8601378d21242de'
-            '2b6bbeb401ab2d24cb3f233500415bd04e52afddac4c99ed82b5b2aaa1168e9a2e0a04ea3dcac394e3831c81dee823d470128ab048a517ecd0dda38e90628ed1')
+sha512sums=('4445adad1b3a9c8960a9bb1712e7a8f097e55d50d1d481a3064ca72fc2c11cda6a5ebf5cfbe0ae7ecb9ec70ae474b84d5c18407194104dd6524f4cd2e276e7d4'
+            'a523d4e6870b4224cd69abb40f25d9e214566f01a7021e537fc0eb56e5f9ede61219ef377598c8fc8f787275b3f17dd9c1e31a599d92acbb6bf7f12a9b2048a5')
 
 prepare() {
   mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-  ln -svf "${PWD}/runtests.py" "$pkgname-$pkgver/"
   cd "$pkgname-$pkgver"
-  # disabling pep8 usage in the tests, as it is super outdated:
+  # disabling pep8 usage in the tests, as it is super ancient:
   # https://github.com/divio/django-sekizai/issues/85
   patch -Np1 -i "../${pkgname}-1.0.0-disable_pep8.patch"
 }
@@ -45,5 +44,5 @@
     --prefix=/usr \
     --root="${pkgdir}"
   install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }

Modified: python-django-sekizai-1.0.0-disable_pep8.patch
===================================================================
--- python-django-sekizai-1.0.0-disable_pep8.patch	2020-01-24 16:07:51 UTC (rev 555340)
+++ python-django-sekizai-1.0.0-disable_pep8.patch	2020-01-24 16:48:59 UTC (rev 555341)
@@ -1,15 +1,16 @@
-diff -ruN a/sekizai/tests.py b/sekizai/tests.py
---- a/sekizai/tests.py	2019-04-11 13:58:21.000000000 +0200
-+++ b/sekizai/tests.py	2020-01-17 22:52:11.701137106 +0100
-@@ -9,7 +9,6 @@
- from django.conf import settings
+diff -ruN a/tests/test_core.py b/tests/test_core.py
+--- a/tests/test_core.py	2020-01-22 10:39:39.000000000 +0100
++++ b/tests/test_core.py	2020-01-24 09:29:48.120558405 +0100
+@@ -8,8 +8,6 @@
+ from django.template.engine import Engine
  from django.template.loader import render_to_string
- from django.template.engine import Engine
+ 
 -import pep8
- 
+-
  from sekizai import context_processors
  from sekizai.context import SekizaiContext
-@@ -212,17 +211,6 @@
+ from sekizai.helpers import (
+@@ -212,17 +210,6 @@
          self.assertTrue(result.status, result.message)
          return rendered
  



More information about the arch-commits mailing list