1 |
commit: 022d5da8a7b0fa7d16141aa2f250b10f7962adea |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Wed Dec 30 16:45:55 2020 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Jan 3 03:31:15 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=022d5da8 |
7 |
|
8 |
dev-python/traits: version bump, cleanup ebuild |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
Signed-off-by: Horea Christian <chr <AT> chymera.eu> |
13 |
|
14 |
dev-python/traits/traits-5.1.0.ebuild | 43 ---------------------- |
15 |
.../{traits-6.0.0.ebuild => traits-6.1.1.ebuild} | 20 +++------- |
16 |
2 files changed, 6 insertions(+), 57 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/traits/traits-5.1.0.ebuild b/dev-python/traits/traits-5.1.0.ebuild |
19 |
deleted file mode 100644 |
20 |
index e575e72a0..000000000 |
21 |
--- a/dev-python/traits/traits-5.1.0.ebuild |
22 |
+++ /dev/null |
23 |
@@ -1,43 +0,0 @@ |
24 |
-# Copyright 1999-2020 Gentoo Authors |
25 |
-# Distributed under the terms of the GNU General Public License v2 |
26 |
- |
27 |
-EAPI=7 |
28 |
- |
29 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
30 |
- |
31 |
-inherit distutils-r1 virtualx |
32 |
- |
33 |
-DESCRIPTION="Enthought Tool Suite: Explicitly typed attributes for Python" |
34 |
-HOMEPAGE="http://docs.enthought.com/traits/ |
35 |
- https://github.com/enthought/traits |
36 |
- https://pypi.org/project/traits/" |
37 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
38 |
- |
39 |
-LICENSE="BSD" |
40 |
-SLOT="0" |
41 |
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
42 |
-IUSE="test" |
43 |
- |
44 |
-RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]" |
45 |
- |
46 |
-DEPEND=" |
47 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
48 |
- test? ( |
49 |
- dev-python/nose[${PYTHON_USEDEP}] |
50 |
- ${RDEPEND} |
51 |
- )" |
52 |
- |
53 |
-python_prepare_all() { |
54 |
- sed -i -e "s/'-O3'//g" setup.py || die |
55 |
- distutils-r1_python_prepare_all |
56 |
-} |
57 |
- |
58 |
-python_compile() { |
59 |
- python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" |
60 |
- distutils-r1_python_compile |
61 |
-} |
62 |
- |
63 |
-python_test() { |
64 |
- cd "${BUILD_DIR}"/lib || die |
65 |
- nosetests || die |
66 |
-} |
67 |
|
68 |
diff --git a/dev-python/traits/traits-6.0.0.ebuild b/dev-python/traits/traits-6.1.1.ebuild |
69 |
similarity index 65% |
70 |
rename from dev-python/traits/traits-6.0.0.ebuild |
71 |
rename to dev-python/traits/traits-6.1.1.ebuild |
72 |
index f109a0c09..a5258b8a5 100644 |
73 |
--- a/dev-python/traits/traits-6.0.0.ebuild |
74 |
+++ b/dev-python/traits/traits-6.1.1.ebuild |
75 |
@@ -3,7 +3,7 @@ |
76 |
|
77 |
EAPI=7 |
78 |
|
79 |
-PYTHON_COMPAT=( python3_{6,7,8,9} ) |
80 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
81 |
|
82 |
inherit distutils-r1 virtualx |
83 |
|
84 |
@@ -15,28 +15,20 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
85 |
|
86 |
LICENSE="BSD" |
87 |
SLOT="0" |
88 |
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
89 |
-IUSE="test" |
90 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
91 |
|
92 |
RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]" |
93 |
|
94 |
-DEPEND=" |
95 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
96 |
- test? ( |
97 |
- dev-python/nose[${PYTHON_USEDEP}] |
98 |
- ${RDEPEND} |
99 |
- )" |
100 |
+distutils_enable_tests nose |
101 |
+# ToDo: Fix doc building: |
102 |
+# AttributeError: 'NoDefaultSpecified' object has no attribute '__name__' |
103 |
+#distutils_enable_sphinx docs/source --no-autodoc |
104 |
|
105 |
python_prepare_all() { |
106 |
sed -i -e "s/'-O3'//g" setup.py || die |
107 |
distutils-r1_python_prepare_all |
108 |
} |
109 |
|
110 |
-python_compile() { |
111 |
- python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" |
112 |
- distutils-r1_python_compile |
113 |
-} |
114 |
- |
115 |
python_test() { |
116 |
cd "${BUILD_DIR}"/lib || die |
117 |
${EPYTHON} -m unittest discover || die |