dev-python/mw2fcitx: add 0.20.0, drop 0.18.1

This commit is contained in:
blackteahamburger authored and jinqiang zhang committed 2025-05-18 00:22:03 +08:00
1 parent bb88d2599e
commit 323c2e4b12
3 files changed
+4 -66

No files matched your search

+1 -2
View File
@@ -1,2 +1 @@
DIST mw2fcitx-0.18.1.tar.gz 19443 BLAKE2B c0697f0f0686522fc9aabb49ebc127d21b70b596256a1151cc7e202f451b465f9f3dde3c9b74ce0c8f94ac6173783203090c6b7a9ebaf7696cdd07a26ad474e6 SHA512 5c0e5a996eda7bbad048a91d5e651613fbf84cf303e0eeae96e21207c7b456972cac233c8d43eb782bda8333dc2b8991945323091175567752774a836b02954f
DIST titles-20250113.txt 3495529 BLAKE2B 5f0ff3619fc54b342ad783f5f72cfa1f56b6f528a132c7923c233d339987a753fa5c65f4c94034e0f9a0a0a071434681316704b1c212d63662dc2a6a7efac8e6 SHA512 a55c36b70cf71980d76cb6fb7e68d2040fb1f8b1376065bc06b90f36df31e8c72493ef573fa2463ae3528fab5040a6b072ff9a1eef0bf6ac425b99dfd9e3e6bf
DIST mw2fcitx-0.20.0.tar.gz 22932 BLAKE2B 7b3ba18603e45088ca4ee6c34ff89ba5691c955a16257de8160033b758903d3c3b3f85799168e6694b13d2db79b441092706b1c22096688730b33850238cdc13 SHA512 28b1e5f55c3d61bd30588a3e3e2c229d51c438221a6ee247de39406885ae01572a45f2ae48e5c4e14e9751fef66512f626981bcb584691d146c0d17e68de4c19
@@ -1,52 +0,0 @@
--- a/tests/cli/conf_one.py
+++ b/tests/cli/conf_one.py
@@ -2,7 +2,7 @@
exports = {
"source": {
- "api_path": "https://zh.wikipedia.org/w/api.php",
+ "file_path": ["titles.txt"],
"kwargs": {
"title_limit": 50,
"output": "titles.txt"
--- a/tests/cli/conf_single_generator.py
+++ b/tests/cli/conf_single_generator.py
@@ -2,7 +2,7 @@
exports = {
"source": {
- "api_path": "https://zh.wikipedia.org/w/api.php",
+ "file_path": ["titles.txt"],
"kwargs": {
"title_limit": 50,
"output": "titles.txt"
--- a/tests/lib/test_zhwiki.py
+++ b/tests/lib/test_zhwiki.py
@@ -3,8 +3,8 @@
def test_pipeline_basic():
- pipeline = MWFPipeline("https://zh.wikipedia.org/w/api.php")
- pipeline.fetch_titles(title_limit=50)
+ pipeline = MWFPipeline()
+ pipeline.load_titles_from_file("titles.txt")
pipeline.convert_to_words(moegirl_tweaks)
pipeline.export_words()
pipeline.generate_dict(generator="rime")
--- a/tests/cli/test_conf.py
+++ b/tests/cli/test_conf.py
@@ -27,14 +26,6 @@
""")
-def test_continue():
- # this should run at least 8 secs = 2 * (5 / 1) - 2
- start = time.perf_counter()
- inner_main(['-c', 'tests/cli/conf_continue'])
- end = time.perf_counter()
- assert end-start > 8
-
-
def test_err_no_path():
with pytest.raises(SystemExit):
inner_main(['-c', 'tests/cli/conf_err_no_path'])
@@ -14,14 +14,12 @@ HOMEPAGE="
https://github.com/outloudvi/mw2fcitx
https://pypi.org/project/mw2fcitx
"
DICTV="20250113"
SRC_URI+="
test? ( https://github.com/outloudvi/mw2fcitx/releases/download/${DICTV}/titles.txt -> titles-${DICTV}.txt )
"
LICENSE="Unlicense test? ( CC-BY-NC-SA-3.0 )"
LICENSE="Unlicense"
SLOT="0"
KEYWORDS="~amd64"
PROPERTIES="test_network"
RESTRICT="test"
RDEPEND="
>=app-i18n/opencc-1.1.7[python(-),${PYTHON_SINGLE_USEDEP}]
@@ -31,11 +29,4 @@ RDEPEND="
')
"
PATCHES=( "${FILESDIR}/${P}-test-no-network.patch" )
distutils_enable_tests pytest
src_unpack() {
default
use test && (cp "${DISTDIR}/titles-${DICTV}.txt" "${S}/titles.txt" || die)
}