dev-python/icalendar: version bump 3.11.7

Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
Amy Liffey
2018-06-01 08:06:07 +02:00
parent 1148a0924c
commit 0862dc3f96
2 changed files with 51 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST icalendar-3.11.7.tar.gz 78330 BLAKE2B e6186f58903d835ac3357db959b6fef79aba34bb9b692128b6209b9c8139f7ed2eda81fd5cc54b6f3186d055e611f1489fcb61b1a10f914ee4c79ba8b31bf67a SHA512 445dc7b9c8c7ee2ad3345c5a4e4bca92633cdabae95f3cab63dacf549d48b7578242566d236cac8d5a9df4158387cadc0f09327e1b3e5038d223687365bec884
DIST icalendar-3.9.2.tar.gz 66283 BLAKE2B 487a8fdf04f028de30003762860640b8983df026aa7a5ba0efe3a57ddd09c51bb406a5e58792203d3a0ee3d44186b0b6dcaa7194fefcfed85c3ab714129f6b4d SHA512 da50bba72f7a114263672ebd45cfcca5f7c2eca48538901f595b26ef18bb21a6290da4392c62cc27d1202083fcab7f5bfe6c9a463df38087de0ef764999f7eb1

View File

@@ -0,0 +1,50 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
inherit distutils-r1
MY_PN="collective-${PN}"
DESCRIPTION="Package used for parsing and generating iCalendar files (RFC 2445)"
HOMEPAGE="https://github.com/collective/icalendar"
SRC_URI="mirror://pypi/i/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
IUSE="doc test"
DOCS="README.rst"
RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
test? ( dev-python/python-dateutil:0[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/coverage[${PYTHON_USEDEP}] )"
python_prepare_all() {
# reset conf.py to not read version from an installed instance
sed -e "s:pkg_resources.get_distribution('icalendar').version:'3.9.0':" \
-i docs/conf.py || die
distutils-r1_python_prepare_all
}
python_compile_all() {
if use doc; then
pushd docs > /dev/null
emake text
popd > /dev/null
DOCS=( ${DOCS} docs/_build/text/*.txt )
fi
}
python_test() {
# From tox.ini
coverage run --source=src/icalendar --omit=*/tests/* --module \
pytest src/icalendar || die "test failed under ${EPYTHON}"
}