Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/pybedtools/
Date: Thu, 31 Dec 2020 12:19:31
Message-Id: 1609416250.45f4ecf6f9d5e9c4e699ea84a7b4b8bb6c9740d6.epsilon-0@gentoo
1 commit: 45f4ecf6f9d5e9c4e699ea84a7b4b8bb6c9740d6
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Thu Dec 31 10:34:09 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Thu Dec 31 12:04:10 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=45f4ecf6
7
8 sci-biology/pybedtools: drop py3.6
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
12 Closes: https://github.com/gentoo/sci/pull/1012
13 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
14
15 sci-biology/pybedtools/pybedtools-0.8.0.ebuild | 32 +++++++++++---------------
16 1 file changed, 13 insertions(+), 19 deletions(-)
17
18 diff --git a/sci-biology/pybedtools/pybedtools-0.8.0.ebuild b/sci-biology/pybedtools/pybedtools-0.8.0.ebuild
19 index a91de8cca..6d391b0a8 100644
20 --- a/sci-biology/pybedtools/pybedtools-0.8.0.ebuild
21 +++ b/sci-biology/pybedtools/pybedtools-0.8.0.ebuild
22 @@ -3,7 +3,7 @@
23
24 EAPI=7
25
26 -PYTHON_COMPAT=( python3_{6..9} )
27 +PYTHON_COMPAT=( python3_{7..9} )
28
29 inherit distutils-r1
30
31 @@ -13,8 +13,8 @@ SRC_URI="https://github.com/daler/pybedtools/archive/v${PV}.tar.gz -> ${P}.tar.g
32
33 LICENSE="MIT"
34 SLOT="0"
35 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
36 -IUSE="doc minimal"
37 +KEYWORDS="~amd64 ~x86"
38 +IUSE="minimal"
39 RESTRICT="test"
40 # Tests reported to fail on Gentoo:
41 # https://github.com/daler/pybedtools/issues/329
42 @@ -23,29 +23,23 @@ RESTRICT="test"
43 RDEPEND="
44 sci-biology/bedtools
45 sci-biology/pysam
46 - dev-python/numpy
47 - dev-python/pandas
48 - !minimal? ( sci-libs/htslib )
49 - doc? ( dev-python/sphinx )"
50 + dev-python/numpy[${PYTHON_USEDEP}]
51 + dev-python/pandas[${PYTHON_USEDEP}]
52 + !minimal? ( sci-libs/htslib )"
53 # optional-requirements.txt also lists:
54 # ucsc-bigwigtobedgraph
55 # ucsc-bedgraphtobigwig
56 # ucsc-wigtobigwig
57 -DEPEND="${RDEPEND}
58 +BDEPEND="${RDEPEND}
59 dev-python/cython[${PYTHON_USEDEP}]"
60
61 +# ToDo: fix docs building
62 +# ModuleNotFoundError: No module named 'pybedtools.cbedtools'
63 +# even if pybedtools is installed
64 +#distutils_enable_sphinx docs/source
65 +distutils_enable_tests pytest
66 +
67 src_compile(){
68 python setup.py cythonize
69 distutils-r1_src_compile
70 - use doc && cd docs && emake html
71 -}
72 -
73 -src_install(){
74 - distutils-r1_src_install
75 - if use doc; then
76 - insinto /usr/share/doc/"${PN}"
77 - doins -r docs/build/html
78 - fi
79 }
80 -
81 -distutils_enable_tests pytest