summaryrefslogtreecommitdiff
path: root/dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.17.3.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-10-12 09:40:38 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-10-12 09:40:38 +0000
commit990e232a39a4645aa993dd440c997f1a01304379 (patch)
treecf9422fc9b5b71da1115ec00b340038c67b1bc24 /dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.17.3.ebuild
parent1324fae2c705470d82e82a946b181c55341380d1 (diff)
downloadbaldeagleos-repo-990e232a39a4645aa993dd440c997f1a01304379.tar.gz
baldeagleos-repo-990e232a39a4645aa993dd440c997f1a01304379.tar.xz
baldeagleos-repo-990e232a39a4645aa993dd440c997f1a01304379.zip
Adding metadata
Diffstat (limited to 'dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.17.3.ebuild')
-rw-r--r--dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.17.3.ebuild82
1 files changed, 82 insertions, 0 deletions
diff --git a/dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.17.3.ebuild b/dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.17.3.ebuild
new file mode 100644
index 000000000000..538b7cdb0b2d
--- /dev/null
+++ b/dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.17.3.ebuild
@@ -0,0 +1,82 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..13} )
+
+DOCS_BUILDER="mkdocs"
+DOCS_DEPEND="
+ dev-python/termynal
+ dev-python/mkdocstrings
+ dev-python/mkdocstrings-python
+ dev-python/mkdocs-material
+ dev-python/mkdocs-minify-plugin
+ dev-python/mkdocs-git-committers-plugin
+ dev-python/mkdocs-git-revision-date-localized-plugin
+"
+DOCS_INITIALIZE_GIT=1
+
+inherit distutils-r1 docs
+
+DESCRIPTION="MkDocs plugin to generate a RSS feeds."
+HOMEPAGE="https://github.com/Guts/mkdocs-rss-plugin https://pypi.org/project/mkdocs-rss-plugin"
+SRC_URI="
+ https://github.com/Guts/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz
+ https://github.com/henri-gasc/${PN}-cache/archive/refs/tags/${PV}.tar.gz -> ${PN}-cache-${PV}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+# RESTRICT="doc? ( network-sandbox )"
+
+BDEPEND="
+ >=dev-python/gitpython-3.1.43[${PYTHON_USEDEP}]
+ <dev-python/gitpython-3.2[${PYTHON_USEDEP}]
+ >=dev-python/mkdocs-1.6.1[${PYTHON_USEDEP}]
+ <dev-python/mkdocs-2[${PYTHON_USEDEP}]
+ >=dev-python/cachecontrol-0.14[${PYTHON_USEDEP}]
+ <dev-python/cachecontrol-1[${PYTHON_USEDEP}]
+ dev-python/filelock[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.31[${PYTHON_USEDEP}]
+ <dev-python/requests-3[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/feedparser-6.0.11[${PYTHON_USEDEP}]
+ <dev-python/feedparser-6.1[${PYTHON_USEDEP}]
+ >=dev-python/jsonfeed-1.1.2[${PYTHON_USEDEP}]
+ <dev-python/jsonfeed-2[${PYTHON_USEDEP}]
+ >=dev-python/mkdocs-material-9.5.47[${PYTHON_USEDEP},social]
+ >=dev-python/validator-collection-1.5[${PYTHON_USEDEP}]
+ <dev-python/validator-collection-1.6[${PYTHON_USEDEP}]
+ )
+"
+DEPEND="${BDEPEND}"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ sed -i \
+ -e 's/--cov-config=setup.cfg//' \
+ -e 's/--cov=mkdocs_rss_plugin//' \
+ -e 's/--cov-report=html//' \
+ -e 's/--cov-report=term//' \
+ -e 's/--cov-report=xml//' \
+ "${S}/setup.cfg" || die
+ cp "${WORKDIR}/${PN}-cache-${PV}/.cache" -rt "${S}" || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ mkdir "${S}/.git"
+ local EPYTEST_IGNORE="${S}/tests/_wip"
+ local EPYTEST_DESELECT=(
+ # Most tests need internet access
+ tests/test_build.py::TestBuildRss
+ tests/test_rss_util.py::TestRssUtil::test_remote_image_ok
+ tests/test_integrations_material_social_cards.py::TestRssPluginIntegrationsMaterialSocialCards::test_simple_build
+ tests/test_integrations_material_social_cards.py::TestRssPluginIntegrationsMaterialSocialCards::test_plugin_config_social_cards_enabled_with_directory_urls_disabled
+ )
+ epytest "${S}"/tests || die "Tests failed with ${EPYTHON}"
+}