cihai-cli 0.29.0__tar.gz → 0.30.0__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.
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/.github/workflows/docs.yml +1 -1
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/.github/workflows/tests.yml +3 -3
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/CHANGES +43 -6
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/PKG-INFO +6 -6
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/README.md +1 -1
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/conf.py +4 -4
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/pyproject.toml +6 -6
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/src/cihai_cli/__about__.py +1 -1
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/src/cihai_cli/cli.py +1 -1
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/tests/conftest.py +3 -3
- cihai_cli-0.30.0/uv.lock +1565 -0
- cihai_cli-0.29.0/uv.lock +0 -1394
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/.codecov.yml +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/.github/dependabot.yml +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/.gitignore +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/.prettierrc +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/.python-version +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/.tmuxp.yaml +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/.tool-versions +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/.vim/coc-settings.json +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/LICENSE +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/MANIFEST.in +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/MIGRATION +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/Makefile +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/Makefile +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/_static/css/custom.css +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/_static/favicon.ico +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/_static/img/cihai.svg +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/_static/img/icons/icon-128x128.png +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/_static/img/icons/icon-144x144.png +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/_static/img/icons/icon-152x152.png +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/_static/img/icons/icon-192x192.png +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/_static/img/icons/icon-384x384.png +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/_static/img/icons/icon-512x512-centered.png +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/_static/img/icons/icon-512x512.png +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/_static/img/icons/icon-72x72.png +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/_static/img/icons/icon-96x96.png +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/_templates/layout.html +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/_templates/sidebar/projects.html +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/api.md +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/cli/completion.md +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/cli/index.md +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/cli/info.md +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/cli/reverse.md +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/history.md +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/index.md +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/manifest.json +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/migration.md +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/quickstart.md +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/docs/redirects.txt +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/src/cihai_cli/__init__.py +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/tests/__init__.py +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/tests/fixtures/Unihan_DictionaryIndices.txt +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/tests/fixtures/Unihan_DictionaryLikeData.txt +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/tests/fixtures/Unihan_IRGSources.txt +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/tests/fixtures/Unihan_NumericValues.txt +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/tests/fixtures/Unihan_OtherMappings.txt +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/tests/fixtures/Unihan_RadicalStrokeCounts.txt +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/tests/fixtures/Unihan_Readings.txt +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/tests/fixtures/Unihan_Variants.txt +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/tests/fixtures/test_config.yml +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/tests/test_cli.py +0 -0
- {cihai_cli-0.29.0 → cihai_cli-0.30.0}/tox.ini +0 -0
|
@@ -9,12 +9,12 @@ jobs:
|
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
strategy:
|
|
11
11
|
matrix:
|
|
12
|
-
python-version: ['3.
|
|
12
|
+
python-version: ['3.9', '3.13']
|
|
13
13
|
steps:
|
|
14
14
|
- uses: actions/checkout@v4
|
|
15
15
|
|
|
16
16
|
- name: Install uv
|
|
17
|
-
uses: astral-sh/setup-uv@
|
|
17
|
+
uses: astral-sh/setup-uv@v5
|
|
18
18
|
with:
|
|
19
19
|
enable-cache: true
|
|
20
20
|
|
|
@@ -58,7 +58,7 @@ jobs:
|
|
|
58
58
|
- uses: actions/checkout@v4
|
|
59
59
|
|
|
60
60
|
- name: Install uv
|
|
61
|
-
uses: astral-sh/setup-uv@
|
|
61
|
+
uses: astral-sh/setup-uv@v5
|
|
62
62
|
with:
|
|
63
63
|
enable-cache: true
|
|
64
64
|
|
|
@@ -17,25 +17,62 @@ You can test the unpublished version of cihai-cli before its released, see
|
|
|
17
17
|
|
|
18
18
|
Then use `cihai@next info 好`.
|
|
19
19
|
|
|
20
|
-
## cihai-cli 0.
|
|
20
|
+
## cihai-cli 0.31.x (unreleased)
|
|
21
21
|
|
|
22
22
|
<!-- Maintainers, insert changes / features for the next release here -->
|
|
23
23
|
|
|
24
|
-
## cihai-cli 0.
|
|
24
|
+
## cihai-cli 0.30.0 (2024-12-21)
|
|
25
25
|
|
|
26
26
|
_Maintenance only, no bug fixes, or new features_
|
|
27
27
|
|
|
28
|
+
### Breaking changes
|
|
29
|
+
|
|
30
|
+
- Drop Python 3.8 (#323)
|
|
31
|
+
|
|
32
|
+
The minimum version of Python in this and future releases is Python 3.9.
|
|
33
|
+
|
|
34
|
+
Python 3.8 reached end-of-life status on October 7th, 2024 (see PEP 569).
|
|
35
|
+
|
|
36
|
+
- cihai: Bump minimum version to 0.35.0 (#323)
|
|
37
|
+
|
|
38
|
+
Requires Python 3.9.
|
|
39
|
+
|
|
40
|
+
Updates unihan-etl to 0.37.0, which also requires Python 3.9.
|
|
41
|
+
|
|
28
42
|
### Development
|
|
29
43
|
|
|
30
|
-
-
|
|
44
|
+
- Aggressive automated lint fixes via `ruff` (#323)
|
|
31
45
|
|
|
32
|
-
via
|
|
33
|
-
- Project and package management: poetry to uv (#321)
|
|
46
|
+
via ruff v0.8.4, all automated lint fixes, including unsafe and previews were applied for Python 3.9:
|
|
34
47
|
|
|
35
|
-
|
|
48
|
+
```sh
|
|
49
|
+
ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; ruff format .
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## cihai-cli 0.29.0 (2024-11-26)
|
|
53
|
+
|
|
54
|
+
_Maintenance only, no bug fixes, or new features_
|
|
55
|
+
|
|
56
|
+
#### Project and package management: poetry to uv (#321)
|
|
57
|
+
|
|
58
|
+
[uv] is the new package and project manager for the project, replacing Poetry.
|
|
36
59
|
|
|
37
60
|
[uv]: https://github.com/astral-sh/uv
|
|
38
61
|
|
|
62
|
+
#### Build system: poetry to hatchling (#321)
|
|
63
|
+
|
|
64
|
+
[Build system] moved from [poetry] to [hatchling].
|
|
65
|
+
|
|
66
|
+
[Build system]: https://packaging.python.org/en/latest/tutorials/packaging-projects/#choosing-a-build-backend
|
|
67
|
+
[poetry]: https://github.com/python-poetry/poetry
|
|
68
|
+
[hatchling]: https://hatch.pypa.io/latest/
|
|
69
|
+
|
|
70
|
+
### Development
|
|
71
|
+
|
|
72
|
+
- Code quality: Use f-strings in more places (#312)
|
|
73
|
+
|
|
74
|
+
via [ruff 0.4.2](https://github.com/astral-sh/ruff/blob/v0.4.2/CHANGELOG.md).
|
|
75
|
+
|
|
39
76
|
## cihai-cli 0.28.0 (2024-04-06)
|
|
40
77
|
|
|
41
78
|
_Maintenance only, no bug fixes, or new features_
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: cihai-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.30.0
|
|
4
4
|
Summary: Command line frontend for the cihai CJK language library
|
|
5
5
|
Project-URL: Bug Tracker, https://github.com/cihai/cihai-cli/issues
|
|
6
6
|
Project-URL: Documentation, https://cihai-cli.git-pull.com
|
|
@@ -9,6 +9,7 @@ Project-URL: Release notes, https://github.com/cihai/cihai-cli/blob/master/CHANG
|
|
|
9
9
|
Project-URL: Q & A, https://github.com/cihai/cihai-cli/discussions
|
|
10
10
|
Author-email: Tony Narlock <tony@git-pull.com>
|
|
11
11
|
License: MIT
|
|
12
|
+
License-File: LICENSE
|
|
12
13
|
Keywords: chinese,cjk,cli,dataset,dictionary,encyclopedia,japanese,korean,languages,library,shell,sqlalchemy,study,terminal,unicode,unihan
|
|
13
14
|
Classifier: Development Status :: 4 - Beta
|
|
14
15
|
Classifier: Environment :: Web Environment
|
|
@@ -16,7 +17,6 @@ Classifier: Intended Audience :: Developers
|
|
|
16
17
|
Classifier: License :: OSI Approved :: MIT License
|
|
17
18
|
Classifier: Programming Language :: Python
|
|
18
19
|
Classifier: Programming Language :: Python :: 3
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -27,8 +27,8 @@ Classifier: Topic :: Software Development :: Internationalization
|
|
|
27
27
|
Classifier: Topic :: Software Development :: Localization
|
|
28
28
|
Classifier: Topic :: System :: Shells
|
|
29
29
|
Classifier: Topic :: Utilities
|
|
30
|
-
Requires-Python: <4.0,>=3.
|
|
31
|
-
Requires-Dist: cihai~=0.
|
|
30
|
+
Requires-Python: <4.0,>=3.9
|
|
31
|
+
Requires-Dist: cihai~=0.35.0
|
|
32
32
|
Requires-Dist: pyyaml
|
|
33
33
|
Description-Content-Type: text/markdown
|
|
34
34
|
|
|
@@ -167,7 +167,7 @@ $ cd cihai-cli
|
|
|
167
167
|
- [Quickstart](https://cihai-cli.git-pull.com/quickstart.html)
|
|
168
168
|
- Python [API](https://cihai-cli.git-pull.com/api.html)
|
|
169
169
|
- [2017 roadmap](https://cihai.git-pull.com/design-and-planning/2017/spec.html)
|
|
170
|
-
- Python support: >= 3.
|
|
170
|
+
- Python support: >= 3.9, pypy
|
|
171
171
|
- Source: <https://github.com/cihai/cihai-cli>
|
|
172
172
|
- Docs: <https://cihai-cli.git-pull.com>
|
|
173
173
|
- Changelog: <https://cihai-cli.git-pull.com/history.html>
|
|
@@ -133,7 +133,7 @@ $ cd cihai-cli
|
|
|
133
133
|
- [Quickstart](https://cihai-cli.git-pull.com/quickstart.html)
|
|
134
134
|
- Python [API](https://cihai-cli.git-pull.com/api.html)
|
|
135
135
|
- [2017 roadmap](https://cihai.git-pull.com/design-and-planning/2017/spec.html)
|
|
136
|
-
- Python support: >= 3.
|
|
136
|
+
- Python support: >= 3.9, pypy
|
|
137
137
|
- Source: <https://github.com/cihai/cihai-cli>
|
|
138
138
|
- Docs: <https://cihai-cli.git-pull.com>
|
|
139
139
|
- Changelog: <https://cihai-cli.git-pull.com/history.html>
|
|
@@ -21,7 +21,7 @@ sys.path.insert(0, str(src_root))
|
|
|
21
21
|
sys.path.insert(0, str(cwd / "_ext"))
|
|
22
22
|
|
|
23
23
|
# package data
|
|
24
|
-
about:
|
|
24
|
+
about: dict[str, str] = {}
|
|
25
25
|
with (src_root / "cihai_cli" / "__about__.py").open() as fp:
|
|
26
26
|
exec(fp.read(), about)
|
|
27
27
|
|
|
@@ -71,8 +71,8 @@ html_extra_path = ["manifest.json"]
|
|
|
71
71
|
html_css_files = ["css/custom.css"]
|
|
72
72
|
html_favicon = "_static/favicon.ico"
|
|
73
73
|
html_theme = "furo"
|
|
74
|
-
html_theme_path:
|
|
75
|
-
html_theme_options:
|
|
74
|
+
html_theme_path: list[str] = []
|
|
75
|
+
html_theme_options: dict[str, t.Union[str, list[dict[str, str]]]] = {
|
|
76
76
|
"light_logo": "img/cihai.svg",
|
|
77
77
|
"dark_logo": "img/cihai.svg",
|
|
78
78
|
"footer_icons": [
|
|
@@ -147,7 +147,7 @@ intersphinx_mapping = {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
|
|
150
|
-
def linkcode_resolve(domain: str, info:
|
|
150
|
+
def linkcode_resolve(domain: str, info: dict[str, str]) -> t.Union[None, str]:
|
|
151
151
|
"""
|
|
152
152
|
Determine the URL corresponding to Python object.
|
|
153
153
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "cihai-cli"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.30.0"
|
|
4
4
|
description = "Command line frontend for the cihai CJK language library"
|
|
5
|
-
requires-python = ">=3.
|
|
5
|
+
requires-python = ">=3.9,<4.0"
|
|
6
6
|
license = { text = "MIT" }
|
|
7
7
|
authors = [
|
|
8
8
|
{name = "Tony Narlock", email = "tony@git-pull.com"}
|
|
@@ -14,7 +14,6 @@ classifiers = [
|
|
|
14
14
|
"Intended Audience :: Developers",
|
|
15
15
|
"Programming Language :: Python",
|
|
16
16
|
"Programming Language :: Python :: 3",
|
|
17
|
-
"Programming Language :: Python :: 3.8",
|
|
18
17
|
"Programming Language :: Python :: 3.9",
|
|
19
18
|
"Programming Language :: Python :: 3.10",
|
|
20
19
|
"Programming Language :: Python :: 3.11",
|
|
@@ -53,7 +52,7 @@ include = [
|
|
|
53
52
|
{ path = "tests", format = "sdist" },
|
|
54
53
|
]
|
|
55
54
|
dependencies = [
|
|
56
|
-
"cihai~=0.
|
|
55
|
+
"cihai~=0.35.0",
|
|
57
56
|
"PyYAML"
|
|
58
57
|
]
|
|
59
58
|
|
|
@@ -141,11 +140,12 @@ requires = ["hatchling"]
|
|
|
141
140
|
build-backend = "hatchling.build"
|
|
142
141
|
|
|
143
142
|
[tool.mypy]
|
|
143
|
+
strict = true
|
|
144
|
+
python_version = "3.9"
|
|
144
145
|
files = [
|
|
145
146
|
"src/",
|
|
146
147
|
"tests/",
|
|
147
148
|
]
|
|
148
|
-
strict = true
|
|
149
149
|
|
|
150
150
|
[[tool.mypy.overrides]]
|
|
151
151
|
module = [
|
|
@@ -154,7 +154,7 @@ module = [
|
|
|
154
154
|
ignore_missing_imports = true
|
|
155
155
|
|
|
156
156
|
[tool.ruff]
|
|
157
|
-
target-version = "
|
|
157
|
+
target-version = "py39"
|
|
158
158
|
|
|
159
159
|
[tool.ruff.lint]
|
|
160
160
|
select = [
|
|
@@ -79,7 +79,7 @@ class CLILoadNamespace(argparse.Namespace):
|
|
|
79
79
|
log_file: t.Optional[str]
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
def cli(_args: t.Optional[
|
|
82
|
+
def cli(_args: t.Optional[list[str]] = None) -> None:
|
|
83
83
|
"""Retrieve CJK information via CLI.
|
|
84
84
|
|
|
85
85
|
For help and example usage, see documentation:
|
|
@@ -39,11 +39,11 @@ def zip_path(tmp_path: pathlib.Path) -> pathlib.Path:
|
|
|
39
39
|
@pytest.fixture
|
|
40
40
|
def zip_file(zip_path: pathlib.Path, fixture_path: pathlib.Path) -> zipfile.ZipFile:
|
|
41
41
|
"""Create and return ZipFile."""
|
|
42
|
-
|
|
42
|
+
files = []
|
|
43
43
|
for f in UNIHAN_FILES:
|
|
44
|
-
|
|
44
|
+
files += [fixture_path / f]
|
|
45
45
|
zf = zipfile.ZipFile(zip_path, "a")
|
|
46
|
-
for _f in
|
|
46
|
+
for _f in files:
|
|
47
47
|
zf.write(_f, _f.name)
|
|
48
48
|
zf.close()
|
|
49
49
|
return zf
|