diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/python-redmine |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/python-redmine')
-rw-r--r-- | dev-python/python-redmine/Manifest | 4 | ||||
-rw-r--r-- | dev-python/python-redmine/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/python-redmine/python-redmine-2.0.2.ebuild | 46 |
3 files changed, 62 insertions, 0 deletions
diff --git a/dev-python/python-redmine/Manifest b/dev-python/python-redmine/Manifest new file mode 100644 index 000000000000..6178a4944f25 --- /dev/null +++ b/dev-python/python-redmine/Manifest @@ -0,0 +1,4 @@ +DIST python-redmine-2.0.2.tar.gz 559017 SHA256 e65a0213be1b3b246201e3f52e36ad0971a966f847e84c38f653e5f712bb98a1 SHA512 3f8e11315e8e2b4474e8b981bd801ef75857fe73e8ed18d27f64223703d18ea2061416ed38ea35c4a4460a4ccba167b41ab48e2489930181951e9e2a5f53ec12 WHIRLPOOL 7e2cfe63f67ce2a00145f7510b5e79cf010ec5a823f4d7298873cd800b32b557b08dfbf04bb31c49b4cf56a56b0d08f43ca5da121dc73c48ae63775752a2518a +EBUILD python-redmine-2.0.2.ebuild 1338 SHA256 7cacb198e5a00995f5caa131806637ec8b652c1e870f26aa109e9c50101a3a72 SHA512 8852df72cf3320c11d38008d53ce89b32ffbe2654d1d612466e28292683d968dd675cd955488088c08123f78d4369bbf6ba7aee03ee4e633b2b11f240b6396da WHIRLPOOL 2d578806a7258f78bf5e6393430544313995407b4d696c9415fda8cfaab39d59974f043781033780784f4b35db08d28f34cd35aeb029bfc913020b268d83a624 +MISC ChangeLog 356 SHA256 5c68699a55181050a6ec5bf9bbab05cc8ff5402906f0ad984597013677a9b2d2 SHA512 4cead6c4df77f7b6de3a5811f33ef8d07037feb11a22ba4e4aad676727e39ad05fafdc9a3b49f5433883b074e8d4e570c9d4cd4bebd360d32858f2c5412620da WHIRLPOOL 6f8bded96a340e6c81685964adfe749bb03ebf16f408abe3c8385df5e5441fe9cc04c47f16f4cdaf96f0dd774e3cd282ba55cfa759e21172182071b1f90875d8 +MISC metadata.xml 400 SHA256 141d780e71a746fdfea8be7e0679d4ee98771a9605f920c988d700f7b2f5f792 SHA512 12d43f2ec4712a7c01ed86aa2b1d05eebb907a8a6bd787ec82aff8ea2a97cc6708255dfad3d386550bcc72887d1b273b6ff3f958bc22e5bbdc4bd8a8d28a57ac WHIRLPOOL 36579880d298817d5c6903619f1b6bd9fb47f11daae445174094fdf7a8b87525d6b45110728471ca096fc7c02c4aba7ce7a1d3d0bb182b408255f27f252aab89 diff --git a/dev-python/python-redmine/metadata.xml b/dev-python/python-redmine/metadata.xml new file mode 100644 index 000000000000..14e8319ef215 --- /dev/null +++ b/dev-python/python-redmine/metadata.xml @@ -0,0 +1,12 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> + <upstream> + <remote-id type="pypi">python-redmine</remote-id> + <remote-id type="github">maxtepkeev/python-redmine</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/python-redmine/python-redmine-2.0.2.ebuild b/dev-python/python-redmine/python-redmine-2.0.2.ebuild new file mode 100644 index 000000000000..53c1001ea04d --- /dev/null +++ b/dev-python/python-redmine/python-redmine-2.0.2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 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 + +DESCRIPTION="Python interface to the Redmine REST API" +HOMEPAGE="https://github.com/maxtepkeev/python-redmine" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="dev-python/requests[${PYTHON_USEDEP}]" + +# This package bundles dev-python/requests, so setup.py won't check for +# it. As a result, we don't need RDEPEND in DEPEND unconditionally. +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/coverage[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) + dev-python/nose[${PYTHON_USEDEP}] + )" + +python_prepare_all() { + # Remove the bundled copy of dev-python/requests... + rm -r redminelib/packages/requests \ + || die 'failed to remove the bundled copy of dev-python/requests' + + # and replace its local import statement with a global one. + sed -i redminelib/packages/__init__.py \ + -e 's/from . import requests/import requests/' \ + || die 'failed to replace the dev-python/requests library import' + + distutils-r1_python_prepare_all +} + +python_test() { + nosetests || die "tests failed under ${EPYTHON}" +} |