scriptconv-copyleft 0.4.0a4__tar.gz → 0.4.0a6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/PKG-INFO +3 -1
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/pyproject.toml +1 -1
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/version.py +1 -1
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft.egg-info/PKG-INFO +3 -1
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft.egg-info/SOURCES.txt +1 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft.egg-info/requires.txt +2 -0
- scriptconv_copyleft-0.4.0a6/tests/test_docs_examples.py +49 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/LICENSE +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/README.md +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/__init__.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/__init__.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/_vendored/__init__.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/_vendored/kog2p/COPYING +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/_vendored/kog2p/LICENSE.md +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/_vendored/kog2p/__init__.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/_vendored/kog2p/rulebook.txt +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/_vendored/reginute/COPYING +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/_vendored/reginute/LICENSE +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/_vendored/reginute/SOURCE +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kirciai.tsv +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kreipiniai.tsv +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_raides.tsv +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/eu.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/fa.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/gl.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/he.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/ja.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/ja_prosody.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/ko.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/lt.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/mul.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/th.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/readings.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft.egg-info/dependency_links.txt +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft.egg-info/top_level.txt +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/setup.cfg +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_espeak_acute_stress.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_espeak_french_english_switch.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_espeak_get_lang_case.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_espeak_long_line.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_espeak_lt_accent.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_g2pfa_eraab.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_hebrew_ipa.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_lang_default_region.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_match_lang_direction.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_match_lang_preferred_value.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_misaki_en_alphabet.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_misaki_ja_reader.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_misaki_vi.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_misaki_zh_zero.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_openjtalk_prosody.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_phonemizers_base.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_phonemizers_cjk_ar.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_phonemizers_friendly_import_errors.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_phonemizers_identity.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_phonemizers_misaki_british.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_phonemizers_punctuation.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_readings.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_tltk.py +0 -0
- {scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_transphone_extra_declares_auto_installs.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scriptconv-copyleft
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.0a6
|
|
4
4
|
Summary: scriptconv phonemizer backends whose code or dependencies are copyleft (GPL, LGPL, AGPL)
|
|
5
5
|
Author-email: TigreGotico <contact@tigregotico.com>
|
|
6
6
|
License-Expression: Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0
|
|
@@ -67,6 +67,8 @@ Requires-Dist: regex; extra == "ko"
|
|
|
67
67
|
Provides-Extra: test
|
|
68
68
|
Requires-Dist: pytest; extra == "test"
|
|
69
69
|
Requires-Dist: pytest-timeout; extra == "test"
|
|
70
|
+
Requires-Dist: transphone; extra == "test"
|
|
71
|
+
Requires-Dist: pip; extra == "test"
|
|
70
72
|
Requires-Dist: espyak; extra == "test"
|
|
71
73
|
Requires-Dist: pycotovia; extra == "test"
|
|
72
74
|
Requires-Dist: ahotts_g2p; extra == "test"
|
|
@@ -43,7 +43,7 @@ ja = ["pykakasi>=2.3,<3"]
|
|
|
43
43
|
ja-phonemizers = ["pykakasi>=2.3,<3", "pyopenjtalk-plus[onnxruntime]>=0.4.1.post10"]
|
|
44
44
|
th = ["tltk>=1.6.8,<1.11", "pandas>=2", "requests>=2", "unicode-rbnf>=2.4.0"]
|
|
45
45
|
ko = ["g2pk; python_version<'3.13'", "regex"]
|
|
46
|
-
test = ["pytest", "pytest-timeout", "espyak", "pycotovia", "ahotts_g2p", "pykakasi>=2.3,<3", "epitran>=1.26.1", "g2pk; python_version<'3.13'", "regex", "misaki[en,ko,vi,zh]; python_version<'3.13'", "vietnam-number; python_version<'3.13'", "fugashi; python_version<'3.13'", "jaconv; python_version<'3.13'", "mojimoji; python_version<'3.13'", "unidic-lite; python_version<'3.13'", "spacy>=3.7,<4.0; python_version<'3.13'", "linguatag[langcodes]>=0.2.3a1", "packaging", "pyopenjtalk-plus[onnxruntime]>=0.4.1.post10", "tltk>=1.6.8,<1.11", "pandas>=2", "requests>=2", "unicode-rbnf>=2.4.0"]
|
|
46
|
+
test = ["pytest", "pytest-timeout", "transphone", "pip", "espyak", "pycotovia", "ahotts_g2p", "pykakasi>=2.3,<3", "epitran>=1.26.1", "g2pk; python_version<'3.13'", "regex", "misaki[en,ko,vi,zh]; python_version<'3.13'", "vietnam-number; python_version<'3.13'", "fugashi; python_version<'3.13'", "jaconv; python_version<'3.13'", "mojimoji; python_version<'3.13'", "unidic-lite; python_version<'3.13'", "spacy>=3.7,<4.0; python_version<'3.13'", "linguatag[langcodes]>=0.2.3a1", "packaging", "pyopenjtalk-plus[onnxruntime]>=0.4.1.post10", "tltk>=1.6.8,<1.11", "pandas>=2", "requests>=2", "unicode-rbnf>=2.4.0"]
|
|
47
47
|
|
|
48
48
|
[project.urls]
|
|
49
49
|
Homepage = "https://github.com/TigreGotico/scriptconv-copyleft"
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scriptconv-copyleft
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.0a6
|
|
4
4
|
Summary: scriptconv phonemizer backends whose code or dependencies are copyleft (GPL, LGPL, AGPL)
|
|
5
5
|
Author-email: TigreGotico <contact@tigregotico.com>
|
|
6
6
|
License-Expression: Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0
|
|
@@ -67,6 +67,8 @@ Requires-Dist: regex; extra == "ko"
|
|
|
67
67
|
Provides-Extra: test
|
|
68
68
|
Requires-Dist: pytest; extra == "test"
|
|
69
69
|
Requires-Dist: pytest-timeout; extra == "test"
|
|
70
|
+
Requires-Dist: transphone; extra == "test"
|
|
71
|
+
Requires-Dist: pip; extra == "test"
|
|
70
72
|
Requires-Dist: espyak; extra == "test"
|
|
71
73
|
Requires-Dist: pycotovia; extra == "test"
|
|
72
74
|
Requires-Dist: ahotts_g2p; extra == "test"
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft.egg-info/SOURCES.txt
RENAMED
|
@@ -31,6 +31,7 @@ scriptconv_copyleft/phonemizers/_vendored/reginute/SOURCE
|
|
|
31
31
|
scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kirciai.tsv
|
|
32
32
|
scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kreipiniai.tsv
|
|
33
33
|
scriptconv_copyleft/phonemizers/_vendored/reginute/lt_raides.tsv
|
|
34
|
+
tests/test_docs_examples.py
|
|
34
35
|
tests/test_espeak_acute_stress.py
|
|
35
36
|
tests/test_espeak_french_english_switch.py
|
|
36
37
|
tests/test_espeak_get_lang_case.py
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""The `>>>` examples of the README and of each page in docs/ give the output that they show.
|
|
2
|
+
|
|
3
|
+
Each page runs in a fresh interpreter, because a page shows what a fresh process imports. An example of a backend
|
|
4
|
+
whose optional package is not installed is skipped, not failed: the CI test extra does not install every backend.
|
|
5
|
+
"""
|
|
6
|
+
import json
|
|
7
|
+
import subprocess
|
|
8
|
+
import sys
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
|
|
11
|
+
import pytest
|
|
12
|
+
|
|
13
|
+
ROOT = Path(__file__).resolve().parent.parent
|
|
14
|
+
PAGES = [ROOT / "README.md", *sorted((ROOT / "docs").glob("*.md"))]
|
|
15
|
+
|
|
16
|
+
_RUN = r'''
|
|
17
|
+
import doctest, json, sys
|
|
18
|
+
from pathlib import Path
|
|
19
|
+
|
|
20
|
+
class Runner(doctest.DocTestRunner):
|
|
21
|
+
missing = []
|
|
22
|
+
|
|
23
|
+
def report_unexpected_exception(self, out, test, example, exc_info):
|
|
24
|
+
error = exc_info[1]
|
|
25
|
+
if isinstance(error, ImportError) and (error.name or isinstance(error.__cause__, ModuleNotFoundError)):
|
|
26
|
+
self.missing.append(example.source.strip())
|
|
27
|
+
return
|
|
28
|
+
super().report_unexpected_exception(out, test, example, exc_info)
|
|
29
|
+
|
|
30
|
+
page = Path(sys.argv[1])
|
|
31
|
+
test = doctest.DocTestParser().get_doctest(page.read_text(encoding="utf-8"), {}, page.name, str(page), 0)
|
|
32
|
+
runner = Runner(optionflags=doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE)
|
|
33
|
+
report = []
|
|
34
|
+
runner.run(test, out=report.append)
|
|
35
|
+
print(json.dumps({"examples": len(test.examples), "failures": runner.failures, "missing": runner.missing,
|
|
36
|
+
"report": "".join(report)}))
|
|
37
|
+
'''
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@pytest.mark.parametrize("page", PAGES, ids=lambda page: page.relative_to(ROOT).as_posix())
|
|
41
|
+
def test_page_examples(page):
|
|
42
|
+
done = subprocess.run([sys.executable, "-c", _RUN, str(page)], capture_output=True, text=True, check=True,
|
|
43
|
+
cwd=ROOT)
|
|
44
|
+
result = json.loads(done.stdout.splitlines()[-1])
|
|
45
|
+
if not result["examples"]:
|
|
46
|
+
pytest.skip("no examples")
|
|
47
|
+
assert result["failures"] == len(result["missing"]), result["report"]
|
|
48
|
+
if result["missing"] and len(result["missing"]) == result["examples"]:
|
|
49
|
+
pytest.skip(f"every example needs a backend that is not installed: {result['missing'][0]}")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/eu.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/fa.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/gl.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/he.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/ja.py
RENAMED
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/ko.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/lt.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/mul.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/scriptconv_copyleft/phonemizers/th.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_espeak_acute_stress.py
RENAMED
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_espeak_get_lang_case.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_lang_default_region.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_match_lang_direction.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_match_lang_preferred_value.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_misaki_en_alphabet.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_phonemizers_cjk_ar.py
RENAMED
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_phonemizers_identity.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_phonemizers_misaki_british.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a4 → scriptconv_copyleft-0.4.0a6}/tests/test_phonemizers_punctuation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|