summaryrefslogtreecommitdiff
path: root/dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.12.1.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-03-11 06:38:46 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-03-11 06:38:46 +0000
commitf8d56965f461ad6abf256ab2beae3377f372bc4f (patch)
tree9423247c7c3ea8a330e4c9c98148e662b5fad65b /dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.12.1.ebuild
parentfdb78a919be581165ce1422d96acd4bf876fe39b (diff)
downloadbaldeagleos-repo-f8d56965f461ad6abf256ab2beae3377f372bc4f.tar.gz
baldeagleos-repo-f8d56965f461ad6abf256ab2beae3377f372bc4f.tar.xz
baldeagleos-repo-f8d56965f461ad6abf256ab2beae3377f372bc4f.zip
Adding metadata
Diffstat (limited to 'dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.12.1.ebuild')
-rw-r--r--dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.12.1.ebuild76
1 files changed, 76 insertions, 0 deletions
diff --git a/dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.12.1.ebuild b/dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.12.1.ebuild
new file mode 100644
index 000000000000..9f0aadfe4592
--- /dev/null
+++ b/dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.12.1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8,9,10,11,12} )
+
+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/mkdocs-rss-plugin/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+RESTRICT="doc? ( network-sandbox )"
+
+BDEPEND="
+ >=dev-python/GitPython-3.1[${PYTHON_USEDEP}]
+ <dev-python/GitPython-3.2[${PYTHON_USEDEP}]
+ >=dev-python/mkdocs-1.4[${PYTHON_USEDEP}]
+ <dev-python/mkdocs-2[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP},truetype]
+ test? (
+ dev-python/feedparser[${PYTHON_USEDEP}]
+ dev-python/jsonschema[${PYTHON_USEDEP}]
+ dev-python/mkdocs-material[${PYTHON_USEDEP}]
+ dev-python/validator-collection[${PYTHON_USEDEP}]
+ dev-python/pytest-cov[${PYTHON_USEDEP}]
+ dev-python/validator-collection[${PYTHON_USEDEP}]
+ dev-python/jsonfeed[${PYTHON_USEDEP}]
+ )
+ doc? (
+ dev-python/mkdocs-material[${PYTHON_USEDEP},social]
+ )
+"
+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
+ 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
+ )
+ epytest "${S}"/tests || die "Tests failed with ${EPYTHON}"
+}