From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/manuel/Manifest | 1 + .../manuel/files/manuel-1.8.0-rm_zope_test.patch | 120 +++++++++++++++++++++ dev-python/manuel/manuel-1.9.0.ebuild | 34 ++++++ dev-python/manuel/metadata.xml | 13 +++ 4 files changed, 168 insertions(+) create mode 100644 dev-python/manuel/Manifest create mode 100644 dev-python/manuel/files/manuel-1.8.0-rm_zope_test.patch create mode 100644 dev-python/manuel/manuel-1.9.0.ebuild create mode 100644 dev-python/manuel/metadata.xml (limited to 'dev-python/manuel') diff --git a/dev-python/manuel/Manifest b/dev-python/manuel/Manifest new file mode 100644 index 000000000000..8ab00f097af3 --- /dev/null +++ b/dev-python/manuel/Manifest @@ -0,0 +1 @@ +DIST manuel-1.9.0.tar.gz 39640 BLAKE2B 1b699b92816297fee13a65ed2c4fc9ee3683f8e47e7fbf06178c97167ae29cabcedc48edec48b053f725889b39111b3634f0305ac651b5674292d046434fd134 SHA512 519b0fd1bd7ef3414dec69f721a6f1265603d28e3b61681acf46e9fba6fdc66efb6c0a82d814af8348bb7c07c3c4c299ae94ea7d6415436592ac37fccaacf18a diff --git a/dev-python/manuel/files/manuel-1.8.0-rm_zope_test.patch b/dev-python/manuel/files/manuel-1.8.0-rm_zope_test.patch new file mode 100644 index 000000000000..d1b61cc678ab --- /dev/null +++ b/dev-python/manuel/files/manuel-1.8.0-rm_zope_test.patch @@ -0,0 +1,120 @@ + setup.py | 6 ------ + src/manuel/index.txt | 26 ++++++++------------------ + src/manuel/tests.py | 13 +++++++++---- + 3 files changed, 17 insertions(+), 28 deletions(-) + +diff --git a/setup.py b/setup.py +index 4561779..b6730c8 100644 +--- a/setup.py ++++ b/setup.py +@@ -20,8 +20,6 @@ with open('README.rst') as readme: + with open('CHANGES.rst') as changes: + long_description = readme.read() + '\n\n' + changes.read() + +-tests_require = ['zope.testing'] +- + setup( + name='manuel', + version='1.8.0', +@@ -44,10 +42,6 @@ setup( + 'License :: OSI Approved :: Apache Software License', + ], + license='Apache Software License, Version 2.0', +- extras_require={ +- 'tests': tests_require, +- }, +- tests_require=tests_require, + test_suite='manuel.tests.test_suite', + install_requires=[ + 'setuptools', +diff --git a/src/manuel/index.txt b/src/manuel/index.txt +index c1d85f3..a315317 100644 +--- a/src/manuel/index.txt ++++ b/src/manuel/index.txt +@@ -166,16 +166,16 @@ can pass in your own class to `TestSuite`. + + .. code-block:: python + +- import os.path +- import manuel.testing ++ import os.path ++ import manuel.testing + +- class StripDirsTestCase(manuel.testing.TestCase): +- def shortDescription(self): +- return os.path.basename(str(self)) +- suite = manuel.testing.TestSuite( +- m, path_to_test, TestCase=StripDirsTestCase) ++ class StripDirsTestCase(manuel.testing.TestCase): ++ def shortDescription(self): ++ return os.path.basename(str(self)) ++ suite = manuel.testing.TestSuite( ++ m, path_to_test, TestCase=StripDirsTestCase) + +- >>> list(suite)[0].shortDescription() ++ list(suite)[0].shortDescription() + 'bugs.txt' + + +@@ -236,16 +236,6 @@ checkers `_ + smoothes over the differences between CPython's and PyPy's NameError + messages: + +-.. code-block:: python +- +- import re +- import zope.testing.renormalizing +- checker = zope.testing.renormalizing.RENormalizing([ +- (re.compile(r"NameError: global name '([a-zA-Z0-9_]+)' is not defined"), +- r"NameError: name '\1' is not defined"), +- ]) +- +- + .. reset-globs + .. _capture: + +diff --git a/src/manuel/tests.py b/src/manuel/tests.py +index 07723a6..b1a3a76 100644 +--- a/src/manuel/tests.py ++++ b/src/manuel/tests.py +@@ -11,11 +11,12 @@ import manuel.testing + import os.path + import re + import unittest +-import zope.testing.renormalizing + + here = os.path.dirname(os.path.abspath(__file__)) + +-checker = zope.testing.renormalizing.RENormalizing([ ++try: ++ import zope.testing.renormalizing ++ checker = zope.testing.renormalizing.RENormalizing([ + (re.compile(r" + + + + python@gentoo.org + Python + + + benji-york/manuel + manuel + + gentoo-staging + -- cgit v1.3.1