commit: ebf592643df86690bf487221f05b0da15791e9b0
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 26 11:36:52 2022 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Wed Jan 26 11:36:52 2022 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ebf59264
sci-biology/behaviopy: bump to 0.2
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
.../{behaviopy-0.1.ebuild => behaviopy-0.2.ebuild} | 18 ++++-----
sci-biology/behaviopy/behaviopy-9999.ebuild | 46 ----------------------
2 files changed, 8 insertions(+), 56 deletions(-)
diff --git a/sci-biology/behaviopy/behaviopy-0.1.ebuild
b/sci-biology/behaviopy/behaviopy-0.2.ebuild
similarity index 77%
rename from sci-biology/behaviopy/behaviopy-0.1.ebuild
rename to sci-biology/behaviopy/behaviopy-0.2.ebuild
index 35bcaab6b..ca6700729 100644
--- a/sci-biology/behaviopy/behaviopy-0.1.ebuild
+++ b/sci-biology/behaviopy/behaviopy-0.2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-PYTHON_COMPAT=( python3_{7,8} )
+PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
@@ -13,11 +13,9 @@
SRC_URI="https://github.com/TheChymera/behaviopy/archive/${PV}.tar.gz -> ${P}.ta
LICENSE="GPL-3"
SLOT="0"
-IUSE="evaluation test"
+IUSE="evaluation"
KEYWORDS="~amd64 ~x86"
-RESTRICT="!test? ( test )"
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
@@ -25,17 +23,17 @@ RDEPEND="
dev-python/seaborn[${PYTHON_USEDEP}]
dev-python/statsmodels[${PYTHON_USEDEP}]
dev-python/scipy[${PYTHON_USEDEP}]
- "
+"
-src_prepare() {
+python_prepare_all() {
if ! use evaluation; then
rm behaviopy/evaluation.py || die
fi
- default
+ distutils-r1_python_prepare_all
}
python_test() {
- cd behaviopy/examples
+ cd behaviopy/examples || die
echo "backend : Agg" > matplotlibrc || die
for i in *py; do
echo "Executing $i"
diff --git a/sci-biology/behaviopy/behaviopy-9999.ebuild
b/sci-biology/behaviopy/behaviopy-9999.ebuild
deleted file mode 100644
index a4c087764..000000000
--- a/sci-biology/behaviopy/behaviopy-9999.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7,8} )
-
-inherit distutils-r1 git-r3
-
-DESCRIPTION="Neuroimaging tools for Python"
-HOMEPAGE="https://github.com/TheChymera/behaviopy"
-SRC_URI=""
-EGIT_REPO_URI="https://github.com/TheChymera/behaviopy"
-
-LICENSE="GPL-3"
-SLOT="0"
-IUSE="evaluation test"
-KEYWORDS=""
-RESTRICT="!test? ( test )"
-
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
-RDEPEND="
- dev-python/matplotlib[${PYTHON_USEDEP}]
- dev-python/numpy[${PYTHON_USEDEP}]
- dev-python/pandas[${PYTHON_USEDEP}]
- dev-python/seaborn[${PYTHON_USEDEP}]
- dev-python/statsmodels[${PYTHON_USEDEP}]
- dev-python/scipy[${PYTHON_USEDEP}]
- "
- #evaluation? ( sci-biology/psychopy[${PYTHON_USEDEP}] )
-
-src_prepare() {
- if ! use evaluation; then
- rm behaviopy/evaluation.py || die
- fi
- default
-}
-
-python_test() {
- cd behaviopy/examples
- echo "backend : Agg" > matplotlibrc || die
- for i in *py; do
- echo "Executing $i"
- ${EPYTHON} $i || die
- done
-}