1 |
commit: 700488e14d17c25fd435fc05ae9963839334ae8e |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 8 20:05:27 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 9 06:34:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=700488e1 |
7 |
|
8 |
dev-python/agate-dbf: mass cleanup |
9 |
|
10 |
- remove IUSE="xml" and set lxml as test dep |
11 |
- use github tarball for fetching all test parts in one shot |
12 |
|
13 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
14 |
|
15 |
dev-python/agate-dbf/Manifest | 5 +-- |
16 |
dev-python/agate-dbf/agate-dbf-0.2.2-r1.ebuild | 27 ++++++++++++ |
17 |
dev-python/agate-dbf/agate-dbf-0.2.2.ebuild | 57 -------------------------- |
18 |
3 files changed, 28 insertions(+), 61 deletions(-) |
19 |
|
20 |
diff --git a/dev-python/agate-dbf/Manifest b/dev-python/agate-dbf/Manifest |
21 |
index e4b2d936f79..55efe872b2a 100644 |
22 |
--- a/dev-python/agate-dbf/Manifest |
23 |
+++ b/dev-python/agate-dbf/Manifest |
24 |
@@ -1,4 +1 @@ |
25 |
-DIST agate-dbf-0.2.2.tar.gz 2863 BLAKE2B 112b03e1a02b70e63f77195a999a60a59b4e02af55da2b9d94e9d535f557c4193129dcb8ce3f91d93cbc6e19196705009574e3b9e5073f9934d00636bb4b2abd SHA512 3e99404dfcd521010bc3eb5899871dfc63581e03604f80b0a42d4db48f486137fd48685024decd380d346ac5c2089a0d19dd9229893e8d5337b9bd9d7b4eb3b6 |
26 |
-DIST agate-dbf-0.2.2_examples%2Ftest.dbf 1314 BLAKE2B 81d5507b88fe7f7c3866d8666feff12bf3b14451affd653d76239f8785037c908509de248ac4bc8dbebeba4b1a84d69a48bf97b83716fe489ceb39f8ccf0e935 SHA512 460f9a624a6fed58d1fe0484ff6f7fa081d595d8f1a04f4f449ef6de037e334abb9da0403622e5af8c7914e02cda2fa38c4058ef1bb650e59e50584b9ae73b2e |
27 |
-DIST agate-dbf-0.2.2_examples%2Ftestdbf_converted.csv 896 BLAKE2B fe535d9b784088118fcd61b5378d49d92bac801be61e7900200625f267c8f9c454729376b292d809d3e6a6ee2a093e2a813524ff9199223cbc89a9a461feed40 SHA512 ddba24038d4500b97ff8b11b03a5260927a299f1732aa0a6bcb4746c52e04825f2f3d5d211141576736008ff7f56d0970b21c06f4afad53a4e4e0a873815516b |
28 |
-DIST agate-dbf-0.2.2_tests%2Ftest_table.py 574 BLAKE2B 22a744ae20491632795a0b654d8ab1e8adc090d43d0a18352b83cfc1687c57d33f1159d96cb379743d293203412dbbbaae8c33be195ae9d868584671ff0ea74d SHA512 131d8a553bc9c7538959e1ae29b62c47cea3e14365afca4e92e4f36cc8dab7e4b00efa462db5e9ca0f51b5e3eda892cf91881d65bd1302fa80bd5b0f66fa4076 |
29 |
+DIST agate-dbf-0.2.2.gh.tar.gz 8727 BLAKE2B 1397e87ebecff43380d17628867317e9b66584f4281609717b86c30cfa286e6d9ab32d8250c99c698c887aceae28ad4af311e0f777525283b30b65c15582895d SHA512 a92c19db922cc3f896fbe21f33afacd757a7fa3d6a26545033a898665a87765ddf4af964e4cba315cee0c70da926c965aaf68b64af86cf2aabbb9a68a65a38fe |
30 |
|
31 |
diff --git a/dev-python/agate-dbf/agate-dbf-0.2.2-r1.ebuild b/dev-python/agate-dbf/agate-dbf-0.2.2-r1.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..387fc82a375 |
34 |
--- /dev/null |
35 |
+++ b/dev-python/agate-dbf/agate-dbf-0.2.2-r1.ebuild |
36 |
@@ -0,0 +1,27 @@ |
37 |
+# Copyright 2021 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=8 |
41 |
+ |
42 |
+PYTHON_COMPAT=( python3_{8..10} ) |
43 |
+ |
44 |
+inherit distutils-r1 |
45 |
+ |
46 |
+DESCRIPTION="Adds read support for DBF files to agate." |
47 |
+HOMEPAGE="https://github.com/wireservice/agate-dbf https://pypi.org/project/agate-dbf/" |
48 |
+SRC_URI=" |
49 |
+ https://github.com/wireservice/agate-dbf/archive/${PV}.tar.gz |
50 |
+ -> ${P}.gh.tar.gz |
51 |
+" |
52 |
+ |
53 |
+LICENSE="MIT" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64" |
56 |
+ |
57 |
+RDEPEND=" |
58 |
+ >=dev-python/agate-1.5.0[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/dbfread-2.0.5[${PYTHON_USEDEP}] |
60 |
+" |
61 |
+BDEPEND="test? ( dev-python/lxml[${PYTHON_USEDEP}] )" |
62 |
+ |
63 |
+distutils_enable_tests pytest |
64 |
|
65 |
diff --git a/dev-python/agate-dbf/agate-dbf-0.2.2.ebuild b/dev-python/agate-dbf/agate-dbf-0.2.2.ebuild |
66 |
deleted file mode 100644 |
67 |
index 04248032f37..00000000000 |
68 |
--- a/dev-python/agate-dbf/agate-dbf-0.2.2.ebuild |
69 |
+++ /dev/null |
70 |
@@ -1,57 +0,0 @@ |
71 |
-# Copyright 2021 Gentoo Authors |
72 |
-# Distributed under the terms of the GNU General Public License v2 |
73 |
- |
74 |
-EAPI=8 |
75 |
- |
76 |
-PYTHON_COMPAT=( python3_{8..10} ) |
77 |
- |
78 |
-inherit distutils-r1 |
79 |
- |
80 |
-DESCRIPTION="Adds read support for DBF files to agate." |
81 |
-HOMEPAGE="https://github.com/wireservice/agate-dbf https://pypi.org/project/agate-dbf/" |
82 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
83 |
- |
84 |
-LICENSE="MIT" |
85 |
-SLOT="0" |
86 |
-KEYWORDS="~amd64" |
87 |
-IUSE="+xml" |
88 |
- |
89 |
-# Other packages have BDEPEND="test? ( dev-python/agate-dbf[xml] )" |
90 |
-AGATE_VERSION_DEP=">=dev-python/agate-1.5.0" |
91 |
-TEST_AGAINST_RDEPEND="xml? ( ${AGATE_VERSION_DEP}[xml,${PYTHON_USEDEP}] )" |
92 |
-RDEPEND=" |
93 |
- ${AGATE_VERSION_DEP}[${PYTHON_USEDEP}] |
94 |
- >=dev-python/dbfread-2.0.5[${PYTHON_USEDEP}] |
95 |
- |
96 |
- ${TEST_AGAINST_RDEPEND} |
97 |
-" |
98 |
-BDEPEND="test? ( ${AGATE_VERSION_DEP}[xml,${PYTHON_USEDEP}] )" |
99 |
- |
100 |
-distutils_enable_tests pytest |
101 |
- |
102 |
-AGATE_DBF_TEST_FILES=( |
103 |
- examples/test.dbf |
104 |
- examples/testdbf_converted.csv |
105 |
- tests/test_table.py |
106 |
-) |
107 |
-SRC_URI+=" test? ( " |
108 |
-for extra_file in "${AGATE_DBF_TEST_FILES[@]}"; do |
109 |
- SRC_URI+=" https://raw.githubusercontent.com/wireservice/agate-dbf/${PV}/${extra_file} -> ${P}_${extra_file//\//%2F}" |
110 |
-done |
111 |
-SRC_URI+=" )" |
112 |
- |
113 |
-agate-dbf_src_prepare() { |
114 |
- local extra_file |
115 |
- if use test; then |
116 |
- for extra_file in "${AGATE_DBF_TEST_FILES[@]}"; do |
117 |
- mkdir -p "${extra_file%/*}" || die |
118 |
- cp "${DISTDIR}/${P}_${extra_file//\//%2F}" "${extra_file}" || die |
119 |
- [[${extra_file} == *.py ]] && { true >> "${extra_file%/*}/__init__.py" || die; } |
120 |
- done |
121 |
- fi |
122 |
-} |
123 |
- |
124 |
-src_prepare() { |
125 |
- agate-dbf_src_prepare |
126 |
- distutils-r1_src_prepare |
127 |
-} |