scriptconv 0.0.3a4__tar.gz → 0.0.3a5__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.
Files changed (30) hide show
  1. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/PKG-INFO +1 -1
  2. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/pyproject.toml +1 -0
  3. scriptconv-0.0.3a5/scriptconv/data/cangjie5_tc.tsv.gz +0 -0
  4. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/scriptconv/version.py +1 -1
  5. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/scriptconv.egg-info/PKG-INFO +1 -1
  6. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/scriptconv.egg-info/SOURCES.txt +1 -0
  7. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/tests/test_cangjie.py +7 -0
  8. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/LICENSE +0 -0
  9. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/README.md +0 -0
  10. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/requirements.txt +0 -0
  11. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/scriptconv/__init__.py +0 -0
  12. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/scriptconv/__main__.py +0 -0
  13. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/scriptconv/cangjie.py +0 -0
  14. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/scriptconv/data/__init__.py +0 -0
  15. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/scriptconv/notation.py +0 -0
  16. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/scriptconv/py.typed +0 -0
  17. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/scriptconv/readings.py +0 -0
  18. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/scriptconv/scripts.py +0 -0
  19. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/scriptconv/translit.py +0 -0
  20. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/scriptconv.egg-info/dependency_links.txt +0 -0
  21. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/scriptconv.egg-info/requires.txt +0 -0
  22. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/scriptconv.egg-info/top_level.txt +0 -0
  23. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/setup.cfg +0 -0
  24. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/tests/test_cli.py +0 -0
  25. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/tests/test_examples.py +0 -0
  26. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/tests/test_notation.py +0 -0
  27. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/tests/test_readings.py +0 -0
  28. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/tests/test_readings_zh.py +0 -0
  29. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/tests/test_scripts.py +0 -0
  30. {scriptconv-0.0.3a4 → scriptconv-0.0.3a5}/tests/test_translit.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scriptconv
3
- Version: 0.0.3a4
3
+ Version: 0.0.3a5
4
4
  Summary: Zero-dependency script & phoneme-notation core — ISO-15924 detection & metadata, IPA↔ARPABET/X-SAMPA/Lexique/Kirshenbaum/Cotovía/RFE, Buckwalter↔Arabic, Hangul→jamo, kana
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/TigreGotico/scriptconv
@@ -46,6 +46,7 @@ include = ["scriptconv*"]
46
46
 
47
47
  [tool.setuptools.package-data]
48
48
  scriptconv = ["py.typed"]
49
+ "scriptconv.data" = ["*.tsv.gz"]
49
50
 
50
51
  [tool.pytest.ini_options]
51
52
  testpaths = ["tests"]
@@ -2,7 +2,7 @@
2
2
  VERSION_MAJOR = 0
3
3
  VERSION_MINOR = 0
4
4
  VERSION_BUILD = 3
5
- VERSION_ALPHA = 4
5
+ VERSION_ALPHA = 5
6
6
  # END_VERSION_BLOCK
7
7
 
8
8
  VERSION_STR = f"{VERSION_MAJOR}.{VERSION_MINOR}.{VERSION_BUILD}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scriptconv
3
- Version: 0.0.3a4
3
+ Version: 0.0.3a5
4
4
  Summary: Zero-dependency script & phoneme-notation core — ISO-15924 detection & metadata, IPA↔ARPABET/X-SAMPA/Lexique/Kirshenbaum/Cotovía/RFE, Buckwalter↔Arabic, Hangul→jamo, kana
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/TigreGotico/scriptconv
@@ -17,6 +17,7 @@ scriptconv.egg-info/dependency_links.txt
17
17
  scriptconv.egg-info/requires.txt
18
18
  scriptconv.egg-info/top_level.txt
19
19
  scriptconv/data/__init__.py
20
+ scriptconv/data/cangjie5_tc.tsv.gz
20
21
  tests/test_cangjie.py
21
22
  tests/test_cli.py
22
23
  tests/test_examples.py
@@ -24,6 +24,13 @@ class TestCangjieCode(unittest.TestCase):
24
24
  self.assertTrue(all(c.isalpha() and c.islower() for c in sample))
25
25
 
26
26
 
27
+ class TestTableIsPackaged(unittest.TestCase):
28
+ def test_data_file_resolvable_via_importlib_resources(self):
29
+ from importlib.resources import files
30
+ raw = files("scriptconv.data").joinpath("cangjie5_tc.tsv.gz").read_bytes()
31
+ self.assertGreater(len(raw), 100000)
32
+
33
+
27
34
  class TestToCangjie(unittest.TestCase):
28
35
  def test_all_hanzi_sentence(self):
29
36
  self.assertEqual(to_cangjie("倉頡"), "oiar grmbc")
File without changes
File without changes
File without changes