Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pydocstyle/, dev-python/pydocstyle/files/
Date: Tue, 18 May 2021 08:51:13
Message-Id: 1621327708.51ebc9362e5e9e3a8c5647a43d1a925c2a364e4c.mgorny@gentoo
1 commit: 51ebc9362e5e9e3a8c5647a43d1a925c2a364e4c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 18 07:44:08 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 18 08:48:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51ebc936
7
8 dev-python/pydocstyle: Bump to 6.1.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pydocstyle/Manifest | 1 +
13 .../pydocstyle-6.1.1-disarm-pip-install.patch | 31 ++++++++++++++++++++++
14 dev-python/pydocstyle/pydocstyle-6.1.1.ebuild | 27 +++++++++++++++++++
15 3 files changed, 59 insertions(+)
16
17 diff --git a/dev-python/pydocstyle/Manifest b/dev-python/pydocstyle/Manifest
18 index 809dedd258d..4192487cbf2 100644
19 --- a/dev-python/pydocstyle/Manifest
20 +++ b/dev-python/pydocstyle/Manifest
21 @@ -1 +1,2 @@
22 DIST pydocstyle-6.0.0.tar.gz 72143 BLAKE2B 1036a5eab38a38bda0f98371f7e4094248cf5057a9afd8743a478f153a5f06feab6b3e7d6be031615b5e88c388786f59a0619f774f492e40a722f39973051d5b SHA512 609a10307aa24513f476ef639771fc095fe7a65ffd8d530fad02886369c62969c69a5134fd0ec79a1e07d1b6cb8f920c3478db546c26aefb0e45771777c02a0b
23 +DIST pydocstyle-6.1.1.tar.gz 73982 BLAKE2B 6a896221fdcd257f0475472e1cf87ef892d8292a4c0faf661595adb17e2d18f4a8277cda498197309d34597c448203856c272256277a7e35fba20e2e5ba47f2b SHA512 ce4932a6601c80d05a46600f5af7df54798025a5f3dc41ab8cf1bc0d63e7f78b70cccb17dc99ddab25eda9abd639f91468fca1b1ceb4539708350212e481a156
24
25 diff --git a/dev-python/pydocstyle/files/pydocstyle-6.1.1-disarm-pip-install.patch b/dev-python/pydocstyle/files/pydocstyle-6.1.1-disarm-pip-install.patch
26 new file mode 100644
27 index 00000000000..b0467a13643
28 --- /dev/null
29 +++ b/dev-python/pydocstyle/files/pydocstyle-6.1.1-disarm-pip-install.patch
30 @@ -0,0 +1,31 @@
31 +From 46947c9dca95caeb7b1f4348994d1aa2b8db93ec Mon Sep 17 00:00:00 2001
32 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
33 +Date: Tue, 18 May 2021 10:02:16 +0200
34 +Subject: [PATCH] Disarm install_package fixture
35 +
36 +---
37 + src/tests/test_integration.py | 7 -------
38 + 1 file changed, 7 deletions(-)
39 +
40 +diff --git a/src/tests/test_integration.py b/src/tests/test_integration.py
41 +index eb4994f..4242476 100644
42 +--- a/src/tests/test_integration.py
43 ++++ b/src/tests/test_integration.py
44 +@@ -128,14 +128,7 @@ def install_package(request):
45 + This is so we can run the integration tests on the installed console
46 + script.
47 + """
48 +- cwd = os.path.join(os.path.dirname(__file__), '..', '..')
49 +- subprocess.check_call(
50 +- [sys.executable, "-m", "pip", "install", "-e", "."], cwd=cwd
51 +- )
52 + yield
53 +- subprocess.check_call(
54 +- [sys.executable, "-m", "pip", "uninstall", "-y", "pydocstyle"], cwd=cwd
55 +- )
56 +
57 +
58 + @pytest.yield_fixture(scope="function", params=['ini', 'toml'])
59 +--
60 +2.31.1
61 +
62
63 diff --git a/dev-python/pydocstyle/pydocstyle-6.1.1.ebuild b/dev-python/pydocstyle/pydocstyle-6.1.1.ebuild
64 new file mode 100644
65 index 00000000000..f97c88a48af
66 --- /dev/null
67 +++ b/dev-python/pydocstyle/pydocstyle-6.1.1.ebuild
68 @@ -0,0 +1,27 @@
69 +# Copyright 1999-2021 Gentoo Authors
70 +# Distributed under the terms of the GNU General Public License v2
71 +
72 +EAPI=7
73 +
74 +PYTHON_COMPAT=( pypy3 python3_{7..10} )
75 +inherit distutils-r1
76 +
77 +DESCRIPTION="Python docstring style checker"
78 +HOMEPAGE="https://github.com/PyCQA/pydocstyle/"
79 +SRC_URI="https://github.com/PyCQA/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
80 +
81 +LICENSE="MIT"
82 +SLOT="0"
83 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos"
84 +
85 +RDEPEND="dev-python/snowballstemmer[${PYTHON_USEDEP}]"
86 +BDEPEND="
87 + test? ( dev-python/toml[${PYTHON_USEDEP}] )"
88 +
89 +distutils_enable_tests --install pytest
90 +# Requires network to lookup github issues
91 +#distutils_enable_sphinx docs dev-python/sphinx_rtd_theme dev-python/sphinxcontrib-issuetracker
92 +
93 +PATCHES=(
94 + "${FILESDIR}"/pydocstyle-6.1.1-disarm-pip-install.patch
95 +)