dev-python/pygal: add for dev-python/pytest-benchmark
Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
35064213ab
commit
a487a3fbdf
1
dev-python/pygal/Manifest
Normal file
1
dev-python/pygal/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST pygal-3.0.0.dev1.tar.gz 3586092 BLAKE2B 4b266df0b3cbc21aae5270578383d58c2e63928f151ea81e760a036044027d64a6f2f2ccbc964d5918e1134ee07b9e4d175bdcbf59d84c09f8f8e9b35f707a7f SHA512 d4ddeb7533513ff605d331b6b7c3ebc10c02ccacbab509c77e3c594b0417a82e7744e12f8cb416d9232066933f432a616c84f0cd9e246543fea447345cd364a7
|
11
dev-python/pygal/metadata.xml
Normal file
11
dev-python/pygal/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>parona@protonmail.com</email>
|
||||
<name>Alfred Wingate</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">Kozea/pygal</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
69
dev-python/pygal/pygal-3.0.0_pre1.ebuild
Normal file
69
dev-python/pygal/pygal-3.0.0_pre1.ebuild
Normal file
@ -0,0 +1,69 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
inherit distutils-r1 multiprocessing
|
||||
|
||||
MY_P="${PN}-${PV/_pre/.dev}"
|
||||
|
||||
DESCRIPTION="PYthon svg GrAph plotting Library "
|
||||
# http://pygal.org/ is dead as of 20210519, therefore use the next best thing
|
||||
HOMEPAGE="https://github.com/Kozea/pygal"
|
||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${PN}/${MY_P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="man test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
media-gfx/cairosvg[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
man? (
|
||||
dev-python/pygal_sphinx_directives
|
||||
dev-python/sphinx_rtd_theme
|
||||
)
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-python/flask[${PYTHON_USEDEP}]
|
||||
dev-python/pygal_maps_ch[${PYTHON_USEDEP}]
|
||||
dev-python/pygal_maps_fr[${PYTHON_USEDEP}]
|
||||
dev-python/pygal_maps_world[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-cov[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-flake8[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-isort[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
dev-python/pyquery[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
man? ( dev-python/sphinx )
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
distutils_enable_sphinx docs dev-python/pygal_sphinx_directives dev-python/sphinx_rtd_theme
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i -e '/pytest-runner/d' setup.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use man && emake -C docs -j1 man
|
||||
sphinx_compile_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use man && doman docs/_build/man/*
|
||||
distutils-r1_python_install_all
|
||||
}
|
Loading…
Reference in New Issue
Block a user