diff options
author | Amy Liffey <amynka@gentoo.org> | 2018-06-01 08:06:07 +0200 |
---|---|---|
committer | Amy Liffey <amynka@gentoo.org> | 2018-06-01 08:07:18 +0200 |
commit | 0862dc3f96b0756cf68871d040c958bccb8653a5 (patch) | |
tree | 2fcd9a105172d14ecfa7b2bf4ce81e110a3e261e /dev-python/icalendar | |
parent | dev-ruby/faraday: add 0.15.2 (diff) | |
download | gentoo-0862dc3f96b0756cf68871d040c958bccb8653a5.tar.gz gentoo-0862dc3f96b0756cf68871d040c958bccb8653a5.tar.bz2 gentoo-0862dc3f96b0756cf68871d040c958bccb8653a5.zip |
dev-python/icalendar: version bump 3.11.7
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-python/icalendar')
-rw-r--r-- | dev-python/icalendar/Manifest | 1 | ||||
-rw-r--r-- | dev-python/icalendar/icalendar-3.11.7.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/icalendar/Manifest b/dev-python/icalendar/Manifest index b794deff1903..96cd6fff36c9 100644 --- a/dev-python/icalendar/Manifest +++ b/dev-python/icalendar/Manifest @@ -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 diff --git a/dev-python/icalendar/icalendar-3.11.7.ebuild b/dev-python/icalendar/icalendar-3.11.7.ebuild new file mode 100644 index 000000000000..a785d641fa77 --- /dev/null +++ b/dev-python/icalendar/icalendar-3.11.7.ebuild @@ -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}" +} |