summaryrefslogtreecommitdiff
path: root/dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.6.0.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-03-13 12:33:45 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-03-13 12:33:45 +0000
commit7b5ebf446aabedb3f7974497e4bb90a128960df8 (patch)
treeef8f49fa028b02f6cbb802256de32a60918a9014 /dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.6.0.ebuild
parente095eea8f0b04a276942581be7a4b98f53876137 (diff)
downloadbaldeagleos-repo-7b5ebf446aabedb3f7974497e4bb90a128960df8.tar.gz
baldeagleos-repo-7b5ebf446aabedb3f7974497e4bb90a128960df8.tar.xz
baldeagleos-repo-7b5ebf446aabedb3f7974497e4bb90a128960df8.zip
Adding metadata
Diffstat (limited to 'dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.6.0.ebuild')
-rw-r--r--dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.6.0.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.6.0.ebuild b/dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.6.0.ebuild
new file mode 100644
index 000000000000..d7419087c337
--- /dev/null
+++ b/dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.6.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{7,8,9,10,11} )
+
+inherit distutils-r1
+
+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"
+
+BDEPEND="
+ dev-python/mkdocs[${PYTHON_USEDEP}]
+ dev-python/GitPython[${PYTHON_USEDEP}]
+ test? (
+ dev-python/black[${PYTHON_USEDEP}]
+ dev-python/feedparser[${PYTHON_USEDEP}]
+ dev-vcs/pre-commit
+ dev-python/validator-collection[${PYTHON_USEDEP}]
+ dev-python/mkdocs-bootswatch[${PYTHON_USEDEP}]
+ dev-python/mkdocs-minify-plugin[${PYTHON_USEDEP}]
+ dev-python/pygments[${PYTHON_USEDEP}]
+ dev-python/pymdown-extensions[${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
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ cd "${S}"
+ git init
+ git config --global user.name nobody || die
+ git config --global user.email foo.bar@example.org || die
+ local EPYTEST_IGNORE="${S}/tests/_wip"
+ local EPYTEST_DESELECT="tests/test_rss_util.py::TestRssUtil::test_remote_image_ok"
+ epytest "${S}"/tests || die "Tests failed with ${EPYTHON}"
+}