Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nose_warnings_filters/, dev-python/nose_warnings_filters/files/
Date: Fri, 31 Dec 2021 23:28:22
Message-Id: 1640993287.88b82ac1a3bcbd09c7d0bd852bc57b8b6431eb54.sam@gentoo
1 commit: 88b82ac1a3bcbd09c7d0bd852bc57b8b6431eb54
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 31 23:27:44 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 31 23:28:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88b82ac1
7
8 dev-python/nose_warnings_filters: fix setuptools description
9
10 Upstream is dead since 2016 though.
11
12 Closes: https://bugs.gentoo.org/824990
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 ...ose_warnings_filters-0.1.5-setuptools-newline-desc.patch | 13 +++++++++++++
16 .../nose_warnings_filters-0.1.5-r3.ebuild | 4 ++++
17 2 files changed, 17 insertions(+)
18
19 diff --git a/dev-python/nose_warnings_filters/files/nose_warnings_filters-0.1.5-setuptools-newline-desc.patch b/dev-python/nose_warnings_filters/files/nose_warnings_filters-0.1.5-setuptools-newline-desc.patch
20 new file mode 100644
21 index 000000000000..de05a2f5d26b
22 --- /dev/null
23 +++ b/dev-python/nose_warnings_filters/files/nose_warnings_filters-0.1.5-setuptools-newline-desc.patch
24 @@ -0,0 +1,13 @@
25 +diff --git a/setup.py b/setup.py
26 +index 1f9ac02..829c5e8 100644
27 +--- a/setup.py
28 ++++ b/setup.py
29 +@@ -17,7 +17,7 @@ from setuptools import setup
30 +
31 + setup(name='nose_warnings_filters',
32 + version='0.1.5',
33 +- description='Allow to inject warning filters during ``nosetest``.\n\nPut the same arguments as ``warnings.filterwarnings`` in ``setup.cfg``\nat the root of your project. Separated each argument by pipes ``|``, one\nfilter per line. Whitespace are stripped.\n\nfor example:\n\n::\n\n [nosetests]\n warningfilters=default |.* |DeprecationWarning |notebook.*\n ignore |.*metadata.* |DeprecationWarning |notebook.*\n once |.*schema.* |UserWarning |nbfor.*\n error |.*warn.* |DeprecationWarning |notebook.services.contents.manager*\n\nIf you prefer another name for the configuration file, you can tell nose\nto load the configuration using the ``-c`` flag: run the tests with\n``nosetests -c nose.cfg``.\n\ndetails configuration.\n======================\n\nEach line of warning filter is separated in maximum 4 sections, that\nmatch the first 4 sections of ``filterwarn
34 ings``:\n\n.. code:: python\n\n filterwarnings(action, message="", category=Warning, module="", lineno=0, append=False)\n\nfields 2 to 4 can be omitted, ie to say 1 line can be of the following\nform:\n\n::\n\n action\n action| message\n action| message | category\n action| message | category | module\n\nthe value of each fields is treated the same as for ``filterwarnigns``\nexcept: - whitespace are trimmed. - if the ``category`` has dots, the\ncorresponding class try to be imported. If it does not have dots, the\nname is looked up in ``builtins`` or ``__builtins__``\n\ntest are failing\n================\n\nFor some reasons in some systems tests are failing; it seem that this\npackage have difficulty to self-test. That\'s likely due to the fact that\nthe tested package need to be in different namespaces, and by\nself-testing we break this assumption.\n',
35 ++ description='Allow to inject warning filters during ``nosetest``',
36 + url='https://github.com/Carreau/nose_warnings_filters',
37 + author='Matthias Bussonnier',
38 + author_email='bussonniermatthias@×××××.com',
39
40 diff --git a/dev-python/nose_warnings_filters/nose_warnings_filters-0.1.5-r3.ebuild b/dev-python/nose_warnings_filters/nose_warnings_filters-0.1.5-r3.ebuild
41 index 46d14c80fd80..eca1dd453d80 100644
42 --- a/dev-python/nose_warnings_filters/nose_warnings_filters-0.1.5-r3.ebuild
43 +++ b/dev-python/nose_warnings_filters/nose_warnings_filters-0.1.5-r3.ebuild
44 @@ -16,4 +16,8 @@ KEYWORDS="amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86"
45
46 RDEPEND="dev-python/nose[${PYTHON_USEDEP}]"
47
48 +PATCHES=(
49 + "${FILESDIR}"/${PN}-0.1.5-setuptools-newline-desc.patch
50 +)
51 +
52 distutils_enable_tests nose