plover-python-dictionary
Advanced tools
| LONGEST_KEY = 1 | ||
| def lookup(key): | ||
| assert len(key) <= LONGEST_KEY | ||
| return '(╯°□°)╯︵ ┻━┻' |
+1
-0
| include test/show_stroke.py | ||
| include test/utf8_dict.py | ||
| include pyproject.toml | ||
| include tox.ini |
+10
-2
| Metadata-Version: 2.1 | ||
| Name: plover_python_dictionary | ||
| Version: 0.5.12 | ||
| Version: 1.0.0 | ||
| Summary: Python dictionaries support for Plover | ||
@@ -16,3 +16,3 @@ Home-page: https://github.com/benoit-pierre/plover_python_dictionary | ||
| A Python dictionary is simply a single module with the following API: | ||
| A Python dictionary is simply a single UTF-8 source file with the following API: | ||
@@ -37,2 +37,4 @@ ``` python | ||
| > **Note**: make sure the file encoding is UTF-8! | ||
| ``` python | ||
@@ -58,4 +60,10 @@ LONGEST_KEY = 2 | ||
| ## Release history | ||
| ### 1.0.0 | ||
| * fix possible encoding issue when loading a dictionary: | ||
| from now on, assume and force UTF-8 | ||
| ### 0.5.12 | ||
@@ -62,0 +70,0 @@ |
| Metadata-Version: 2.1 | ||
| Name: plover-python-dictionary | ||
| Version: 0.5.12 | ||
| Version: 1.0.0 | ||
| Summary: Python dictionaries support for Plover | ||
@@ -16,3 +16,3 @@ Home-page: https://github.com/benoit-pierre/plover_python_dictionary | ||
| A Python dictionary is simply a single module with the following API: | ||
| A Python dictionary is simply a single UTF-8 source file with the following API: | ||
@@ -37,2 +37,4 @@ ``` python | ||
| > **Note**: make sure the file encoding is UTF-8! | ||
| ``` python | ||
@@ -58,4 +60,10 @@ LONGEST_KEY = 2 | ||
| ## Release history | ||
| ### 1.0.0 | ||
| * fix possible encoding issue when loading a dictionary: | ||
| from now on, assume and force UTF-8 | ||
| ### 0.5.12 | ||
@@ -62,0 +70,0 @@ |
@@ -16,2 +16,3 @@ MANIFEST.in | ||
| test/show_stroke.py | ||
| test/test_blackbox.py | ||
| test/test_blackbox.py | ||
| test/utf8_dict.py |
@@ -18,3 +18,3 @@ # vim: set fileencoding=utf-8 : | ||
| def _load(self, filename): | ||
| with open(filename) as fp: | ||
| with open(filename, encoding='utf-8') as fp: | ||
| source = fp.read() | ||
@@ -21,0 +21,0 @@ mod = {} |
+1
-0
| [build-system] | ||
| requires = ["setuptools>=34.4.0", "wheel"] | ||
| build-backend = "setuptools.build_meta" |
+9
-1
@@ -8,3 +8,3 @@ # Plover Python dictionary | ||
| A Python dictionary is simply a single module with the following API: | ||
| A Python dictionary is simply a single UTF-8 source file with the following API: | ||
@@ -29,2 +29,4 @@ ``` python | ||
| > **Note**: make sure the file encoding is UTF-8! | ||
| ``` python | ||
@@ -50,4 +52,10 @@ LONGEST_KEY = 2 | ||
| ## Release history | ||
| ### 1.0.0 | ||
| * fix possible encoding issue when loading a dictionary: | ||
| from now on, assume and force UTF-8 | ||
| ### 0.5.12 | ||
@@ -54,0 +62,0 @@ |
+1
-1
| [metadata] | ||
| name = plover_python_dictionary | ||
| version = 0.5.12 | ||
| version = 1.0.0 | ||
| description = Python dictionaries support for Plover | ||
@@ -5,0 +5,0 @@ long_description = file: README.md |
@@ -54,1 +54,9 @@ import os | ||
| assert output.text == ' center STR center' | ||
| # Check on Python 3.6! | ||
| def test_utf8_dictionary(monkeypatch): | ||
| monkeypatch.setenv('PYTHONIOENCODING', 'ascii') | ||
| registry.update() | ||
| system.setup(DEFAULT_SYSTEM_NAME) | ||
| load_dictionary(os.path.join(os.path.dirname(__file__), 'utf8_dict.py')) |
+8
-5
| [tox] | ||
| envlist = py, packaging | ||
| envlist = test, packaging | ||
@@ -12,13 +12,16 @@ [testenv] | ||
| [testenv:packaging] | ||
| skip_install = true | ||
| deps = | ||
| build | ||
| check-manifest | ||
| readme-renderer[md] | ||
| setuptools>=34.4.0 | ||
| twine | ||
| allowlist_externals = | ||
| rm | ||
| commands = | ||
| python setup.py check -m -s | ||
| python setup.py sdist bdist_wheel | ||
| rm -rf build dist | ||
| python -m build --sdist --wheel . | ||
| twine check --strict dist/* | ||
| check-manifest | ||
| check-manifest -v | ||
| # vim: commentstring=#\ %s list |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
14627
8.38%18
5.88%109
10.1%