Date: Tuesday, October 27, 2020 @ 11:02:46 Author: dvzrv Revision: 734303
upgpkg: python-django-sekizai 2.0.0-3: Rebuild to remove top-level tests. Due to a missing local variable the top-level directory has not been removed pre 2.0.0-2. Remove unused patch. Modified: python-django-sekizai/trunk/PKGBUILD Deleted: python-django-sekizai/trunk/python-django-sekizai-1.0.0-disable_pep8.patch ------------------------------------------------+ PKGBUILD | 5 ++- python-django-sekizai-1.0.0-disable_pep8.patch | 30 ----------------------- 2 files changed, 3 insertions(+), 32 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-10-27 10:48:37 UTC (rev 734302) +++ PKGBUILD 2020-10-27 11:02:46 UTC (rev 734303) @@ -3,7 +3,7 @@ _name=django-sekizai pkgname=python-django-sekizai pkgver=2.0.0 -pkgrel=2 +pkgrel=3 pkgdesc="Django Template Blocks with extra functionality" arch=('any') url="https://github.com/divio/django-sekizai" @@ -10,7 +10,7 @@ license=('BSD') depends=('python-django' 'python-django-classy-tags') makedepends=('python-setuptools') -# test files are missing from 1.1.0 release +# test files are missing in pypi sdist tarball # https://github.com/divio/django-sekizai/issues/87 # source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") source=("${pkgname}-${pkgver}.tar.gz::https://github.com/divio/${_name}/archive/${pkgver}.tar.gz") @@ -33,6 +33,7 @@ } package() { + local site_packages="$(python -c "import site; print(site.getsitepackages()[0])")" cd "$pkgname-$pkgver" python setup.py install --skip-build \ --optimize=1 \ Deleted: python-django-sekizai-1.0.0-disable_pep8.patch =================================================================== --- python-django-sekizai-1.0.0-disable_pep8.patch 2020-10-27 10:48:37 UTC (rev 734302) +++ python-django-sekizai-1.0.0-disable_pep8.patch 2020-10-27 11:02:46 UTC (rev 734303) @@ -1,30 +0,0 @@ -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 - --import pep8 -- - from sekizai import context_processors - from sekizai.context import SekizaiContext - from sekizai.helpers import ( -@@ -212,17 +210,6 @@ - self.assertTrue(result.status, result.message) - return rendered - -- def test_pep8(self): -- sekizai_dir = os.path.dirname(os.path.abspath(__file__)) -- pep8style = pep8.StyleGuide() -- with CaptureStdout() as stdout: -- result = pep8style.check_files([sekizai_dir]) -- errors = stdout.getvalue() -- self.assertEqual( -- result.total_errors, 0, -- "Code not PEP8 compliant:\n{0}".format(errors) -- ) -- - def test_basic_dual_block(self): - """ - Basic dual block testing