diff options
Diffstat (limited to 'testing/py3-shortuuid')
-rw-r--r-- | testing/py3-shortuuid/APKBUILD | 14 | ||||
-rw-r--r-- | testing/py3-shortuuid/fix-pep8-tests.patch | 38 |
2 files changed, 48 insertions, 4 deletions
diff --git a/testing/py3-shortuuid/APKBUILD b/testing/py3-shortuuid/APKBUILD index 933dbbdc18..4f5597eb6f 100644 --- a/testing/py3-shortuuid/APKBUILD +++ b/testing/py3-shortuuid/APKBUILD @@ -2,14 +2,15 @@ pkgname=py3-shortuuid _pkgname=shortuuid pkgver=0.5.0 -pkgrel=1 +pkgrel=2 pkgdesc="Python library that generates short, pretty, unambiguous unique IDs" url="https://pypi.python.org/pypi/shortuuid/" arch="noarch" -license="BSD" +license="BSD-3-Clause" depends="python3" makedepends="py3-setuptools" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz + fix-pep8-tests.patch" builddir="$srcdir/shortuuid-$pkgver" replaces="py-shortuuid" # Backwards compatibility @@ -19,8 +20,13 @@ build() { python3 setup.py build } +check() { + python3 setup.py test +} + package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } -sha512sums="bf0b804281af1a515979a104c22e0c0e5cf99fe55efe6e29bb4b4b0d1d5a78b1e83a2d0262d6c2e2c2745f5ea198153fba80718aabac2955c691e6cb9bd5f4b5 shortuuid-0.5.0.tar.gz" +sha512sums="bf0b804281af1a515979a104c22e0c0e5cf99fe55efe6e29bb4b4b0d1d5a78b1e83a2d0262d6c2e2c2745f5ea198153fba80718aabac2955c691e6cb9bd5f4b5 shortuuid-0.5.0.tar.gz +ae5c0c8948006215fff591b025cb410ce434f20a0222194a15db4e7571d225a23761be3192b4427712cf3766156602195b53c00698d857cdc680664977eab813 fix-pep8-tests.patch" diff --git a/testing/py3-shortuuid/fix-pep8-tests.patch b/testing/py3-shortuuid/fix-pep8-tests.patch new file mode 100644 index 0000000000..6e688960ab --- /dev/null +++ b/testing/py3-shortuuid/fix-pep8-tests.patch @@ -0,0 +1,38 @@ +--- a/setup.py ++++ b/setup.py +@@ -32,5 +32,4 @@ setup( + classifiers=classifiers, + packages=["shortuuid"], + test_suite='shortuuid.tests', +- tests_require=['pep8'], + ) +Index: shortuuid-0.5.0/shortuuid/tests.py +=================================================================== +--- a/shortuuid/tests.py ++++ b/shortuuid/tests.py +@@ -2,7 +2,6 @@ import os + import string + import sys + import unittest +-import pep8 + from collections import defaultdict + + from uuid import UUID, uuid4 +@@ -125,16 +124,6 @@ class ClassShortUUIDTest(unittest.TestCa + su4 = ShortUUID() + self.assertEqual(su4.encoded_length(num_bytes=8), 11) + +- def test_pep8(self): +- pep8style = pep8.StyleGuide([['statistics', True], +- ['show-sources', True], +- ['repeat', True], +- ['paths', [os.path.dirname( +- os.path.abspath(__file__))]]], +- parse_argv=False) +- report = pep8style.check_files() +- assert report.total_errors == 0 +- + + class ShortUUIDPaddingTest(unittest.TestCase): + def test_padding(self): + |