Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pastedeploy/files/, dev-python/pastedeploy/
Date: Tue, 31 Aug 2021 06:57:20
Message-Id: 1630392184.2e16c3329e78e755990f0acf083228640c24f71f.arthurzam@gentoo
1 commit: 2e16c3329e78e755990f0acf083228640c24f71f
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 31 06:42:57 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 31 06:43:04 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e16c332
7
8 dev-python/pastedeploy: fix doc generation
9
10 Upstream started using sphinx docs generation, but are using a
11 unique theme.
12 Change the theme to a more common one: 'sphinx_rtd_theme'.
13
14 Closes: https://bugs.gentoo.org/696136
15 Closes: https://bugs.gentoo.org/750089
16 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
17
18 .../pastedeploy-2.1.1-change-sphinx-theme.patch | 30 ++++++++++++++++++
19 dev-python/pastedeploy/pastedeploy-2.1.1-r1.ebuild | 37 ++++++++++++++++++++++
20 2 files changed, 67 insertions(+)
21
22 diff --git a/dev-python/pastedeploy/files/pastedeploy-2.1.1-change-sphinx-theme.patch b/dev-python/pastedeploy/files/pastedeploy-2.1.1-change-sphinx-theme.patch
23 new file mode 100644
24 index 00000000000..d204fc135c6
25 --- /dev/null
26 +++ b/dev-python/pastedeploy/files/pastedeploy-2.1.1-change-sphinx-theme.patch
27 @@ -0,0 +1,30 @@
28 +--- a/docs/conf.py
29 ++++ b/docs/conf.py
30 +@@ -13,7 +13,6 @@
31 +
32 + import datetime
33 + import pkg_resources
34 +-import pylons_sphinx_themes
35 +
36 + # If your extensions are in another directory, add it here.
37 + #sys.path.append('some/directory')
38 +@@ -83,8 +82,7 @@ pygments_style = 'sphinx'
39 + # Options for HTML output
40 + # -----------------------
41 +
42 +-html_theme = 'pylons'
43 +-html_theme_path = pylons_sphinx_themes.get_html_themes_path()
44 ++html_theme = 'sphinx_rtd_theme'
45 + html_theme_options = dict(
46 + canonical_url='https://docs.pylonsproject.org/projects/pastedeploy/en/latest/'
47 + )
48 +--- a/setup.py
49 ++++ b/setup.py
50 +@@ -8,7 +8,6 @@ readme = open(readme_path).read()
51 +
52 + docs_extras = [
53 + "Sphinx >= 1.7.5", # Read The Docs minimum version
54 +- "pylons-sphinx-themes",
55 + ]
56 +
57 + setup(
58
59 diff --git a/dev-python/pastedeploy/pastedeploy-2.1.1-r1.ebuild b/dev-python/pastedeploy/pastedeploy-2.1.1-r1.ebuild
60 new file mode 100644
61 index 00000000000..fea82c6834d
62 --- /dev/null
63 +++ b/dev-python/pastedeploy/pastedeploy-2.1.1-r1.ebuild
64 @@ -0,0 +1,37 @@
65 +# Copyright 1999-2021 Gentoo Authors
66 +# Distributed under the terms of the GNU General Public License v2
67 +
68 +EAPI=7
69 +
70 +DISTUTILS_USE_SETUPTOOLS=rdepend
71 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
72 +
73 +inherit distutils-r1
74 +
75 +MY_PN="PasteDeploy"
76 +MY_P="${MY_PN}-${PV}"
77 +
78 +DESCRIPTION="Load, configure, and compose WSGI applications and servers"
79 +HOMEPAGE="https://pypi.org/project/PasteDeploy/"
80 +# pypi tarball does not include tests
81 +SRC_URI="https://github.com/Pylons/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
82 +
83 +LICENSE="MIT"
84 +SLOT="0"
85 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris"
86 +
87 +RDEPEND="dev-python/namespace-paste[${PYTHON_USEDEP}]"
88 +BDEPEND="${RDEPEND}"
89 +
90 +PATCHES=(
91 + "${FILESDIR}/${P}-change-sphinx-theme.patch"
92 +)
93 +
94 +distutils_enable_tests pytest
95 +distutils_enable_sphinx docs \
96 + dev-python/sphinx_rtd_theme
97 +
98 +python_install_all() {
99 + distutils-r1_python_install_all
100 + find "${D}" -name '*.pth' -delete || die
101 +}