[arch-commits] Commit in python-django-sekizai/repos/community-any (4 files)

David Runge dvzrv at archlinux.org
Wed Sep 2 22:50:56 UTC 2020


    Date: Wednesday, September 2, 2020 @ 22:50:56
  Author: dvzrv
Revision: 697199

archrelease: copy trunk to community-any

Added:
  python-django-sekizai/repos/community-any/PKGBUILD
    (from rev 697198, python-django-sekizai/trunk/PKGBUILD)
  python-django-sekizai/repos/community-any/python-django-sekizai-1.0.0-disable_pep8.patch
    (from rev 697198, python-django-sekizai/trunk/python-django-sekizai-1.0.0-disable_pep8.patch)
Deleted:
  python-django-sekizai/repos/community-any/PKGBUILD
  python-django-sekizai/repos/community-any/python-django-sekizai-1.0.0-disable_pep8.patch

------------------------------------------------+
 PKGBUILD                                       |   87 +++++++++++------------
 python-django-sekizai-1.0.0-disable_pep8.patch |   60 +++++++--------
 2 files changed, 75 insertions(+), 72 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-02 22:50:46 UTC (rev 697198)
+++ PKGBUILD	2020-09-02 22:50:56 UTC (rev 697199)
@@ -1,42 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=django-sekizai
-pkgname=python-django-sekizai
-pkgver=2.0.0
-pkgrel=1
-pkgdesc="Django Template Blocks with extra functionality"
-arch=('any')
-url="https://github.com/divio/django-sekizai"
-license=('BSD')
-depends=('python-django' 'python-django-classy-tags')
-makedepends=('python-setuptools')
-# 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=("${pkgname}-${pkgver}.tar.gz::https://github.com/divio/${_name}/archive/${pkgver}.tar.gz")
-sha512sums=('edac88decc17e98eb30e399cb6e3a2b21941c920163ef8c8d412fec28e5137e470401b65189a9f0cbb2adbce240a4c8c2cb03e0f9735d1de2d5445fcf32f6e03')
-b2sums=('a1760cdcb234400af4bc5c0bc69699439a9082cda49731992ad57cf162beba7d88e4e06d826a6fcf7e34af11f5ac42e6c7f83ce058cb0af0566c50a5cc3a9efc')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  python setup.py test
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}"
-  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}

Copied: python-django-sekizai/repos/community-any/PKGBUILD (from rev 697198, python-django-sekizai/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-09-02 22:50:56 UTC (rev 697199)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=django-sekizai
+pkgname=python-django-sekizai
+pkgver=2.0.0
+pkgrel=2
+pkgdesc="Django Template Blocks with extra functionality"
+arch=('any')
+url="https://github.com/divio/django-sekizai"
+license=('BSD')
+depends=('python-django' 'python-django-classy-tags')
+makedepends=('python-setuptools')
+# 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=("${pkgname}-${pkgver}.tar.gz::https://github.com/divio/${_name}/archive/${pkgver}.tar.gz")
+sha512sums=('edac88decc17e98eb30e399cb6e3a2b21941c920163ef8c8d412fec28e5137e470401b65189a9f0cbb2adbce240a4c8c2cb03e0f9735d1de2d5445fcf32f6e03')
+b2sums=('a1760cdcb234400af4bc5c0bc69699439a9082cda49731992ad57cf162beba7d88e4e06d826a6fcf7e34af11f5ac42e6c7f83ce058cb0af0566c50a5cc3a9efc')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  python setup.py test
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+                          --optimize=1 \
+                          --root="${pkgdir}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  # remove conflicting test files
+  # https://github.com/divio/django-sekizai/issues/97
+  rm -rvf "${pkgdir}/${site_packages}/tests"
+}

Deleted: python-django-sekizai-1.0.0-disable_pep8.patch
===================================================================
--- python-django-sekizai-1.0.0-disable_pep8.patch	2020-09-02 22:50:46 UTC (rev 697198)
+++ python-django-sekizai-1.0.0-disable_pep8.patch	2020-09-02 22:50:56 UTC (rev 697199)
@@ -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

Copied: python-django-sekizai/repos/community-any/python-django-sekizai-1.0.0-disable_pep8.patch (from rev 697198, python-django-sekizai/trunk/python-django-sekizai-1.0.0-disable_pep8.patch)
===================================================================
--- python-django-sekizai-1.0.0-disable_pep8.patch	                        (rev 0)
+++ python-django-sekizai-1.0.0-disable_pep8.patch	2020-09-02 22:50:56 UTC (rev 697199)
@@ -0,0 +1,30 @@
+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


More information about the arch-commits mailing list